mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
Disable VQUIT for shell modes
This allows binding ctrl+\ by default. Fixes #9234
This commit is contained in:
parent
0ede48e024
commit
ccca5b553f
2 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue