aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2020-01-26 22:26:35 +0200
committerDylan Araps <dylan.araps@gmail.com>2020-01-26 22:26:35 +0200
commit8d1b579b39f0ebd5098afe5b5e3e74a03d0f23e5 (patch)
tree9a5ea7f6ea67ff1a2ca1a63ad03f0fe1f1c47be8
parent32743859da5ec395958449a574d8cdb0fb01c042 (diff)
downloadpfetch-8d1b579b39f0ebd5098afe5b5e3e74a03d0f23e5.tar.gz
docs: update
-rwxr-xr-xpfetch9
1 files changed, 3 insertions, 6 deletions
diff --git a/pfetch b/pfetch
index c3dead2..8f1ea30 100755
--- a/pfetch
+++ b/pfetch
@@ -1328,9 +1328,7 @@ main() {
c7=''; c8=''
}
- # Avoid text-wrapping from wrecking the program output
- # and hide the cursor to hide its moving around during
- # the printing process.
+ # Avoid text-wrapping from wrecking the program output.
#
# Some terminals don't support these sequences, nor do they
# silently conceal them if they're printed resulting in
@@ -1338,11 +1336,10 @@ main() {
[ "$TERM" = dumb ] ||
[ "$TERM" = minix ] ||
[ "$TERM" = cons25 ] || {
- # '[?7l': Disable line-wrapping.
+ # Disable line-wrapping.
printf '[?7l' >&6
- # Leave the terminal how we found it on exit or Ctrl+C.
- # '[?7h': Enable line-wrapping.
+ # Enable line-wrapping again on exit.
trap 'printf [?7h >&6' EXIT
}