Skip to content

Commit

Permalink
feat: support wezterm (#23)
Browse files Browse the repository at this point in the history
Co-authored-by: Omar El Halabi <[email protected]>
  • Loading branch information
omar25h and Omar El Halabi authored Jan 1, 2025
1 parent 0d4fe66 commit 4225aae
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,13 @@ impl Default for ClearScreen {

// - screen supports CSI 3J only within the XtermClear sequence, without E3 capability.
// - Konsole handles CSI 3J correctly only within the XtermClear sequence.
// - Wezterm handles CSI 3J correctly only within the XtermClear sequence.
// - assume tmux TERMs are only used within tmux, and avoid the requirement for a functioning terminfo then
if term.starts_with("screen") || term.starts_with("konsole") || term.starts_with("tmux") {
if term.starts_with("screen")
|| term.starts_with("konsole")
|| term == "wezterm"
|| term.starts_with("tmux")
{
return Self::XtermClear;
}

Expand Down

0 comments on commit 4225aae

Please sign in to comment.