Skip to content

Commit

Permalink
Use byte string
Browse files Browse the repository at this point in the history
  • Loading branch information
bash committed Sep 25, 2024
1 parent 1757b79 commit 25e00aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xterm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ fn read_color_response(r: &mut Reader<'_>) -> Result<Vec<u8>> {

// 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);
}
Expand Down

0 comments on commit 25e00aa

Please sign in to comment.