summaryrefslogtreecommitdiffstats
path: root/src/globals.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-11-24 15:09:07 +0100
committerBram Moolenaar <Bram@vim.org>2016-11-24 15:09:07 +0100
commit2cab0e191055a8145ccd46cd52869fbb9798b971 (patch)
tree0c3a83114c182262e07fa5434beeac799358e824 /src/globals.h
parent182707ac10d77359bf7a87c6b23ce4025d5b0ad4 (diff)
patch 8.0.0096v8.0.0096
Problem: When the input or output is not a tty Vim appears to hang. Solution: Add the --ttyfail argument. Also add the "ttyin" and "ttyout" features to be able to check in Vim script.
Diffstat (limited to 'src/globals.h')
-rw-r--r--src/globals.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/globals.h b/src/globals.h
index c15e4f9bb9..0b6abb0e85 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -643,6 +643,8 @@ EXTERN int exiting INIT(= FALSE);
EXTERN int really_exiting INIT(= FALSE);
/* TRUE when we are sure to exit, e.g., after
* a deadly signal */
+EXTERN int stdout_isatty INIT(= TRUE); /* is stdout a terminal? */
+
#if defined(FEAT_AUTOCHDIR)
EXTERN int test_autochdir INIT(= FALSE);
#endif