Disable VQUIT for shell modes

This allows binding ctrl+\ by default.

Fixes #9234
This commit is contained in:
Fabian Boehm 2022-09-25 13:23:09 +02:00
parent 0ede48e024
commit ccca5b553f
2 changed files with 2 additions and 1 deletions

View file

@ -39,7 +39,7 @@ static const wchar_t *ctrl_symbolic_names[] = {
nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, L"\\a",
L"\\b", L"\\t", L"\\n", L"\\v", L"\\f", L"\\r", nullptr, nullptr,
nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
nullptr, nullptr, nullptr, L"\\e", nullptr, nullptr, nullptr, nullptr};
nullptr, nullptr, nullptr, L"\\e", L"\\x1c", nullptr, nullptr, nullptr};
/// Return true if the recent sequence of characters indicates the user wants to exit the program.
static bool should_exit(wchar_t wc) {

View file

@ -955,6 +955,7 @@ static void term_fix_modes(struct termios *modes) {
// We ignore these anyway, so there is no need to sacrifice a character.
modes->c_cc[VSUSP] = disabling_char;
modes->c_cc[VQUIT] = disabling_char;
}
static void term_fix_external_modes(struct termios *modes) {