diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2020-03-09 23:26:41 +0200 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2020-03-09 23:26:41 +0200 |
| commit | 542b6af2846bb0b04ad9554cc605d1ef34a05fbf (patch) | |
| tree | d33e478e482133a3c3f1e902d4f323183d9975c7 | |
| parent | 177d77c33523380a9ab5f7d920170c9488b6034b (diff) | |
| parent | 271458be6eb4e325f263f430bc9d0c544c3a771d (diff) | |
| download | pfetch-542b6af2846bb0b04ad9554cc605d1ef34a05fbf.tar.gz | |
Merge branch 'master' into irix
| -rwxr-xr-x | pfetch | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -22,11 +22,9 @@ log() { info=$* } - align=$(printf '%*.s' "$((${#name}-info_length))" "") - # Construct the information string. out="[3${PF_COL1-4};1m${name}[m" - out="$out${PF_SEP}${align}" + out="$out${PF_SEP}[$((info_length-${#name}))C" out="$out[3${PF_COL2-7}m${info}" } @@ -1463,7 +1461,7 @@ main() { while IFS= read -r line || [ "$1" ]; do "get_$1" shift "$(($# ? 1 : 0))" - printf '%*.s%s\r%s\n' "$ascii_width" "" "$out" "$line" >&6 + printf '\033[%sC%s\r%s\n' "$ascii_width" "$out" "$line" >&6 out= done <<-EOF $ascii[m |
