Skip to content

Commit

Permalink
fix: recognize TERM=rxvt-unicode-256color (#1027)
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay authored May 12, 2024
1 parent c1e1f26 commit 07342a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions yazi-adaptor/src/emulator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ pub enum Emulator {
Mintty,
Neovim,
Apple,
Urxvt,
}

impl Emulator {
Expand All @@ -43,6 +44,7 @@ impl Emulator {
Self::Mintty => vec![Adaptor::Iterm2],
Self::Neovim => vec![],
Self::Apple => vec![],
Self::Urxvt => vec![],
}
}
}
Expand Down Expand Up @@ -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}"),
}

Expand Down

0 comments on commit 07342a2

Please sign in to comment.