Skip to content

Commit 4225aae

Browse files
omar25hOmar El Halabi
and
Omar El Halabi
authoredJan 1, 2025··
feat: support wezterm (#23)
Co-authored-by: Omar El Halabi <omar.elhalabi.extern@hornbach.com>
1 parent 0d4fe66 commit 4225aae

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎src/lib.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,13 @@ impl Default for ClearScreen {
392392

393393
// - screen supports CSI 3J only within the XtermClear sequence, without E3 capability.
394394
// - Konsole handles CSI 3J correctly only within the XtermClear sequence.
395+
// - Wezterm handles CSI 3J correctly only within the XtermClear sequence.
395396
// - assume tmux TERMs are only used within tmux, and avoid the requirement for a functioning terminfo then
396-
if term.starts_with("screen") || term.starts_with("konsole") || term.starts_with("tmux") {
397+
if term.starts_with("screen")
398+
|| term.starts_with("konsole")
399+
|| term == "wezterm"
400+
|| term.starts_with("tmux")
401+
{
397402
return Self::XtermClear;
398403
}
399404

0 commit comments

Comments
 (0)
Please sign in to comment.