diff options
author | Ben Bridle <ben@derelict.engineering> | 2024-10-31 16:58:11 +1300 |
---|---|---|
committer | Ben Bridle <ben@derelict.engineering> | 2024-10-31 16:59:39 +1300 |
commit | 043d6dbfb2859d5102e459337329e8eea0a328ae (patch) | |
tree | aa3bb6b5b08a61b8ca2bfa5c9c538974fe5753d0 | |
parent | 82d70d1458efa3f566a1e774da98734ff5ec939a (diff) | |
download | bedrock-pc-043d6dbfb2859d5102e459337329e8eea0a328ae.zip |
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.
-rw-r--r-- | src/devices/local_device.rs | 5 |
1 files changed, 1 insertions, 4 deletions
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 { |