aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2020-01-26 22:24:34 +0200
committerDylan Araps <dylan.araps@gmail.com>2020-01-26 22:24:34 +0200
commit32743859da5ec395958449a574d8cdb0fb01c042 (patch)
tree3828814d8854be5db5e3e47c34c8aadbf6f6a2b6
parentc36607909ba8e18448b739833b338e699b8b810d (diff)
downloadpfetch-32743859da5ec395958449a574d8cdb0fb01c042.tar.gz
pfetch: misc
-rwxr-xr-xpfetch9
1 files changed, 3 insertions, 6 deletions
diff --git a/pfetch b/pfetch
index 8d26f35..c3dead2 100755
--- a/pfetch
+++ b/pfetch
@@ -25,10 +25,9 @@ log() {
align=$(printf '%*.s' "$((${#name}-info_length))" "")
# Construct the information string.
- out=
out="[3${PF_COL1-4};1m${name}"
out="$out${PF_SEP}${align}"
- out="$out[3${PF_COL2-7}m${info}"
+ out="$out[3${PF_COL2-7}m${info}"
}
get_title() {
@@ -1340,13 +1339,11 @@ main() {
[ "$TERM" = minix ] ||
[ "$TERM" = cons25 ] || {
# '[?7l': Disable line-wrapping.
- # '[?25l': Hide the cursor.
- printf '[?7l[?25l' >&6
+ printf '[?7l' >&6
# Leave the terminal how we found it on exit or Ctrl+C.
# '[?7h': Enable line-wrapping.
- # '[?25h': Show the cursor.
- trap 'printf [?7h[?25h >&6' EXIT
+ trap 'printf [?7h >&6' EXIT
}
# Store the output of 'uname' to avoid calling it multiple times