Terminal.getHasSelection

Checks if the terminal currently contains selected text. Note that this is different from determining if the terminal is the owner of any gtk.Clipboard items.

class Terminal
bool
getHasSelection
()

Return Value

Type: bool

TRUE if part of the text in the terminal is selected.