bb/helpers/bbunscroll
Bruce Hill 865092c656 Major update: instead of defining all the helper functions as static
C-strings prefixed to commands (modified by the Makefile), the helper
functions are now standalone scripts in the helpers/ dir, which gets
added to "$PATH" when running bb.
2020-02-24 01:31:39 -08:00

6 lines
163 B
Bash
Executable File

#!/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"