pfetch: remove cursor movement for palette
This commit is contained in:
parent
24498852fd
commit
8dd5981fbc
16
pfetch
16
pfetch
|
@ -24,7 +24,11 @@ log() {
|
||||||
|
|
||||||
align=$(printf '%*.s' "$((${#name}-info_length))" "")
|
align=$(printf '%*.s' "$((${#name}-info_length))" "")
|
||||||
|
|
||||||
out="[3${PF_COL1-4};1m${name}[m${PF_SEP}${align}[3${PF_COL2-7}m${info}[m"
|
# Construct the information string.
|
||||||
|
out=
|
||||||
|
out="[3${PF_COL1-4};1m${name}[m"
|
||||||
|
out="$out${PF_SEP}${align}"
|
||||||
|
out="$out[3${PF_COL2-7}m${info}[m"
|
||||||
}
|
}
|
||||||
|
|
||||||
get_title() {
|
get_title() {
|
||||||
|
@ -781,12 +785,12 @@ get_palette() {
|
||||||
#
|
#
|
||||||
# This allows us to save hardcoding a second set of sequences
|
# This allows us to save hardcoding a second set of sequences
|
||||||
# for background colors.
|
# for background colors.
|
||||||
palette=" [7m$c1 $c2 $c3 $c4 $c5 $c6 $c7 "
|
palette="[7m$c1 $c1 $c2 $c2 $c3 $c3 $c4 $c4 $c5 $c5 $c6 $c6 [m"
|
||||||
|
|
||||||
# Print the palette with a newline before and after.
|
# Print the palette with a new-line before and afterwards.
|
||||||
# The '\033[%sC' moves the text to the right, the
|
printf '\n' >&6
|
||||||
# length of the ascii art.
|
log "$palette
|
||||||
printf '\n[%sC%s[m\n' "${ascii_width-1}" "$palette" >&6
|
" " "
|
||||||
}
|
}
|
||||||
|
|
||||||
get_ascii() {
|
get_ascii() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user