From 1c1efbf81674d8d711ffaa63c019cac1e1052e8d Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Mon, 30 Jan 2023 14:57:43 -0600 Subject: [PATCH] Remove early return in keyboard enhancement check This block sends the query over stdout if the query couldn't be sent over `/dev/tty` successfully. If we send it over stdout we should still query for the response though. The early return prevents that so the response to the query can end up not being consumed. --- src/terminal/sys/unix.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/terminal/sys/unix.rs b/src/terminal/sys/unix.rs index 808ff0fc3..b084b74c2 100644 --- a/src/terminal/sys/unix.rs +++ b/src/terminal/sys/unix.rs @@ -131,7 +131,6 @@ fn read_supports_keyboard_enhancement_raw() -> Result { let mut stdout = io::stdout(); stdout.write_all(QUERY)?; stdout.flush()?; - return Ok(false); } loop {