Mercurial > vim
comparison src/os_unix.c @ 20597:1c9b87841376 v8.2.0852
patch 8.2.0852: cannot map CTRL-S on some systems
Commit: https://github.com/vim/vim/commit/d6cd5ffade84a1054fed23079133af3b837033bf
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 30 20:05:02 2020 +0200
patch 8.2.0852: cannot map CTRL-S on some systems
Problem: Cannot map CTRL-S on some systems.
Solution: Do not use CTRL-S for flow control.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 May 2020 20:15:03 +0200 |
parents | 4411c2b96af9 |
children | 503886f64d5f |
comparison
equal
deleted
inserted
replaced
20596:4ec94bcaef86 | 20597:1c9b87841376 |
---|---|
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 tnew.c_iflag &= ~ICRNL; |
3485 # ifdef IXON_NOT_USED | |
3486 // Do not make CTRL-S stop output, for most users it is unexpected and | 3485 // Do not make CTRL-S stop output, for most users it is unexpected and |
3487 // is hardly ever useful. | 3486 // is hardly ever useful. |
3488 tnew.c_iflag |= IXON; | 3487 tnew.c_iflag |= IXON; |
3489 # endif | |
3490 tnew.c_lflag &= ~(ICANON | ECHO | ISIG | ECHOE | 3488 tnew.c_lflag &= ~(ICANON | ECHO | ISIG | ECHOE |
3491 # if defined(IEXTEN) && !defined(__MINT__) | 3489 # if defined(IEXTEN) && !defined(__MINT__) |
3492 | IEXTEN // IEXTEN enables typing ^V on SOLARIS | 3490 | IEXTEN // IEXTEN enables typing ^V on SOLARIS |
3493 // but it breaks function keys on MINT | 3491 // but it breaks function keys on MINT |
3494 # endif | 3492 # endif |