comparison src/os_unix.c @ 20605:503886f64d5f v8.2.0856

patch 8.2.0856: CTRL-S stops output Commit: https://github.com/vim/vim/commit/928eec649b8af389de0fdb7aba2034d27df3e058 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 31 13:09:47 2020 +0200 patch 8.2.0856: CTRL-S stops output Problem: CTRL-S stops output. Solution: Invert the IXON flag. (closes https://github.com/vim/vim/issues/6166)
author Bram Moolenaar <Bram@vim.org>
date Sun, 31 May 2020 13:15:04 +0200
parents 1c9b87841376
children e76b83c07bd8
comparison
equal deleted inserted replaced
20604:ad1abc9879ed 20605:503886f64d5f
3479 3479
3480 tnew = told; 3480 tnew = told;
3481 if (tmode == TMODE_RAW) 3481 if (tmode == TMODE_RAW)
3482 { 3482 {
3483 // ~ICRNL enables typing ^V^M 3483 // ~ICRNL enables typing ^V^M
3484 tnew.c_iflag &= ~ICRNL; 3484 // ~IXON disables CTRL-S stopping output, so that it can be mapped.
3485 // Do not make CTRL-S stop output, for most users it is unexpected and 3485 tnew.c_iflag &= ~(ICRNL | IXON);
3486 // is hardly ever useful.
3487 tnew.c_iflag |= IXON;
3488 tnew.c_lflag &= ~(ICANON | ECHO | ISIG | ECHOE 3486 tnew.c_lflag &= ~(ICANON | ECHO | ISIG | ECHOE
3489 # if defined(IEXTEN) && !defined(__MINT__) 3487 # if defined(IEXTEN) && !defined(__MINT__)
3490 | IEXTEN // IEXTEN enables typing ^V on SOLARIS 3488 | IEXTEN // IEXTEN enables typing ^V on SOLARIS
3491 // but it breaks function keys on MINT 3489 // but it breaks function keys on MINT
3492 # endif 3490 # endif