Terminal.getTextIncludeTrailingSpaces

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. This function differs from vte_terminal_get_text() in that trailing spaces at the end of lines are included.

class Terminal
string
getTextIncludeTrailingSpaces

Parameters

isSelected VteSelectionFunc

a VteSelectionFunc callback. [scope call][allow-none]

userData void*

user data to be passed to the callback. closure

attributes ArrayG

location for storing text attributes. [out caller-allocates][transfer full]array[element-type Vte.CharAttributes]

Return Value

Type: string

a newly allocated text string, or NULL. [transfer full] Since 0.11.11

Meta