aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <[email protected]>2024-05-04 02:21:01 -0400
committerLibravatar Silas Bartha <[email protected]>2024-05-04 02:21:01 -0400
commitec8f43e79cb8a182c0dc73d103e632fac96293b6 (patch)
tree36a915128ee0ba6411b02a0eadcabaa56064ba70 /src/lib.rs
parent6834194b9e16a7b5ee68b539ceb1a99b8f1ff90b (diff)
Added command queue access to event handlersv0.1.2
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index ac093de..3d5b144 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -8,7 +8,7 @@ use bevy::{
prelude::*, utils::tracing::level_filters::LevelFilter,
};
use crossterm::{
- event::DisableMouseCapture,
+ event::{DisableMouseCapture, PopKeyboardEnhancementFlags},
terminal::{disable_raw_mode, LeaveAlternateScreen},
ExecutableCommand,
};
@@ -66,6 +66,7 @@ impl Plugin for TerminalDisplayPlugin {
impl Drop for TerminalDisplayPlugin {
fn drop(&mut self) {
let mut stdout = stdout();
+ let _ = stdout.execute(PopKeyboardEnhancementFlags);
let _ = stdout.execute(DisableMouseCapture);
let _ = stdout.execute(LeaveAlternateScreen);
let _ = disable_raw_mode();