diff options
Diffstat (limited to 'helpers/bbunscroll')
| -rwxr-xr-x | helpers/bbunscroll | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/helpers/bbunscroll b/helpers/bbunscroll new file mode 100755 index 0000000..15102c4 --- /dev/null +++ b/helpers/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" |
