Method

VteTerminalget_text_selected_full

Declaration [src]

char*
vte_terminal_get_text_selected_full (
  VteTerminal* terminal,
  VteFormat format,
  gsize* length
)

Description [src]

Gets the currently selected text in the format specified by format.

Available since:0.72

Parameters

format VteFormat
 

The VteFormat to use.

length gsize*
 

A pointer to a #gsize to store the string length.

 The argument will be set by the function.
 The argument can be NULL.

Return value

Returns: char*
 

A newly allocated string containing the selected text, or NULL if there is no selection or the format is not supported.

 The caller of the method takes ownership of the data, and is responsible for freeing it.
 The return value can be NULL.
 The value is a NUL terminated UTF-8 string.