Don't print "\x1B[?1002h" on windows (#384)

This commit is contained in:
Riey 2019-10-01 03:24:34 +09:00 committed by Alexandre Bury
parent af5bd32eeb
commit 1404226c33

View File

@ -72,6 +72,7 @@ impl Backend {
// This asks the terminal to provide us with mouse drag events // This asks the terminal to provide us with mouse drag events
// (Mouse move when a button is pressed). // (Mouse move when a button is pressed).
// Replacing 1002 with 1003 would give us ANY mouse move. // Replacing 1002 with 1003 would give us ANY mouse move.
#[cfg(not(windows))]
print!("\x1B[?1002h"); print!("\x1B[?1002h");
stdout().flush()?; stdout().flush()?;