From e60e5472b46b50734c5d2fd64e4c07a370f2d944 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 8 Nov 2019 15:46:00 +0100 Subject: Added better doc for unscroll --- bb.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bb.h') diff --git a/bb.h b/bb.h index ec1440f..ff245a2 100644 --- a/bb.h +++ b/bb.h @@ -264,7 +264,8 @@ static const char *bbcmdfn = "bb() {\n" " printf \"%s\\0\" \"$arg\" >> $BBCMD;\n" " done;\n" "}\n" -"butt() {\n" +// This shell function overwrites the lines above the cursor instead of scrolling the screen +"unscroll() {\n" " input=\"$(cat)\"\n" " printf \"\\033[$(echo \"$input\" | wc -l)A\\033[J\" >/dev/tty\n" " echo \"$input\"\n" -- cgit v1.2.3