diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-10-03 14:57:34 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-10-03 14:57:34 -0700 |
| commit | 7f0fcdeea449a3ffc7a65a3024b6b5d4a1b3e93b (patch) | |
| tree | 45f43e00d7bbafd122d423f96c73a5baa1f53baa /bb.h | |
| parent | 97bae88a1ef368b962df5b1ee147094a0d47d43e (diff) | |
Removed some unnecessary +refreshes, no longer enable cursor by default,
but instead have ask() etc. make the cursor visible. Also cleaned up
some of the failure cases for better feedback.
Diffstat (limited to 'bb.h')
| -rw-r--r-- | bb.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -240,7 +240,8 @@ static const char *bbcmdfn = "bb() {\n" #ifdef ASK ASK ";\n" #else -" printf \"\033[1m%s\033[0m\" \"$2\" >/dev/tty;\n" +" [ $# -lt 2 ] && printf '\033[31;1mNot enough args to ask!\033[0m\n' && return 1;\n" +" printf \"\033[1m%s\033[0m\033[?25h\" \"$2\" >/dev/tty;\n" " read $1 </dev/tty >/dev/tty\n" #endif "}\n" |
