summaryrefslogtreecommitdiffstats
path: root/txr.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-03-29 13:16:46 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-03-29 13:16:46 -0700
commitc6e5383217c70914a933f1911bf48a1e54b26595 (patch)
tree5e40a74c23c75fc2bd786490732682618585ec9e /txr.h
parent084bde656bac142bba5311b519c7bb78e2c45dad (diff)
downloadtxr-c6e5383217c70914a933f1911bf48a1e54b26595.tar.gz
txr-c6e5383217c70914a933f1911bf48a1e54b26595.tar.bz2
txr-c6e5383217c70914a933f1911bf48a1e54b26595.zip
New -n option. New "i" mode letter in file opening functions.
* stream.c (struct stdio_mode): New struct type. (stdio_mode_init_trivial): New initializer macro. (parse_mode, format_mode, normalize_mode, set_mode_props): New static functions. (make_stdio_stream_common): the isatty check, and automatic marking of tty device streams as real-time is no longer done, unless backward compatibility 105 or earlier is requested. (open_file, open_tail, open_command, open_process): Use new mode parsing, which supports the "i" flag. (stream_init): If we have isatty, and standard input is a tty, then mark the *std-input* stream as real-time. * txr.1: Document -n/--noninteractive option. Fix typo where real-time-stream-p is referred to as stream-real-time-p. Document "i" flag on open-file and others. * txr.c (opt_noninteractive): New global. (help): Help text for -n/--noninteractive. (txr_main): Handle new options. * txr.h (opt_noninteractive): Declared.
Diffstat (limited to 'txr.h')
-rw-r--r--txr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/txr.h b/txr.h
index 5140712f..be82ebfc 100644
--- a/txr.h
+++ b/txr.h
@@ -33,6 +33,7 @@ extern int opt_gc_debug;
extern int opt_vg_debug;
#endif
extern int opt_derivative_regex;
+extern int opt_noninteractive;
extern int opt_compat;
extern alloc_bytes_t opt_gc_delta;
extern const wchli_t *version;