pfetch: Revert prior change
This commit is contained in:
parent
3bb449700c
commit
9fc34b0000
6
pfetch
6
pfetch
|
@ -22,9 +22,11 @@ log() {
|
||||||
info=$*
|
info=$*
|
||||||
}
|
}
|
||||||
|
|
||||||
|
align=$(printf '%*s' "$((${#name}-info_length))" "")
|
||||||
|
|
||||||
# Construct the information string.
|
# Construct the information string.
|
||||||
out="[3${PF_COL1-4};1m${name}[m"
|
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}"
|
out="$out[3${PF_COL2-7}m${info}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1399,7 +1401,7 @@ main() {
|
||||||
while IFS= read -r line || [ "$1" ]; do
|
while IFS= read -r line || [ "$1" ]; do
|
||||||
"get_$1"
|
"get_$1"
|
||||||
shift "$(($# ? 1 : 0))"
|
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=
|
out=
|
||||||
done <<-EOF
|
done <<-EOF
|
||||||
$ascii[m
|
$ascii[m
|
||||||
|
|
Loading…
Reference in New Issue
Block a user