From c6e5383217c70914a933f1911bf48a1e54b26595 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 29 Mar 2015 13:16:46 -0700 Subject: 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. --- txr.h | 1 + 1 file changed, 1 insertion(+) (limited to 'txr.h') 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; -- cgit v1.2.3