We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3a3810 commit c23f2f8Copy full SHA for c23f2f8
openhands-tools/openhands/tools/terminal/terminal/tmux_terminal.py
@@ -148,12 +148,8 @@ def clear_screen(self) -> None:
148
if not self._initialized or not isinstance(self.pane, libtmux.Pane):
149
raise RuntimeError("Tmux terminal is not initialized")
150
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.
154
self.pane.send_keys("clear", enter=True)
155
time.sleep(0.1)
156
- # Clear the scrollback history (including the `clear` command itself)
157
self.pane.cmd("clear-history")
158
159
def interrupt(self) -> bool:
0 commit comments