From 043d6dbfb2859d5102e459337329e8eea0a328ae Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Thu, 31 Oct 2024 16:58:11 +1300 Subject: Don't clear input stream queue when starting transmission Writing to the input transmission port of the standard input stream no longer clears the input queue. The only way to clear an input queue is to write to the associated queue port. --- src/devices/local_device.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/devices/local_device.rs') diff --git a/src/devices/local_device.rs b/src/devices/local_device.rs index 94b798d..fa19de7 100644 --- a/src/devices/local_device.rs +++ b/src/devices/local_device.rs @@ -69,10 +69,7 @@ impl LocalDevice { } pub fn stdin_enable(&mut self) { - if !self.stdin_control { - self.stdin_queue.clear(); - self.stdin_control = true; - } + self.stdin_control = true; } pub fn stdin_read(&mut self) -> u8 { -- cgit v1.2.3-70-g09d2