diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2020-02-24 03:39:44 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2020-02-24 03:39:44 -0800 |
| commit | 88fd9c416be0f5fe1e5fd48ba7c27d4d1e25261c (patch) | |
| tree | cfe311fb81c1d12e46b08de175a6296f0aed7a0d /scripts/bbunscroll | |
| parent | 304cbddf730b86dec2b3d7c414fd0b9a38c69d76 (diff) | |
Moved bbstartup into a script, renamed helper/ -> scripts/, and added
bbshutdown script. Also tweaked some of the precedence.
Diffstat (limited to 'scripts/bbunscroll')
| -rwxr-xr-x | scripts/bbunscroll | 5 |
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" |
