it2 text
Text and buffer operations in iTerm2
Description
Commands for buffer operations, text manipulation, and terminal content management
Command Reference
Buffer Operations:
- it2 text clear-buffer - Clear screen buffer contents
- it2 text get-buffer - Get buffer contents of a session (alias to 'session get-buffer')
- it2 text get-contents - Get specific line ranges from a session buffer
- it2 text get-screen - Get current screen contents of a session
Cursor & Size Commands:
- it2 text get-cursor - Get cursor position and state
- it2 text set-cursor - Set cursor position
- it2 text set-size - Set the terminal grid size for a session
Search & Manipulation:
- it2 text find - Find text in session buffer
- it2 text highlight - Temporarily highlight text patterns
- it2 text replace - Replace text in session buffer
- it2 text search - Search buffer contents for patterns
Content Interaction:
- it2 text inject - Inject data into a session as if it came from the program
- it2 text select - Control text selection in a session
- it2 text send - Send text to a session
Options inherited from parent commands
-
--format(default "text") - Output format (text, json, yaml) - affects how command results are displayed
-
--timeout - Timeout for API operations - how long to wait for iTerm2 to respond
-
--url - WebSocket URL for iTerm2 API - typically ws://localhost:1912 for local iTerm2
See Also
- it2 - iTerm2 CLI
- it2 app - Control the iTerm2 application
- it2 arrangement - Manage iTerm2 window arrangements
- it2 auth - Manage iTerm2 API authentication
- it2 badge - Manage session badges
- it2 broadcast - Manage broadcast domains
- it2 color - Manage iTerm2 colors and appearance
- it2 job - Monitor jobs in iTerm2 sessions
- it2 notification - Subscribe to iTerm2 notifications
- it2 profile - Manage iTerm2 profiles
- it2 prompt - Manage prompts and command history in iTerm2 sessions
- it2 selection - Text selection operations in iTerm2
- it2 session - Manage iTerm2 sessions
- it2 statusbar - Manage iTerm2 status bar components
- it2 tab - Manage iTerm2 tabs
- it2 tmux - Manage tmux integration
- it2 variable - Manage iTerm2 variables
- it2 window - Manage iTerm2 windows or navigate to window context