Get text at position
Read text from a row and column for a given length, or the last line with text, a rectangle of the screen, or (VT hosts) everything that scrolled past.
Command in the Terminal emulator toolkit · id ooa.terminal/get_text · 8 inputs, 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Row | Number | No | 1 | Row (1-based). |
| Column | Number | No | 1 | Column (1-based). |
| Length | Number | No | 80 | Number of characters. |
| Session | String | No | terminal | Session name. |
| Trim | Boolean | No | true | Remove leading and trailing spaces. |
| What | String | No | position | What to read (G4): from a position, a rectangle (row, column, height, width), the last line with text, or on VT hosts all lines that scrolled off the top and the screen. |
| Height | Number | No | 1 | Rectangle: how many rows (G4). |
| Width | Number | No | 80 | Rectangle: how many columns (G4). |
Outputs
| Output | Type | What it is |
|---|---|---|
| text | String | Text (trimmed unless trim is off); a rectangle or the scroll-back one line per row. |