mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 00:01:15 -03:00
fish_key_reader: enable terminal protocols again
Fixes 29f2da8d1 (Toggle terminal protocols lazily, 2024-05-16).
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
env::env_init,
|
||||
eprintf, fprintf,
|
||||
input::input_terminfo_get_name,
|
||||
input_common::{CharEvent, InputEventQueue, InputEventQueuer},
|
||||
input_common::{terminal_protocols_enable_ifn, CharEvent, InputEventQueue, InputEventQueuer},
|
||||
key::{self, Key},
|
||||
panic::panic_handler,
|
||||
print_help::print_help,
|
||||
@@ -90,6 +90,7 @@ fn process_input(continuous_mode: bool) -> i32 {
|
||||
let mut recent_chars2 = vec![];
|
||||
eprintf!("Press a key:\n");
|
||||
|
||||
terminal_protocols_enable_ifn();
|
||||
while (!first_char_seen || continuous_mode) && !check_exit_loop_maybe_warning(None) {
|
||||
let evt = queue.readch();
|
||||
|
||||
|
||||
@@ -433,7 +433,7 @@ pub fn update_wait_on_sequence_key_ms(vars: &EnvStack) {
|
||||
|
||||
pub(crate) static IS_TMUX: RelaxedAtomicBool = RelaxedAtomicBool::new(false);
|
||||
|
||||
pub(crate) fn terminal_protocols_enable_ifn() {
|
||||
pub fn terminal_protocols_enable_ifn() {
|
||||
let mut term_protocols = TERMINAL_PROTOCOLS.get().borrow_mut();
|
||||
if term_protocols.is_some() {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user