mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 14:51:03 +00:00
fix: image preview not working on Zellij (#181)
This commit is contained in:
parent
c540542da4
commit
db4d5edeb4
2 changed files with 4 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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)?)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue