Vte.Terminal.get_text_selected

### Method

# Vte Terminalget_text_selected

#### Declaration [src]

    char*
    vte_terminal_get_text_selected (
      VteTerminal* terminal,
      VteFormat format
    )

#### Description [src]

Gets the currently selected text in the format specified by `format`. Note that currently, only `VTE_FORMAT_TEXT` is supported.

Available since: | 0.70

#### Parameters

`format` | `VteFormat`
| The `VteFormat` to use.

#### 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.