summaryrefslogtreecommitdiffstats
path: root/txr.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-04-04 20:13:42 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-04-04 20:13:42 -0700
commitab2bd375ee064936ba61cdfee1b4d832541a0af0 (patch)
treed5d56cda57ec7008547c4a4ef5b5a3801f0344d7 /txr.c
parentc23f91464c4b68fb0190a8f395f302ab9f1e451d (diff)
downloadtxr-ab2bd375ee064936ba61cdfee1b4d832541a0af0.tar.gz
txr-ab2bd375ee064936ba61cdfee1b4d832541a0af0.tar.bz2
txr-ab2bd375ee064936ba61cdfee1b4d832541a0af0.zip
Connect -n option to linenoise noninteractive mode.
* parser.c (repl): Set noninteractive mode from noninteractive option. * txr.c (help): Mention effect of -n upon listener. * txr.1: Documented effect of -n/--noninteractive on the listener.
Diffstat (limited to 'txr.c')
-rw-r--r--txr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/txr.c b/txr.c
index afe07971..5b0ade21 100644
--- a/txr.c
+++ b/txr.c
@@ -125,6 +125,8 @@ static void help(void)
"-d Debugger mode.\n"
"-n Noninteractive input mode for standard input stream,\n"
" even if its connected to a terminal device.\n"
+" Also, forces the interactive listener into\n"
+" 'plain mode' without editing features.\n"
"-a N Generate array variables up to N dimensions.\n"
" N is a decimal integer. The default value is 1.\n"
" Additional dimensions beyond N are fudged\n"