comparison src/term.c @ 18299:a9cf41bcb5d6 v8.1.2144

patch 8.1.2144: side effects when using t_ti to enable modifyOtherKeys Commit: https://github.com/vim/vim/commit/171a921b51101c1261040d28a8147c8829b675d3 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 12 21:08:59 2019 +0200 patch 8.1.2144: side effects when using t_ti to enable modifyOtherKeys Problem: Side effects when using t_ti to enable modifyOtherKeys. Solution: Add t_TI and t_TE.
author Bram Moolenaar <Bram@vim.org>
date Sat, 12 Oct 2019 21:15:04 +0200
parents 43e9523f6d84
children 506bf60a30a0
comparison
equal deleted inserted replaced
18298:319c64023a01 18299:a9cf41bcb5d6
1622 {KS_US, "us"}, {KS_UCE, "Ce"}, {KS_UCS, "Cs"}, 1622 {KS_US, "us"}, {KS_UCE, "Ce"}, {KS_UCS, "Cs"},
1623 {KS_STE,"Te"}, {KS_STS,"Ts"}, 1623 {KS_STE,"Te"}, {KS_STS,"Ts"},
1624 {KS_CM, "cm"}, {KS_SR, "sr"}, 1624 {KS_CM, "cm"}, {KS_SR, "sr"},
1625 {KS_CRI,"RI"}, {KS_VB, "vb"}, {KS_KS, "ks"}, 1625 {KS_CRI,"RI"}, {KS_VB, "vb"}, {KS_KS, "ks"},
1626 {KS_KE, "ke"}, {KS_TI, "ti"}, {KS_TE, "te"}, 1626 {KS_KE, "ke"}, {KS_TI, "ti"}, {KS_TE, "te"},
1627 {KS_CTI, "TI"}, {KS_CTE, "TE"},
1627 {KS_BC, "bc"}, {KS_CSB,"Sb"}, {KS_CSF,"Sf"}, 1628 {KS_BC, "bc"}, {KS_CSB,"Sb"}, {KS_CSF,"Sf"},
1628 {KS_CAB,"AB"}, {KS_CAF,"AF"}, {KS_LE, "le"}, 1629 {KS_CAB,"AB"}, {KS_CAF,"AF"}, {KS_LE, "le"},
1629 {KS_ND, "nd"}, {KS_OP, "op"}, {KS_CRV, "RV"}, 1630 {KS_ND, "nd"}, {KS_OP, "op"}, {KS_CRV, "RV"},
1630 {KS_VS, "vs"}, {KS_CVS, "VS"}, 1631 {KS_VS, "vs"}, {KS_CVS, "VS"},
1631 {KS_CIS, "IS"}, {KS_CIE, "IE"}, 1632 {KS_CIS, "IS"}, {KS_CIE, "IE"},
3460 starttermcap(void) 3461 starttermcap(void)
3461 { 3462 {
3462 if (full_screen && !termcap_active) 3463 if (full_screen && !termcap_active)
3463 { 3464 {
3464 out_str(T_TI); /* start termcap mode */ 3465 out_str(T_TI); /* start termcap mode */
3466 out_str(T_CTI); /* start "raw" mode */
3465 out_str(T_KS); /* start "keypad transmit" mode */ 3467 out_str(T_KS); /* start "keypad transmit" mode */
3466 out_str(T_BE); /* enable bracketed paste mode */ 3468 out_str(T_BE); /* enable bracketed paste mode */
3467 out_flush(); 3469 out_flush();
3468 termcap_active = TRUE; 3470 termcap_active = TRUE;
3469 screen_start(); /* don't know where cursor is now */ 3471 screen_start(); /* don't know where cursor is now */
3515 out_str(T_BD); /* disable bracketed paste mode */ 3517 out_str(T_BD); /* disable bracketed paste mode */
3516 out_str(T_KE); /* stop "keypad transmit" mode */ 3518 out_str(T_KE); /* stop "keypad transmit" mode */
3517 out_flush(); 3519 out_flush();
3518 termcap_active = FALSE; 3520 termcap_active = FALSE;
3519 cursor_on(); /* just in case it is still off */ 3521 cursor_on(); /* just in case it is still off */
3522 out_str(T_CTE); /* stop "raw" mode */
3520 out_str(T_TE); /* stop termcap mode */ 3523 out_str(T_TE); /* stop termcap mode */
3521 screen_start(); /* don't know where cursor is now */ 3524 screen_start(); /* don't know where cursor is now */
3522 out_flush(); 3525 out_flush();
3523 } 3526 }
3524 } 3527 }