Functions ========= .. currentmodule:: gi.repository.Vte .. function:: event_context_get_type() -> type .. function:: get_encoding_supported(encoding: str) -> bool Queries whether the legacy encoding ``encoding`` is supported. If ICU support is not available, this function always returns :const:`False`. Note that UTF-8 is always supported; you can select it by passing :const:`None` to :func:`~gi.repository.Vte.Terminal.set_encoding`. .. versionadded:: 0.60 .. deprecated:: 0.60 Please do not use it in newly written code :param encoding: the name of the legacy encoding :return: :const:`True` iff the legacy encoding ``encoding`` is supported .. function:: 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 :const:`None` to :func:`~gi.repository.Vte.Terminal.set_encoding`. .. versionadded:: 0.60 .. deprecated:: 0.60 Please do not use it in newly written code :param include_aliases: whether to include alias names :return: the list of supported encodings; free with :func:`~gi.repository.GLib.strfreev` .. function:: get_feature_flags() -> ~gi.repository.Vte.FeatureFlags Gets features VTE was compiled with. .. versionadded:: 0.62 :return: flags from :obj:`~gi.repository.Vte.FeatureFlags` .. function:: get_features() -> str Gets a list of features vte was compiled with. .. versionadded:: 0.40 :return: a string with features .. function:: get_major_version() -> int Returns the major version of the VTE library at runtime. Contrast this with :const:`~gi.repository.Vte.MAJOR_VERSION` which represents the version of the VTE library that the code was compiled with. .. versionadded:: 0.40 :return: the major version .. function:: get_micro_version() -> int Returns the micro version of the VTE library at runtime. Contrast this with :const:`~gi.repository.Vte.MICRO_VERSION` which represents the version of the VTE library that the code was compiled with. .. versionadded:: 0.40 :return: the micro version .. function:: get_minor_version() -> int Returns the minor version of the VTE library at runtime. Contrast this with :const:`~gi.repository.Vte.MINOR_VERSION` which represents the version of the VTE library that the code was compiled with. .. versionadded:: 0.40 :return: the minor version .. function:: get_user_shell() -> str Gets the user's shell, or :const:`None`. In the latter case, the system default (usually "/bin/sh") should be used. :return: a newly allocated string with the user's shell, or :const:`None` .. function:: pty_error_quark() -> int .. function:: regex_error_quark() -> int