aboutsummaryrefslogtreecommitdiff
path: root/bb.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-12-11 22:12:18 -0800
committerBruce Hill <bruce@bruce-hill.com>2019-12-11 22:12:18 -0800
commit1d69bb63ceb10402a2e406445abdff28781d7551 (patch)
tree8d7b1da5ba4a0abc4f33982b6b9d44e99013737c /bb.h
parent0e94d55807d5a9fef078b122e5a7fb50b206fcab (diff)
Fix for mac support.
Diffstat (limited to 'bb.h')
-rw-r--r--bb.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/bb.h b/bb.h
index 404b422..4a5d758 100644
--- a/bb.h
+++ b/bb.h
@@ -25,7 +25,7 @@
#include "bterm.h"
// Macros:
-#define BB_VERSION "0.20.2"
+#define BB_VERSION "0.20.3"
#ifndef PATH_MAX
#define PATH_MAX 4096
@@ -292,13 +292,13 @@ ASK1 ";\n"
#else
" tput civis >/dev/tty;\n"
" printf \"\033[1m%s\033[0m\" \"$2\" >/dev/tty;\n"
-" stty -icanon -echo >/dev/tty;\n"
+" stty -icanon -echo >/dev/tty 2>/dev/tty;\n"
#ifdef __APPLE__
" read -n 1 $1 </dev/tty >/dev/tty;\n"
#else
" eval \"$1=\\$(dd bs=1 count=1 2>/dev/null </dev/tty)\";\n"
#endif
-" stty icanon echo >/dev/tty;\n"
+" stty icanon echo >/dev/tty 2>/dev/tty;\n"
" tput cvvis >/dev/tty;\n"
#endif
"}\n"