From 25e00aa7caf1f8cd00476a725423aa271bf08fab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tau=20G=C3=A4rtli?= Date: Wed, 25 Sep 2024 15:14:45 +0200 Subject: [PATCH] Use byte string --- src/xterm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xterm.rs b/src/xterm.rs index 4239636..993d871 100644 --- a/src/xterm.rs +++ b/src/xterm.rs @@ -121,7 +121,7 @@ fn read_color_response(r: &mut Reader<'_>) -> Result> { // If we get the response for DA1 back first, then we know that // the terminal does not recocgnize the color query. - if !r.buffer().starts_with(&[b']']) { + if !r.buffer().starts_with(b"]") { _ = consume_da1_response(r, false); return Err(Error::UnsupportedTerminal); }