Functions

event_context_get_type ()

get_encoding_supported (encoding)

get_encodings (include_aliases)

get_feature_flags ()

get_features ()

get_major_version ()

get_micro_version ()

get_minor_version ()

get_user_shell ()

pty_error_quark ()

regex_error_quark ()

Details

Vte.event_context_get_type()
Return type:

GObject.GType

Vte.get_encoding_supported(encoding)
Parameters:

encoding (str) – the name of the legacy encoding

Returns:

True iff the legacy encoding encoding is supported

Return type:

bool

Queries whether the legacy encoding encoding is supported.

If ICU support is not available, this function always returns False.

Note that UTF-8 is always supported; you can select it by passing None to Vte.Terminal.set_encoding().

New in version 0.60.

Deprecated since version 0.60.

Vte.get_encodings(include_aliases)
Parameters:

include_aliases (bool) – whether to include alias names

Returns:

the list of supported encodings; free with GLib.strfreev()

Return type:

[str]

Gets the list of supported legacy encodings.

If ICU support is not available, this returns an empty vector. Note that UTF-8 is always supported; you can select it by passing None to Vte.Terminal.set_encoding().

New in version 0.60.

Deprecated since version 0.60.

Vte.get_feature_flags()
Returns:

flags from Vte.FeatureFlags

Return type:

Vte.FeatureFlags

Gets features VTE was compiled with.

New in version 0.62.

Vte.get_features()
Returns:

a string with features

Return type:

str

Gets a list of features vte was compiled with.

New in version 0.40.

Vte.get_major_version()
Returns:

the major version

Return type:

int

Returns the major version of the VTE library at runtime. Contrast this with Vte.MAJOR_VERSION which represents the version of the VTE library that the code was compiled with.

New in version 0.40.

Vte.get_micro_version()
Returns:

the micro version

Return type:

int

Returns the micro version of the VTE library at runtime. Contrast this with Vte.MICRO_VERSION which represents the version of the VTE library that the code was compiled with.

New in version 0.40.

Vte.get_minor_version()
Returns:

the minor version

Return type:

int

Returns the minor version of the VTE library at runtime. Contrast this with Vte.MINOR_VERSION which represents the version of the VTE library that the code was compiled with.

New in version 0.40.

Vte.get_user_shell()
Returns:

a newly allocated string with the user’s shell, or None

Return type:

str

Gets the user’s shell, or None. In the latter case, the system default (usually “/bin/sh”) should be used.

Vte.pty_error_quark()
Returns:

the error domain for VTE PTY errors

Return type:

int

Error domain for VTE PTY errors. Errors in this domain will be from the Vte.PtyError enumeration. See GLib.Error for more information on error domains.

Vte.regex_error_quark()
Return type:

int