diff --git a/Cargo.toml b/Cargo.toml index 723849d..7106393 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,4 +17,6 @@ libloading = "0.8.0" #agon-cpu-emulator = { path = "../agon-cpu-emulator" } #agon-light-emulator-debugger = { path = "../agon-light-emulator-debugger" } + +[target.'cfg(target_os = "linux")'.dependencies] raw_tty = "0.1.0" diff --git a/src/main.rs b/src/main.rs index 6a32113..220d8eb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -44,6 +44,7 @@ pub fn main() -> Result<(), pico_args::Error> { let vsync_counter = std::sync::Arc::new(std::sync::atomic::AtomicU32::new(0)); // Preserve stdin state, as debugger can leave stdin in raw mode + #[cfg(target_os = "linux")] let _tty = raw_tty::TtyWithGuard::new(std::io::stdin()).unwrap(); let debugger_con = if args.debugger {