aboutsummaryrefslogtreecommitdiff
path: root/bb.h
diff options
context:
space:
mode:
Diffstat (limited to 'bb.h')
-rw-r--r--bb.h3
1 files changed, 2 insertions, 1 deletions
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"