libvt.config

Terminal identity profiles, security policies, and resource ceilings.

libvt.config.DEFAULT_LIMITS: Limits = <...truncated, 425 chars>
data
data
libvt.config.DEFAULT_LIMITS: Limits = <...truncated, 425 chars>

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)

libvt.config.DEFAULT_OSC7_HOSTS: frozenset[str] = frozenset({'', 'localhost'})
data
data
libvt.config.DEFAULT_OSC7_HOSTS: frozenset[str] = frozenset({'', 'localhost'})

Default OSC 7 file:// hostnames accepted by Terminal.

libvt.config.DEFAULT_POLICY: Policy = <...truncated, 381 chars>
data
data
libvt.config.DEFAULT_POLICY: Policy = <...truncated, 381 chars>

Default host security and query policy.

Parameters:
libvt.config.DEFAULT_PROFILE: Profile = <...truncated, 1546 chars>
data
data
libvt.config.DEFAULT_PROFILE: Profile = <...truncated, 1546 chars>

Default modern VT500 / Ghostty-aligned terminal profile.

Parameters:
class libvt.config.ClipboardReadPolicy
class libvt.config.ClipboardReadPolicy

Bases: StrEnum

How OSC 52 ; <selection> ; ? clipboard read requests are handled.

class libvt.config.ColorScheme
class libvt.config.ColorScheme

Bases: IntEnum

CSI ? 997 ; Ps n color-scheme values (DEC ?2031 / DSR ?996n).

class libvt.config.DeccolmBehavior
class libvt.config.DeccolmBehavior

Bases: StrEnum

How DECCOLM (CSI ? 3 h / CSI ? 3 l) handles column switching.

class libvt.config.Identity
class libvt.config.Identity

Bases: object

Device identification strings and OSC 7501 capability 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: object

Protocol negotiation switches governing keyboard state mutations.

class libvt.config.Limits
class libvt.config.Limits

Bases: object

Resource ceilings protecting memory and CPU against hostile byte streams.

class libvt.config.Policy
class libvt.config.Policy

Bases: object

Default-deny host security and strictness policy.

class libvt.config.Profile
class libvt.config.Profile

Bases: object

Peer-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: object

Terminal status-request and default-color query capabilities.

Raises:

ValueError – If sixel_color_registers < 2 or exceeds max_sixel_color_registers.

References

Examples

>>> from libvt.config import QueryBehavior
>>> QueryBehavior().sixel_color_registers
256
class libvt.config.RisAltScreenBehavior
class libvt.config.RisAltScreenBehavior

Bases: StrEnum

How RIS (ESC c) handles an active ?47/?1047/?1049 screen.

class libvt.config.ScreenBehavior
class libvt.config.ScreenBehavior

Bases: object

Grid, margin, reset, and pixel-geometry semantics.

class libvt.config.UnicodeBehavior
class libvt.config.UnicodeBehavior

Bases: object

Unicode East Asian width and emoji variation-selector semantics.

type libvt.config.AmbiguousWidth = Literal[1, 2]
type
type
type libvt.config.AmbiguousWidth = Literal[1, 2]

Rendered column width for Unicode East Asian Ambiguous (EA=A) characters.

type libvt.config.Charset = Literal['B', '0', 'A', 'U']
type
type
type libvt.config.Charset = Literal['B', '0', 'A', 'U']

Supported G0–G3 character-set designators (US-ASCII, DEC Special, UK, IBM PC / CP437).

type libvt.config.SixelErasePolicy = Literal['cell_mask', 'whole_image']
type
type
type libvt.config.SixelErasePolicy = Literal['cell_mask', 'whole_image']

SIXEL cell-overwrite and rectangular-erase clipping policy.