Terminal.getTextRange

Extracts a view of the visible part of the terminal. If is_selected is not NULL, characters will only be read if is_selected returns TRUE after being passed the column and row, respectively. A VteCharAttributes structure is added to attributes for each byte added to the returned string detailing the character's position, colors, and other characteristics. The entire scrollback buffer is scanned, so it is possible to read the entire contents of the buffer using this function.

class Terminal
string
getTextRange

Parameters

startRow glong

first row to search for data

startCol glong

first column to search for data

endRow glong

last row to search for data

endCol glong

last column to search for data

isSelected VteSelectionFunc

a VteSelectionFunc callback

userData void*

user data to be passed to the callback

attributes ArrayG

location for storing text attributes

Return Value

Type: string

a newly allocated text string, or NULL.