mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +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 {
|
impl Adaptor {
|
||||||
pub(super) fn detect() -> Self {
|
pub(super) fn detect() -> Self {
|
||||||
let vars = [
|
let vars = [
|
||||||
|
("ZELLIJ_SESSION_NAME", Self::Sixel),
|
||||||
("KITTY_WINDOW_ID", Self::Kitty),
|
("KITTY_WINDOW_ID", Self::Kitty),
|
||||||
("KONSOLE_VERSION", Self::Kitty),
|
("KONSOLE_VERSION", Self::Kitty),
|
||||||
("ITERM_SESSION_ID", Self::Iterm2),
|
("ITERM_SESSION_ID", Self::Iterm2),
|
||||||
|
|
|
||||||
|
|
@ -56,5 +56,7 @@ impl Term {
|
||||||
pub fn set_cursor_bar() -> Result<()> { Ok(execute!(stdout(), SetCursorStyle::BlinkingBar)?) }
|
pub fn set_cursor_bar() -> Result<()> { Ok(execute!(stdout(), SetCursorStyle::BlinkingBar)?) }
|
||||||
|
|
||||||
#[inline]
|
#[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