it2 text get-buffer

Get buffer contents of a session (alias to 'session get-buffer')

Synopsis

it2 text get-buffer [<session-id>] [flags]

Description

Get buffer contents of a session including scrollback history.

Note: This command is an alias to 'it2 session get-buffer'.
The canonical location is now under session commands, but this alias
is maintained for backward compatibility.

Examples

# Get current session buffer
$ it2 text get-buffer
# Or use the canonical form:
$ it2 session get-buffer
# Get specific session buffer
$ it2 text get-buffer SESSION123
# Get last 100 lines only
$ it2 text get-buffer --lines 100
$ it2 text get-buffer --last 100
# Include color/formatting information
$ it2 text get-buffer --color
# Save session output to file
$ it2 text get-buffer > session-output.txt

Options

--color

Include ANSI color codes in output

--escaped

Show escape sequences as visible characters (like cat -v)

--format (default "table")

Output format (table|json|yaml|text)

--include-empty-lines

Include trailing empty/blank lines in output (default: strip them)

--last (default 0)

Number of last lines to retrieve (alias for --lines)

--lines (default 10000)

Number of lines to retrieve

--scrollback

Include scrollback history

--timeout (default "5s")

Command timeout

--url (default "ws://localhost:1912")

iTerm2 WebSocket URL

See Also