it2 text clear-buffer
Clear screen buffer contents
Synopsis
it2 text clear-buffer <session-id> [flags]
Description
Clear the screen buffer and/or scrollback history for a session.
Examples:
it2 text clear-buffer session123
it2 text clear-buffer session123 --scrollback
it2 text clear-buffer session123 --screen-only
Options
-
--format(default "table") - Output format (table|json|yaml|text)
-
--screen-only - Clear only visible screen (default: clear both)
-
--scrollback - Clear scrollback history
-
--timeout(default "5s") - Command timeout
-
--url(default "ws://localhost:1912") - iTerm2 WebSocket URL
See Also
- it2 text - Text and buffer operations in iTerm2