mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: recognize TERM=rxvt-unicode-256color (#1027)
This commit is contained in:
parent
c1e1f26c4c
commit
07342a29ef
1 changed files with 3 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ pub enum Emulator {
|
||||||
Mintty,
|
Mintty,
|
||||||
Neovim,
|
Neovim,
|
||||||
Apple,
|
Apple,
|
||||||
|
Urxvt,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Emulator {
|
impl Emulator {
|
||||||
|
|
@ -43,6 +44,7 @@ impl Emulator {
|
||||||
Self::Mintty => vec![Adaptor::Iterm2],
|
Self::Mintty => vec![Adaptor::Iterm2],
|
||||||
Self::Neovim => vec![],
|
Self::Neovim => vec![],
|
||||||
Self::Apple => vec![],
|
Self::Apple => vec![],
|
||||||
|
Self::Urxvt => vec![],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -85,6 +87,7 @@ impl Emulator {
|
||||||
"foot" => return Self::Foot,
|
"foot" => return Self::Foot,
|
||||||
"foot-extra" => return Self::Foot,
|
"foot-extra" => return Self::Foot,
|
||||||
"xterm-ghostty" => return Self::Ghostty,
|
"xterm-ghostty" => return Self::Ghostty,
|
||||||
|
"rxvt-unicode-256color" => return Self::Urxvt,
|
||||||
_ => warn!("[Adaptor] Unknown TERM: {term}"),
|
_ => warn!("[Adaptor] Unknown TERM: {term}"),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue