mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
fix: disable error reporting for the kitty graphics protocol
This commit is contained in:
parent
5f8c20e2b5
commit
9df256f7f4
2 changed files with 4 additions and 4 deletions
|
|
@ -337,7 +337,7 @@ impl Kitty {
|
|||
write!(stderr, "{s}")?;
|
||||
}
|
||||
|
||||
write!(stderr, "{}_Gq=1,a=d,d=A{}\\{}", START, ESCAPE, CLOSE)?;
|
||||
write!(stderr, "{}_Gq=2,a=d,d=A{}\\{}", START, ESCAPE, CLOSE)?;
|
||||
Ok(())
|
||||
})
|
||||
}
|
||||
|
|
@ -351,7 +351,7 @@ impl Kitty {
|
|||
if let Some(first) = it.next() {
|
||||
write!(
|
||||
buf,
|
||||
"{}_Gq=1,a=T,i=1,C=1,U=1,f={},s={},v={},m={};{}{}\\{}",
|
||||
"{}_Gq=2,a=T,i=1,C=1,U=1,f={},s={},v={},m={};{}{}\\{}",
|
||||
START,
|
||||
format,
|
||||
size.0,
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ impl KittyOld {
|
|||
#[inline]
|
||||
pub(super) fn image_erase(_: Rect) -> Result<()> {
|
||||
let mut stderr = LineWriter::new(stderr());
|
||||
write!(stderr, "{}_Gq=1,a=d,d=A{}\\{}", START, ESCAPE, CLOSE)?;
|
||||
write!(stderr, "{}_Gq=2,a=d,d=A{}\\{}", START, ESCAPE, CLOSE)?;
|
||||
stderr.flush()?;
|
||||
Ok(())
|
||||
}
|
||||
|
|
@ -42,7 +42,7 @@ impl KittyOld {
|
|||
if let Some(first) = it.next() {
|
||||
write!(
|
||||
buf,
|
||||
"{}_Gq=1,a=T,z=-1,C=1,f={},s={},v={},m={};{}{}\\{}",
|
||||
"{}_Gq=2,a=T,z=-1,C=1,f={},s={},v={},m={};{}{}\\{}",
|
||||
START,
|
||||
format,
|
||||
size.0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue