fix: image preview not working on Zellij (#181)

This commit is contained in:
Yifan Song 2023-09-18 19:21:00 +02:00 committed by GitHub
parent c540542da4
commit db4d5edeb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -29,6 +29,7 @@ pub enum Adaptor {
impl Adaptor {
pub(super) fn detect() -> Self {
let vars = [
("ZELLIJ_SESSION_NAME", Self::Sixel),
("KITTY_WINDOW_ID", Self::Kitty),
("KONSOLE_VERSION", Self::Kitty),
("ITERM_SESSION_ID", Self::Iterm2),

View file

@ -56,5 +56,7 @@ impl Term {
pub fn set_cursor_bar() -> Result<()> { Ok(execute!(stdout(), SetCursorStyle::BlinkingBar)?) }
#[inline]
pub fn set_cursor_default() -> Result<()> { Ok(execute!(stdout(), SetCursorStyle::DefaultUserShape)?) }
pub fn set_cursor_default() -> Result<()> {
Ok(execute!(stdout(), SetCursorStyle::DefaultUserShape)?)
}
}