summaryrefslogtreecommitdiff
path: root/src/devices/local_device.rs
diff options
context:
space:
mode:
authorBen Bridle <ben@derelict.engineering>2024-10-31 16:58:11 +1300
committerBen Bridle <ben@derelict.engineering>2024-10-31 16:59:39 +1300
commit043d6dbfb2859d5102e459337329e8eea0a328ae (patch)
treeaa3bb6b5b08a61b8ca2bfa5c9c538974fe5753d0 /src/devices/local_device.rs
parent82d70d1458efa3f566a1e774da98734ff5ec939a (diff)
downloadbedrock-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.
Diffstat (limited to 'src/devices/local_device.rs')
-rw-r--r--src/devices/local_device.rs5
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 {