aboutsummaryrefslogtreecommitdiff
path: root/bb.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-11-08 15:46:00 +0100
committerBruce Hill <bruce@bruce-hill.com>2019-11-08 15:46:00 +0100
commite60e5472b46b50734c5d2fd64e4c07a370f2d944 (patch)
treeeca688a23af86c613ac4818216ebba752b62a2a6 /bb.h
parentb9e2bc280befaf259bb5a61d1b6e41de3b8ed3c7 (diff)
Added better doc for unscroll
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"