it2 text get-contents
Get specific line ranges from a session buffer
Synopsis
it2 text get-contents [<session-id>] [flags]
Description
Get specific line ranges from a session buffer with configurable starting line and number of lines. If no session-id is provided, uses $ITERM_SESSION_ID environment variable.
Options
-
--first-line(default 0) - First line to retrieve (0-based)
-
--format(default "table") - Output format (table|json|yaml|text)
-
--num-lines(default 100) - Number of lines to retrieve
-
--timeout(default "5s") - Command timeout
-
--url(default "ws://localhost:1912") - iTerm2 WebSocket URL
See Also
- it2 text - Text and buffer operations in iTerm2