summaryrefslogtreecommitdiffstats
path: root/src/globals.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-09-05 14:27:24 +0200
committerBram Moolenaar <Bram@vim.org>2020-09-05 14:27:24 +0200
commit86394aa9720c5e087d85831e42d44e042987fbc0 (patch)
tree853c38b28ea57594f1daec276c9fcc2b94c08bf1 /src/globals.h
parentcf8aa6448b3520905bea528ea8ad6533cbef288d (diff)
patch 8.2.1595: cannot easily see what Vim sends to the terminalv8.2.1595
Problem: Cannot easily see what Vim sends to the terminal. Solution: Write output to the channel log if it contains terminal control sequences. Avoid warnings for tputs() argument.
Diffstat (limited to 'src/globals.h')
-rw-r--r--src/globals.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/globals.h b/src/globals.h
index 7dbc49e3ec..7477992b1f 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -1898,6 +1898,10 @@ EXTERN int did_repeated_msg INIT(= 0);
# define REPEATED_MSG_LOOKING 1
# define REPEATED_MSG_SAFESTATE 2
+// This flag is set when outputting a terminal control code and reset in
+// out_flush() when characters have been written.
+EXTERN int ch_log_output INIT(= FALSE);
+
#define FOR_ALL_CHANNELS(ch) \
for ((ch) = first_channel; (ch) != NULL; (ch) = (ch)->ch_next)
#define FOR_ALL_JOBS(job) \