Mercurial > vim
comparison src/term.c @ 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 | d5d89c24eec7 |
comparison
equal
deleted
inserted
replaced
20438:1f756e67c0d4 | 20439:d4b2a8675b78 |
---|---|
3469 check_for_codes_from_term(); | 3469 check_for_codes_from_term(); |
3470 } | 3470 } |
3471 #endif | 3471 #endif |
3472 if (tmode != TMODE_RAW) | 3472 if (tmode != TMODE_RAW) |
3473 mch_setmouse(FALSE); // switch mouse off | 3473 mch_setmouse(FALSE); // switch mouse off |
3474 if (termcap_active) | 3474 |
3475 // Disable bracketed paste and modifyOtherKeys in cooked mode. | |
3476 // Avoid doing this too often, on some terminals the codes are not | |
3477 // handled properly. | |
3478 if (termcap_active && tmode != TMODE_SLEEP | |
3479 && cur_tmode != TMODE_SLEEP) | |
3475 { | 3480 { |
3476 if (tmode != TMODE_RAW) | 3481 if (tmode != TMODE_RAW) |
3477 { | 3482 { |
3478 out_str(T_BD); // disable bracketed paste mode | 3483 out_str(T_BD); // disable bracketed paste mode |
3479 out_str(T_CTE); // possibly disables modifyOtherKeys | 3484 out_str(T_CTE); // possibly disables modifyOtherKeys |