Terminal.getTextSelected

Gets the currently selected text in the format specified by format. Since 0.72, this function also supports vte.types.Format.Html format.

class Terminal
string
getTextSelected

Parameters

format vte.types.Format

the #VteFormat to use

Return Value

Type: string

a newly allocated string containing the selected text, or null if there is no selection or the format is not supported