Skip to main content

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​

InputTypeRequiredDefaultWhat it is
RowNumberNo1Row (1-based).
ColumnNumberNo1Column (1-based).
LengthNumberNo80Number of characters.
SessionStringNoterminalSession name.
TrimBooleanNotrueRemove leading and trailing spaces.
WhatStringNopositionWhat 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.
HeightNumberNo1Rectangle: how many rows (G4).
WidthNumberNo80Rectangle: how many columns (G4).

Outputs​

OutputTypeWhat it is
textStringText (trimmed unless trim is off); a rectangle or the scroll-back one line per row.