From 865092c656af70bd5317513d8e0ed87fdc1c9acd Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 24 Feb 2020 01:31:39 -0800 Subject: 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. --- helpers/bbunscroll | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 helpers/bbunscroll (limited to 'helpers/bbunscroll') 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" -- cgit v1.2.3