Skip to content

Commit 83ecdf4

Browse files
domenkozarclaude
andcommitted
shell: clear status line on exit
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3262208 commit 83ecdf4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

devenv-shell/src/session.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,6 +1016,9 @@ impl ShellSession {
10161016
}
10171017

10181018
Event::PtyExit(exit_code) => {
1019+
if self.config.show_status_line && !in_alternate_screen {
1020+
write!(stdout, "\x1b[{};1H\x1b[2K", self.size.rows)?;
1021+
}
10191022
Self::cleanup_forwarded_modes(
10201023
in_alternate_screen,
10211024
&forwarded_mouse_modes,
@@ -1074,6 +1077,9 @@ impl ShellSession {
10741077
}
10751078
}
10761079

1080+
if self.config.show_status_line && !in_alternate_screen {
1081+
write!(stdout, "\x1b[{};1H\x1b[2K", self.size.rows)?;
1082+
}
10771083
Self::cleanup_forwarded_modes(in_alternate_screen, &forwarded_mouse_modes, stdout)?;
10781084
Ok(None)
10791085
}

0 commit comments

Comments
 (0)