Mercurial > vim
comparison src/term.h @ 20439:d4b2a8675b78 v8.2.0774
patch 8.2.0774: t_TI and t_TE are output when using 'visualbell'
Commit: https://github.com/vim/vim/commit/26e86445bf06ab7e7587dfdf75f33f7c70632b46
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 17 14:06:16 2020 +0200
patch 8.2.0774: t_TI and t_TE are output when using 'visualbell'
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 17 May 2020 14:15:07 +0200 |
parents | 3bb4dea4a164 |
children | 68c206d3a251 |
comparison
equal
deleted
inserted
replaced
20438:1f756e67c0d4 | 20439:d4b2a8675b78 |
---|---|
207 #define T_CST (TERM_STR(KS_CST)) // save window title | 207 #define T_CST (TERM_STR(KS_CST)) // save window title |
208 #define T_CRT (TERM_STR(KS_CRT)) // restore window title | 208 #define T_CRT (TERM_STR(KS_CRT)) // restore window title |
209 #define T_SSI (TERM_STR(KS_SSI)) // save icon text | 209 #define T_SSI (TERM_STR(KS_SSI)) // save icon text |
210 #define T_SRI (TERM_STR(KS_SRI)) // restore icon text | 210 #define T_SRI (TERM_STR(KS_SRI)) // restore icon text |
211 | 211 |
212 #define TMODE_COOK 0 // terminal mode for external cmds and Ex mode | 212 typedef enum { |
213 #define TMODE_SLEEP 1 // terminal mode for sleeping (cooked but no echo) | 213 TMODE_COOK, // terminal mode for external cmds and Ex mode |
214 #define TMODE_RAW 2 // terminal mode for Normal and Insert mode | 214 TMODE_SLEEP, // terminal mode for sleeping (cooked but no echo) |
215 #define TMODE_UNKNOWN 9 // after executing a shell | 215 TMODE_RAW, // terminal mode for Normal and Insert mode |
216 TMODE_UNKNOWN // after executing a shell | |
217 } tmode_T; |