Terminal.getText

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.

class Terminal
string
getText

Parameters

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.