Mercurial > vim
changeset 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 | ad1abc9879ed |
children | 7d5bd5affd11 |
files | src/os_unix.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/os_unix.c +++ b/src/os_unix.c @@ -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