Functions

get_encoding_supported(encoding: str) 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 set_encoding().

Added in version 0.60.

Deprecated since version 0.60: Please do not use it in newly written code

Parameters:

encoding – the name of the legacy encoding

Returns:

True iff the legacy encoding encoding is supported

get_encodings(include_aliases: bool) list[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 set_encoding().

Added in version 0.60.

Deprecated since version 0.60: Please do not use it in newly written code

Parameters:

include_aliases – whether to include alias names

Returns:

the list of supported encodings; free with strfreev()

get_feature_flags() FeatureFlags

Gets features VTE was compiled with.

Added in version 0.62.

Returns:

flags from FeatureFlags

get_features() str

Gets a list of features vte was compiled with.

Added in version 0.40.

Returns:

a string with features

get_major_version() int

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

Added in version 0.40.

Returns:

the major version

get_micro_version() int

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

Added in version 0.40.

Returns:

the micro version

get_minor_version() int

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

Added in version 0.40.

Returns:

the minor version

get_user_shell() str

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

Returns:

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

pty_error_quark() int
regex_error_quark() int