Skip to content

Commit c23f2f8

Browse files
authored
Apply suggestion from @rbren
1 parent e3a3810 commit c23f2f8

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

openhands-tools/openhands/tools/terminal/terminal/tmux_terminal.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,8 @@ def clear_screen(self) -> None:
148148
if not self._initialized or not isinstance(self.pane, libtmux.Pane):
149149
raise RuntimeError("Tmux terminal is not initialized")
150150

151-
# Run the `clear` command to clear the visible screen content.
152-
# This is safe because `clear` outputs escape sequences to the terminal
153-
# rather than sending control characters to the shell's input buffer.
154151
self.pane.send_keys("clear", enter=True)
155152
time.sleep(0.1)
156-
# Clear the scrollback history (including the `clear` command itself)
157153
self.pane.cmd("clear-history")
158154

159155
def interrupt(self) -> bool:

0 commit comments

Comments
 (0)