From b418c26050870b900ff56d5a47f32209795aaf4a Mon Sep 17 00:00:00 2001 From: salmonik Date: Fri, 21 Aug 2026 03:30:35 +0200 Subject: v0.5.11: fix terminal focus — toggle ACTIVE on Focus messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - tty: read_line_from_queue() now takes &mut Terminal and handles TaskMsg::Focus: Focus(true) sets ACTIVE to the terminal, Focus(false) clears it. This fixes the bug where the console shell's gop_print! output was redirected to the soft terminal even after focus switched away from it. - shell: run_windowed() passes the terminal through to read_line_from_queue. - wm: remove noisy per-key debug logging from pump_main. --- rsdos/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rsdos') diff --git a/rsdos/src/main.rs b/rsdos/src/main.rs index e5fb6dd..d1ed506 100644 --- a/rsdos/src/main.rs +++ b/rsdos/src/main.rs @@ -483,7 +483,7 @@ fn terminal_entry() { rsnix::vt::set_active(&mut term as *mut Terminal); // Run the shell — it owns input, line editing, and command execution. - shell::run_windowed(); + shell::run_windowed(&mut term); // Shell exited (^D or window close). Clean up. rsnix::serial_println!("term: shell exited, cleaning up"); -- cgit v1.2.3