Recognize TERM=rxvt-unicode-256color

This commit is contained in:
David Tolnay 2024-05-11 18:02:32 -07:00
parent c1e1f26c4c
commit 2a35e29f63
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -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}"),
} }