aboutsummaryrefslogtreecommitdiff
path: root/scripts/bbunscroll
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/bbunscroll')
-rwxr-xr-xscripts/bbunscroll5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/bbunscroll b/scripts/bbunscroll
new file mode 100755
index 0000000..15102c4
--- /dev/null
+++ b/scripts/bbunscroll
@@ -0,0 +1,5 @@
+#!/bin/sh
+# Display text from the current line upward (instead of downward)
+input="$(cat)"
+printf "\\033[$(echo "$input" | wc -l)A\\033[J" >/dev/tty
+echo "$input"