0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.2.0856: CTRL-S stops output

Problem:    CTRL-S stops output.
Solution:   Invert the IXON flag. (closes #6166)
This commit is contained in:
Bram Moolenaar 2020-05-31 13:09:47 +02:00
parent ebe9d34aa0
commit 928eec649b
2 changed files with 4 additions and 4 deletions

View File

@ -3481,10 +3481,8 @@ mch_settmode(tmode_T tmode)
if (tmode == TMODE_RAW)
{
// ~ICRNL enables typing ^V^M
tnew.c_iflag &= ~ICRNL;
// Do not make CTRL-S stop output, for most users it is unexpected and
// is hardly ever useful.
tnew.c_iflag |= IXON;
// ~IXON disables CTRL-S stopping output, so that it can be mapped.
tnew.c_iflag &= ~(ICRNL | IXON);
tnew.c_lflag &= ~(ICANON | ECHO | ISIG | ECHOE
# if defined(IEXTEN) && !defined(__MINT__)
| IEXTEN // IEXTEN enables typing ^V on SOLARIS

View File

@ -746,6 +746,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
856,
/**/
855,
/**/