libvt.config¶
Terminal identity profiles, security policies, and resource ceilings.
Default memory and sequence-size ceilings.
- Parameters:
max_grapheme_codepoints (
int)max_csi_params (
int)max_osc_bytes (
int)max_dcs_bytes (
int)max_apc_bytes (
int)max_reply_bytes (
int)max_rep_count (
int)max_prompt_zones (
int)max_status_records (
int)max_events (
int)max_event_bytes (
int)max_keyboard_stack (
int)max_recorder_bytes (
int)max_images (
int)max_placements (
int)max_image_dimension (
int)max_pending_notifications (
int)max_notification_bytes (
int)
Default
OSC 7file://hostnames accepted byTerminal.
Default host security and query policy.
- Parameters:
emit_replies (
bool)allow_title_report (
bool)clipboard_read (
ClipboardReadPolicy)allow_clipboard_write (
bool)allow_color_queries (
bool)allow_program_status_query (
bool)allow_unsafe_uris (
bool)allow_passthrough (
bool)abort_dispatch_osc (
bool)strict (
bool)track_graphics (
bool)allow_notifications (
bool)allow_notification_queries (
bool)
Default modern VT500 /
Ghostty-aligned terminal profile.- Parameters:
identity (
Identity)queries (
QueryBehavior)screen (
ScreenBehavior)input (
InputBehavior)unicode (
UnicodeBehavior)
-
class libvt.config.ClipboardReadPolicy¶class libvt.config.ClipboardReadPolicy¶
Bases:
StrEnumHow
OSC 52 ; <selection> ; ?clipboard read requests are handled.
-
class libvt.config.ColorScheme¶class libvt.config.ColorScheme¶
Bases:
IntEnumCSI ? 997 ; Ps ncolor-scheme values (DEC ?2031/DSR ?996n).
-
class libvt.config.DeccolmBehavior¶class libvt.config.DeccolmBehavior¶
Bases:
StrEnumHow
DECCOLM(CSI ? 3 h/CSI ? 3 l) handles column switching.
-
class libvt.config.Identity¶class libvt.config.Identity¶
Bases:
objectDevice identification strings and
OSC 7501capability advertisement.References
Examples
>>> from libvt.config import Identity >>> Identity(name="custom", xtversion="custom 1.0").xtversion 'custom 1.0'
-
class libvt.config.InputBehavior¶class libvt.config.InputBehavior¶
Bases:
objectProtocol negotiation switches governing keyboard state mutations.
-
class libvt.config.Limits¶class libvt.config.Limits¶
Bases:
objectResource ceilings protecting memory and CPU against hostile byte streams.
-
class libvt.config.Policy¶class libvt.config.Policy¶
Bases:
objectDefault-deny host security and strictness policy.
-
class libvt.config.Profile¶class libvt.config.Profile¶
Bases:
objectPeer-neutral terminal capability profile composed of domain groups.
References
Examples
>>> from libvt.config import Profile, ScreenBehavior >>> prof = Profile(screen=ScreenBehavior(cell_width_px=10, cell_height_px=20)) >>> (prof.screen.cell_width_px, prof.screen.cell_height_px) (10, 20)
-
class libvt.config.QueryBehavior¶class libvt.config.QueryBehavior¶
Bases:
objectTerminal status-request and default-color query capabilities.
- Raises:
ValueError– Ifsixel_color_registers < 2or exceedsmax_sixel_color_registers.
References
Examples
>>> from libvt.config import QueryBehavior >>> QueryBehavior().sixel_color_registers 256
-
class libvt.config.RisAltScreenBehavior¶class libvt.config.RisAltScreenBehavior¶
Bases:
StrEnumHow
RIS(ESC c) handles an active?47/?1047/?1049screen.
-
class libvt.config.ScreenBehavior¶class libvt.config.ScreenBehavior¶
Bases:
objectGrid, margin, reset, and pixel-geometry semantics.
-
class libvt.config.UnicodeBehavior¶class libvt.config.UnicodeBehavior¶
Bases:
objectUnicode East Asian width and emoji variation-selector semantics.
Rendered column width for Unicode East Asian Ambiguous (
EA=A) characters.
Supported
G0–G3character-set designators (US-ASCII, DEC Special, UK, IBM PC / CP437).
SIXELcell-overwrite and rectangular-erase clipping policy.