libvt.config¶
Terminal identity profiles, security policies, and resource ceilings.
Bases:
IntEnumCSI ? 997 ; Ps ncolor-scheme values (DEC ?2031/DSR ?996n).
Bases:
objectResource ceilings protecting memory and CPU against hostile byte streams.
Maximum Unicode codepoints stored in a single grid cell (default
32).
Maximum parameter slots retained in a
CSIorDCSheader.
Maximum payload bytes buffered for an
OSCsequence.
Maximum payload bytes buffered for a
DCSsequence (default8_388_608, sized abovemax_apc_bytesso 4 MiB graphics wrapped inDCS tmux;fit without truncation).
Maximum payload bytes buffered for an
APCsequence.
Maximum unread bytes queued in
drain_replies().
Maximum repeat count executed by
REP(CSI Ps b).
Maximum
OSC 133prompt zones retained on a terminal.
Maximum concurrent
OSC 7501task records retained in the store (default256).
Maximum unread
Eventitems retained whenrecord_events=True.
Maximum cumulative payload bytes retained across unread events when
record_events=True(default16_777_216).
Maximum entries per screen in the Kitty
CSI ukeyboard stack.
Maximum raw input bytes retained by
FlightRecorder.
Maximum stored Kitty /
SIXELimage metadata entries per screen (default256).
Maximum active + scrollback image placements retained per screen (default
1_024).
Maximum pixel width or height accepted for
SIXELor Kitty images (default10_000).
-
__init__(*, max_grapheme_codepoints=32, max_csi_params=32, max_osc_bytes=131072, max_dcs_bytes=8388608, max_apc_bytes=4194304, max_reply_bytes=65536, max_rep_count=4096, max_prompt_zones=1024, max_status_records=256, max_events=4096, max_event_bytes=16777216, max_keyboard_stack=8, max_recorder_bytes=4096, max_images=256, max_placements=1024, max_image_dimension=10000)¶method[source]method[source]__init__(*, max_grapheme_codepoints=32, max_csi_params=32, max_osc_bytes=131072, max_dcs_bytes=8388608, max_apc_bytes=4194304, max_reply_bytes=65536, max_rep_count=4096, max_prompt_zones=1024, max_status_records=256, max_events=4096, max_event_bytes=16777216, max_keyboard_stack=8, max_recorder_bytes=4096, max_images=256, max_placements=1024, max_image_dimension=10000)¶
- 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)
- Return type:
Bases:
objectDefault-deny host security and strictness policy.
Permit
CSI 21 twindow-title report replies (defaultFalse).
Permit
DECRQCRArectangular checksum replies (defaultFalse).
Permit
OSC 52 ; ... ; ?clipboard read replies (defaultFalse).
Emit
ClipboardWriteevents onOSC 52writes (defaultTrue; no host clipboard is ever mutated bylibvt).
Permit
OSC 10 ; ?,OSC 11 ; ?, andCSI ? 996 npalette and color-scheme replies (defaultTrue).
Permit
OSC 7501 ; ?capability replies wheneverprofile.osc_7501_capabilitiesis non-empty (defaultTrue).
Allow schemes outside
http://,https://, andmailto:in HTML<a href>output (defaultFalse).
Replay unwrapped
DCS tmux; ESC ESC ... STinner byte streams through a persistent passthrough parser in addition to emittingPassthrough(defaultFalse, matchingtmux’sallow-passthrough off).
When
True, dispatch an accumulatedOSCstring if interrupted by a non-\ESCbyte (matchingtmux/Ghosttystate-exit behavior). Defaults toFalse(DEC STD 070 abort-and-drop).
Lowercase hostnames in
OSC 7file://<host>/...URIs permitted to updatecwd.None(default) uses{"", "localhost"}in sans-I/OTerminaland automatically adds the local hostname inopen_pty().
Raise
ProtocolErroron unrecognized or overflowing escape sequences instead of ignoring or recordingUnhandledSequence(defaultFalse).
Track sans-I/O
SIXELand KittyAPC Gimage metadata and grid placements (defaultTrue).
-
__init__(*, allow_title_report=False, allow_checksum_report=False, allow_clipboard_read=False, allow_clipboard_write=True, allow_color_queries=True, allow_program_status_query=True, allow_unsafe_uris=False, allow_passthrough=False, abort_dispatch_osc=False, osc7_hosts=None, strict=False, track_graphics=True)¶method[source]method[source]__init__(*, allow_title_report=False, allow_checksum_report=False, allow_clipboard_read=False, allow_clipboard_write=True, allow_color_queries=True, allow_program_status_query=True, allow_unsafe_uris=False, allow_passthrough=False, abort_dispatch_osc=False, osc7_hosts=None, strict=False, track_graphics=True)¶
- Parameters:
- Return type:
Bases:
objectTerminal identity responses and compatibility switches.
Version banner emitted in
DCS > | <xtversion> ST(CSI > q).
Payload body returned for
OSC 7501 ; ?queries when enabled (""when unsupported,"?"fortmux, or full capability list onDEFAULT_PROFILE).
Default foreground 8-bit RGB reported for
OSC 10 ; ?.
Default background 8-bit RGB reported for
OSC 11 ; ?.
When
True(TMUX_PROFILE),pending_wraptreats the cursor as occupying phantom columncolsacrossEL/ED,ECH/ICH/DCH, vertical motions,DECRC,CPR, andCUB/BS, matchingtmux’sscreen-write.c.
When
True(default),U+FE0Enarrows standalone wide emoji listed inemoji-variation-sequences.txtfrom2columns to1.FalseonTMUX_PROFILEto matchtmux 3.8a.
When
True,U+FE0Fwidens any narrow spacing base rather than onlyemoji-variation-sequences.txtbases.
When
True(TMUX_PROFILE),ESC k <name> ESC \is consumed as a window-rename control string rather than printed onto the grid.
Default reflow behavior for
resize()whenreflow=None(TrueonDEFAULT_PROFILEandTMUX_PROFILE,FalseonXTERM_PROFILE).
When
True(XTERM_PROFILEandTMUX_PROFILE),CSI 3 Jexecuted while the alternate screen is active still clears primary scrollback history.
When
True,HPR(CSI Ps a) andVPR(CSI Ps e) move the cursor relatively; whenFalse(TMUX_PROFILE), both are quietly ignored.
When
True(ECMA-48 /xterm/Ghostty),ILandDLmove the cursor to the active left margin; whenFalse(TMUX_PROFILE), the cursor column is preserved.
When
True(default andtmux >= 3.9),REP(CSI Ps b) autowraps across the right margin; whenFalse(tmux <= 3.8),REPhalts at phantom columncols.
When
True(default),DECSTR(CSI ! p) performs a soft terminal reset; whenFalse(TMUX_PROFILE),CSI ! pis ignored, matchingtmux’sinput.c.
When
True(TMUX_PROFILE), primary-screenCSI 2 J(andCSI Jwith cursor at(0, 0)) scrolls rows up to the last non-empty or image-bearing row into scrollback before clearing withBCE, matchingtmux’sscroll-on-cleardefault.
Nominal cell width in pixels used for
CSI 14 t,CSI 16 t, andSIXEL/ Kitty cell-grid geometry (default8).
Nominal cell height in pixels used for
CSI 14 t,CSI 16 t, andSIXEL/ Kitty cell-grid geometry (default16).
Build a version-specific
tmuxcompatibilityProfile.
-
__init__(*, name='libvt', da1=b'\x1b[?62;22c', da2=b'\x1b[>1;10;0c', xtversion='libvt 0.1', osc_7501_capabilities='?:states=idle,working,done,blocked,error:kinds=permission,question,auth', color_scheme=¶
ColorScheme.DARK, fg_rgb=(229, 229, 229), bg_rgb=(30, 30, 30), pending_wrap_phantom_col=False, vs15_narrows_wide_emoji=True, vs16_always_wide=False, tmux_window_rename=False, reflow_on_resize=True, ed3_clears_scrollback_on_alt=False, hpr_vpr_enabled=True, il_dl_resets_col=True, rep_wraps=True, default_g1_charset='B', decstr_enabled=True, ed2_scrolls_primary_to_history=False, cell_width_px=8, cell_height_px=16, sixel_erase_policy='cell_mask')method[source]method[source]__init__(*, name='libvt', da1=b'\x1b[?62;22c', da2=b'\x1b[>1;10;0c', xtversion='libvt 0.1', osc_7501_capabilities='?:states=idle,working,done,blocked,error:kinds=permission,question,auth', color_scheme=¶ColorScheme.DARK, fg_rgb=(229, 229, 229), bg_rgb=(30, 30, 30), pending_wrap_phantom_col=False, vs15_narrows_wide_emoji=True, vs16_always_wide=False, tmux_window_rename=False, reflow_on_resize=True, ed3_clears_scrollback_on_alt=False, hpr_vpr_enabled=True, il_dl_resets_col=True, rep_wraps=True, default_g1_charset='B', decstr_enabled=True, ed2_scrolls_primary_to_history=False, cell_width_px=8, cell_height_px=16, sixel_erase_policy='cell_mask') - Parameters:
name (
str)da1 (
bytes)da2 (
bytes)xtversion (
str)osc_7501_capabilities (
str)color_scheme (
ColorScheme)pending_wrap_phantom_col (
bool)vs15_narrows_wide_emoji (
bool)vs16_always_wide (
bool)tmux_window_rename (
bool)reflow_on_resize (
bool)ed3_clears_scrollback_on_alt (
bool)hpr_vpr_enabled (
bool)il_dl_resets_col (
bool)rep_wraps (
bool)default_g1_charset (
Charset)decstr_enabled (
bool)ed2_scrolls_primary_to_history (
bool)cell_width_px (
int)cell_height_px (
int)sixel_erase_policy (
SixelErasePolicy)
- Return type: