diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-05-17 14:06:16 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-05-17 14:06:16 +0200 |
commit | 26e86445bf06ab7e7587dfdf75f33f7c70632b46 (patch) | |
tree | 06de58be8af393479646d44e4e20aa554c22f28f /src/term.h | |
parent | 3b1f18f785f67c6cd110498c366e4d0c0fe11f27 (diff) | |
download | vim-git-26e86445bf06ab7e7587dfdf75f33f7c70632b46.tar.gz |
patch 8.2.0774: t_TI and t_TE are output when using 'visualbell'v8.2.0774
Problem: t_TI and t_TE are output when using 'visualbell'. (Dominique
Pelle)
Solution: Do not change the terminal mode for a short sleep. Do not output
t_TI and t_TE when switching to/from TMODE_SLEEP. Make tmode an
enum.
Diffstat (limited to 'src/term.h')
-rw-r--r-- | src/term.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/term.h b/src/term.h index b9535ee1d..dca48d1ad 100644 --- a/src/term.h +++ b/src/term.h @@ -209,7 +209,9 @@ extern char_u *(term_strings[]); // current terminal strings #define T_SSI (TERM_STR(KS_SSI)) // save icon text #define T_SRI (TERM_STR(KS_SRI)) // restore icon text -#define TMODE_COOK 0 // terminal mode for external cmds and Ex mode -#define TMODE_SLEEP 1 // terminal mode for sleeping (cooked but no echo) -#define TMODE_RAW 2 // terminal mode for Normal and Insert mode -#define TMODE_UNKNOWN 9 // after executing a shell +typedef enum { + TMODE_COOK, // terminal mode for external cmds and Ex mode + TMODE_SLEEP, // terminal mode for sleeping (cooked but no echo) + TMODE_RAW, // terminal mode for Normal and Insert mode + TMODE_UNKNOWN // after executing a shell +} tmode_T; |