libvt.profiles

Host terminal emulator Profile presets.

Provides frozen capability presets modeled on Ghostty, Kitty, xterm, and the Linux virtual console.

References

Examples

>>> from libvt.profiles import (
...     GHOSTTY_PROFILE,
...     KITTY_PROFILE,
...     LINUX_CONSOLE_PROFILE,
...     XTERM_PROFILE,
... )
>>> from libvt.terminal import Terminal
>>> term = Terminal(rows=2, cols=10, profile=XTERM_PROFILE)
>>> term.feed(b"\x1b[>q")
>>> term.drain_replies()
b'\x1bP>|XTerm(388)\x1b\\'
>>> (GHOSTTY_PROFILE.identity.name, KITTY_PROFILE.identity.name)
('ghostty', 'kitty')
>>> LINUX_CONSOLE_PROFILE.screen.default_g1_charset
'0'
libvt.profiles.GHOSTTY_PROFILE: Profile = <...truncated, 1293 chars>
data
data
libvt.profiles.GHOSTTY_PROFILE: Profile = <...truncated, 1293 chars>

Ghostty-aligned modern VT500 host terminal profile.

Parameters:
libvt.profiles.KITTY_PROFILE: Profile = <...truncated, 1221 chars>
data
data
libvt.profiles.KITTY_PROFILE: Profile = <...truncated, 1221 chars>

Kitty host terminal profile (CSI u keyboard stack, XTGETTCAP, reflow).

Parameters:
libvt.profiles.LINUX_CONSOLE_PROFILE: Profile = <...truncated, 1198 chars>
data
data
libvt.profiles.LINUX_CONSOLE_PROFILE: Profile = <...truncated, 1198 chars>

Linux virtual-console compatibility profile (G1 DEC Special Graphics).

Parameters:
libvt.profiles.XTERM_PROFILE: Profile = <...truncated, 1248 chars>
data
data
libvt.profiles.XTERM_PROFILE: Profile = <...truncated, 1248 chars>

xterm compatibility profile (no resize reflow, alt-screen ED 3 clear).

Parameters: