fix: Sixel support from certain st forks cannot be detected (#1094)

This commit is contained in:
三咲雅 · Misaki Masa 2024-05-27 19:11:14 +08:00 committed by GitHub
parent 1ab3df6850
commit 2eec94652a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,10 +16,10 @@ impl Term {
if stdin.read(&mut c).await? == 0 {
bail!("unexpected EOF");
}
buf.push(c[0] as char);
if c[0] == b'c' && buf.contains("\x1b[?") {
break;
}
buf.push(c[0] as char);
}
Ok(buf)
};