Mercurial > vim
comparison src/globals.h @ 22091:9bb1c984c4da v8.2.1595
patch 8.2.1595: cannot easily see what Vim sends to the terminal
Commit: https://github.com/vim/vim/commit/86394aa9720c5e087d85831e42d44e042987fbc0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 5 14:27:24 2020 +0200
patch 8.2.1595: cannot easily see what Vim sends to the terminal
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 05 Sep 2020 14:30:03 +0200 |
parents | f55cba26348f |
children | 2cc0de1e05a6 |
comparison
equal
deleted
inserted
replaced
22090:a6f58b8aa1af | 22091:9bb1c984c4da |
---|---|
1896 #if defined(FEAT_JOB_CHANNEL) | 1896 #if defined(FEAT_JOB_CHANNEL) |
1897 EXTERN int did_repeated_msg INIT(= 0); | 1897 EXTERN int did_repeated_msg INIT(= 0); |
1898 # define REPEATED_MSG_LOOKING 1 | 1898 # define REPEATED_MSG_LOOKING 1 |
1899 # define REPEATED_MSG_SAFESTATE 2 | 1899 # define REPEATED_MSG_SAFESTATE 2 |
1900 | 1900 |
1901 // This flag is set when outputting a terminal control code and reset in | |
1902 // out_flush() when characters have been written. | |
1903 EXTERN int ch_log_output INIT(= FALSE); | |
1904 | |
1901 #define FOR_ALL_CHANNELS(ch) \ | 1905 #define FOR_ALL_CHANNELS(ch) \ |
1902 for ((ch) = first_channel; (ch) != NULL; (ch) = (ch)->ch_next) | 1906 for ((ch) = first_channel; (ch) != NULL; (ch) = (ch)->ch_next) |
1903 #define FOR_ALL_JOBS(job) \ | 1907 #define FOR_ALL_JOBS(job) \ |
1904 for ((job) = first_job; (job) != NULL; (job) = (job)->jv_next) | 1908 for ((job) = first_job; (job) != NULL; (job) = (job)->jv_next) |
1905 #endif | 1909 #endif |