mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 20:31:19 -03:00
Disable VQUIT for shell modes
This allows binding ctrl+\ by default. Fixes #9234
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user