From ab2bd375ee064936ba61cdfee1b4d832541a0af0 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 4 Apr 2017 20:13:42 -0700 Subject: 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. --- txr.1 | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'txr.1') diff --git a/txr.1 b/txr.1 index 31f3d468..60f3bc5f 100644 --- a/txr.1 +++ b/txr.1 @@ -458,7 +458,10 @@ Invoke the interactive \*(TX debugger. See the DEBUGGER section. .coIP --noninteractive This option affects behavior related to \*(TX's .code *std-input* -stream. Normally, if this stream is connected to a terminal device, it is +stream. It also has a another, unrelated effect, on the +behavior of the interactive listener; see below. + +Normally, if this stream is connected to a terminal device, it is automatically marked as having the real-time property when \*(TX starts up (see the functions .code stream-set-prop and .codn real-time-stream-p ). @@ -478,6 +481,18 @@ returned by that function has behaviors that are better suited for scanning interactive input. A more detailed explanation is given under the description of this function. +If the +.code -n +option is effect and \*(TX enters into the interactive listener, +the listener operates in +.IR "plain mode" . +The listener reads buffered lines +from the operating system without any character-based editing features +or history navigation. In plain mode, no prompts appear and no +terminal control escape sequences are generated. The only output is +the results of evaluation, related diagnostic messages, and any output +generated by the evaluated expressions themselves. + .coIP -v Verbose operation. Detailed logging is enabled. -- cgit v1.2.3