it2 text set-cursor

Set cursor position

Synopsis

it2 text set-cursor <session-id> <x> <y> [flags]

Description

Set the cursor to a specific position in the terminal grid.

Coordinates are 0-based with (0,0) at the top-left corner.

Options

--format (default "table")

Output format (table|json|yaml|text)

--timeout (default "5s")

Command timeout

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

iTerm2 WebSocket URL

See Also

  • it2 text - Text and buffer operations in iTerm2

Examples

# Set cursor to position (10, 5)
$ it2 text set-cursor abc123 10 5

# Move cursor to top-left
$ it2 text set-cursor abc123 0 0

# Move cursor to column 20, row 10
$ it2 text set-cursor abc123 20 10

# Set with JSON output
$ it2 text set-cursor --format json abc123 5 3

# Move to bottom-left (column 0, row 50)
$ it2 text set-cursor abc123 0 50