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 6f2a8f9..95f7175 100644
--- a/bb.h
+++ b/bb.h
@@ -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"