diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2020-03-09 15:18:50 +0200 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2020-03-09 15:18:50 +0200 |
| commit | 9fc34b000093d32d552bc1bde4fca6074bcd9427 (patch) | |
| tree | 022342dfe00c59af2669325450fd3998c95f11ff | |
| parent | 3bb449700c438656477cb5d4c897da3f1a8c53ed (diff) | |
| download | pfetch-9fc34b000093d32d552bc1bde4fca6074bcd9427.tar.gz | |
pfetch: Revert prior change
| -rwxr-xr-x | pfetch | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -22,9 +22,11 @@ log() { info=$* } + align=$(printf '%*s' "$((${#name}-info_length))" "") + # Construct the information string. out="[3${PF_COL1-4};1m${name}[m" - out="$out${PF_SEP}[$((${#name}-info_length))D" + out="$out${PF_SEP}${align}" out="$out[3${PF_COL2-7}m${info}" } @@ -1399,7 +1401,7 @@ main() { while IFS= read -r line || [ "$1" ]; do "get_$1" shift "$(($# ? 1 : 0))" - printf '\033[%sC%s\r%s\n' "$ascii_width" "$out" "$line" >&6 + printf '%*s%s\r%s\n' "$ascii_width" "" "$out" "$line" >&6 out= done <<-EOF $ascii[m |
