diff --git a/src/builtins/fish_key_reader.rs b/src/builtins/fish_key_reader.rs index 74342a7bd..da199d8fe 100644 --- a/src/builtins/fish_key_reader.rs +++ b/src/builtins/fish_key_reader.rs @@ -27,7 +27,7 @@ panic::panic_handler, print_help::print_help, proc::set_interactive_session, - reader::{check_exit_loop_maybe_warning, reader_init}, + reader::{check_exit_loop_maybe_warning, reader_init, QUERY_PRIMARY_DEVICE_ATTRIBUTE}, signal::signal_set_handlers, threads, topic_monitor::topic_monitor_init, @@ -138,6 +138,9 @@ fn setup_and_process_keys(streams: &mut IoStreams, continuous_mode: bool, verbos streams .out .append(str2wcstring(kitty_progressive_enhancements_query())); + streams + .out + .append(str2wcstring(QUERY_PRIMARY_DEVICE_ATTRIBUTE)); if continuous_mode { streams.err.append(L!("\n")); diff --git a/src/reader.rs b/src/reader.rs index a9773dbcb..d542a55ec 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -2126,7 +2126,7 @@ fn jump( } } -const QUERY_PRIMARY_DEVICE_ATTRIBUTE: &[u8] = b"\x1b[0c"; +pub const QUERY_PRIMARY_DEVICE_ATTRIBUTE: &[u8] = b"\x1b[0c"; impl<'a> Reader<'a> { /// Read a command to execute, respecting input bindings.