fix: recognize TERM=rxvt-unicode-256color (#1027)

This commit is contained in:
David Tolnay 2024-05-11 18:35:44 -07:00 committed by GitHub
parent c1e1f26c4c
commit 07342a29ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,6 +24,7 @@ pub enum Emulator {
Mintty,
Neovim,
Apple,
Urxvt,
}
impl Emulator {
@ -43,6 +44,7 @@ impl Emulator {
Self::Mintty => vec![Adaptor::Iterm2],
Self::Neovim => vec![],
Self::Apple => vec![],
Self::Urxvt => vec![],
}
}
}
@ -85,6 +87,7 @@ impl Emulator {
"foot" => return Self::Foot,
"foot-extra" => return Self::Foot,
"xterm-ghostty" => return Self::Ghostty,
"rxvt-unicode-256color" => return Self::Urxvt,
_ => warn!("[Adaptor] Unknown TERM: {term}"),
}