pfetch: misc
This commit is contained in:
parent
c36607909b
commit
32743859da
9
pfetch
9
pfetch
|
@ -25,10 +25,9 @@ log() {
|
||||||
align=$(printf '%*.s' "$((${#name}-info_length))" "")
|
align=$(printf '%*.s' "$((${#name}-info_length))" "")
|
||||||
|
|
||||||
# Construct the information string.
|
# Construct the information string.
|
||||||
out=
|
|
||||||
out="[3${PF_COL1-4};1m${name}[m"
|
out="[3${PF_COL1-4};1m${name}[m"
|
||||||
out="$out${PF_SEP}${align}"
|
out="$out${PF_SEP}${align}"
|
||||||
out="$out[3${PF_COL2-7}m${info}[m"
|
out="$out[3${PF_COL2-7}m${info}"
|
||||||
}
|
}
|
||||||
|
|
||||||
get_title() {
|
get_title() {
|
||||||
|
@ -1340,13 +1339,11 @@ main() {
|
||||||
[ "$TERM" = minix ] ||
|
[ "$TERM" = minix ] ||
|
||||||
[ "$TERM" = cons25 ] || {
|
[ "$TERM" = cons25 ] || {
|
||||||
# '[?7l': Disable line-wrapping.
|
# '[?7l': Disable line-wrapping.
|
||||||
# '[?25l': Hide the cursor.
|
printf '[?7l' >&6
|
||||||
printf '[?7l[?25l' >&6
|
|
||||||
|
|
||||||
# Leave the terminal how we found it on exit or Ctrl+C.
|
# Leave the terminal how we found it on exit or Ctrl+C.
|
||||||
# '[?7h': Enable line-wrapping.
|
# '[?7h': Enable line-wrapping.
|
||||||
# '[?25h': Show the cursor.
|
trap 'printf [?7h >&6' EXIT
|
||||||
trap 'printf [?7h[?25h >&6' EXIT
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Store the output of 'uname' to avoid calling it multiple times
|
# Store the output of 'uname' to avoid calling it multiple times
|
||||||
|
|
Loading…
Reference in New Issue
Block a user