fix: Sixel support from certain st forks cannot be detected

This commit is contained in:
sxyazi 2024-05-27 07:46:52 +08:00
parent 1ab3df6850
commit 75d1415eab
No known key found for this signature in database

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)
};