Repository navigation
Description
Summary
Evergreen tracking issue for libvt releases from 0.0.x through 0.1.0 and beyond, modeled on libtmux#907. Breaking module-boundary, configuration, snapshot, and event-typing changes landed in 0.0.1a2 ahead of 0.1.0 so libtmux and downstream test suites can build on a stable core contract.
Motivation
libvt shipped its initial sans-I/O parser, two-tier grid, and POSIX PTY adapter in 0.0.1a0 (#2), protocol and sync hardening in 0.0.1a1 (#33), and its pre-0.1.0 architectural boundaries (libvt.contrib.tmux with decoupled profile, capture, and control submodules, curated lazy PEP 562 root exports, capability-grouped Profile, committed Snapshot.appearance, open Event hierarchy, passive-observer Policy, TmuxControlParser / TmuxPaneSync, XTSMGRAPHICS, OSC 9/99/777 notifications, Kitty alternate-key encoding, and PyPy 3.12 CI) in 0.0.1a2 (#34, #36). Keeping completed milestones alongside remaining 0.1.0+ conformance and integration goals gives contributors one place to see what shipped, what gates 0.1.0, and what stays outside core scope.
Proposal
Shipped in 0.0.1a0 (2026-11-22)
- Sans-I/O VT500
Parser, two-tier packed/FrozenRowRLEScreen,Terminal/Snapshot/Formatter, Unicode 17 width tables,OSC 7501status store, mode-aware input encoder,libvt.aioPOSIXopen_pty(), boxedassert_screen, andvt_*pytestplugin Core(feat[vt]): Add sans-I/O VT engine, RLE grid, OSC 7501, input, and ADRs #2.
Shipped in 0.0.1a1 (2026-11-24)
- Darwin
open_pty()TIOCSCTTYverification and Windows portable-core CI core(fix[pre-0.1]): Pre-0.1 protocol, sync, PTY, and CI hardening #33 (Verifyopen_pty()TIOCSCTTYcontrolling-TTY behavior on macOS #3). -
pending_wrap, wide-glyph reflow,?2026BSUcursor/snapshot freeze,CSI 3 J,HPR/VPR,DECSLRM,FormatterBCE/HTML export, and tmux phantom-column fixes core(fix[pre-0.1]): Pre-0.1 protocol, sync, PTY, and CI hardening #33 (Preservepending_wrapand wide glyphs acrossScreen.resize()#4, Freeze?2026committedsnapshots and cursor state atBSU#5, Keep visible screen cells andpending_wrapintact onCSI 3 J#6, SupportHPR(CSI a) andVPR(CSI e) relative positioning #7, FixDECSLRMscrolltext_used,REPreset, and?7lVS16width #8, FixFormatterBCE/HTML export andTerminalTimeoutErrordiagnostics #9, Modeltmuxphantom column,IL/DLcolumn, andtmux_version#10). - C-regex string scans,
GCBsafe-run slice fast path,changes_since(),pytemigration guide, and right-marginVS16U+20E3clustering core(fix[pre-0.1]): Pre-0.1 protocol, sync, PTY, and CI hardening #33 (Add C-regex string scans andGCBsafe-run non-ASCII slice fast path #11, Addchanges_since(),pytemigration guide, andlibtmuxhelpers #13, Preserve__notes__and subclasses onTerminalTimeoutError#15, KeepU+20E3after right-marginVS16wrap and prefix-match BMP runs #16). - Cell-aligned
SIXELand KittyAPC Gplacement tracking,DECSTBMscroll masking,(abs_row, col)Snapshot.at_abs()anchors, and CoW scrollback history core(fix[pre-0.1]): Pre-0.1 protocol, sync, PTY, and CI hardening #33 (Track cell-alignedSIXELand Kitty graphics placements and erases #14, Replace signedrowonPromptZoneandImagePlacementwithSnapshot.at_abs()#19, Fix_Row.freeze()wide-glyph loss and backhistorywith256-row CoWSequence#20, FixDECSTBMSIXELshift crash and preserve graphics and unwrapped rows onresize()#21). - Chained
tmux capture-panebundles (-N -T -F),decode_tmux_capture(), andtmuxprofile alignment core(fix[pre-0.1]): Pre-0.1 protocol, sync, PTY, and CI hardening #33 (AlignProfile.tmuxonDECSTR, primaryED 2history, andnext-3.9#17, Addtmux capture-paneSnapshotdecoder handling ACS, wraps, and tabs #18). - Per-terminal opaque
SyncTokenwatermarks, bounded ASCII integer parsing, UTF-8 event byte accounting, andPtySessionadd_writerFIFO buffering with?2026EOFexpiry core(fix[pre-0.1]): Pre-0.1 protocol, sync, PTY, and CI hardening #33 (MakeSyncTokenopaque perTerminaland guard_Rowmutations with write barriers #22, Bound ASCII integer parsing inParserand charge UTF-8 bytes in_event_byte_cost()#23, BufferPtySessionwrites viaadd_writerand expire?2026holds onEOF#24). -
BCEhyperlink clearing, primarySUscrollback,DELUTF-8 flush,OSC 4/10–12color queries,XTMODKEYS,?1007alternate scroll, and?1016/?2048pixel reporting core(fix[pre-0.1]): Pre-0.1 protocol, sync, PTY, and CI hardening #33 (FixBCEhyperlink bleed,SUscrollback,DELUTF-8 flush, and profileDECSCslots #25, SupportOSC 4/10–12queries,XTMODKEYS,?1007, and pixel?1016/?2048#26).
Shipped in 0.0.1a2 (2026-11-28)
- Split
Profileinto frozen capability groups (Identity,QueryBehavior,ScreenBehavior,InputBehavior,UnicodeBehaviorwith East Asianambiguous_widthandris_alt_screen) and addlibvt.profileshost presets (XTERM_PROFILE,LINUX_CONSOLE_PROFILE,KITTY_PROFILE,GHOSTTY_PROFILE) (Movetmuxtolibvt.contrib.tmuxand harden pre-0.1core APIs #34, SplitProfileinto capability groups and addlibvt.profiles#37, config(feat[profile]): Group Profile capabilities #44). - Convert
Eventto an open nominal base class (kw_only=True,match_args=False) with opt-inKnownEvent, consolidatedTitleChanged/WorkingDirectoryChanged, andOSC 133+OSC 633shell-integration normalization (Movetmuxtolibvt.contrib.tmuxand harden pre-0.1core APIs #34, MakeEventan open base class and normalizeOSC 133/OSC 633#38, events(feat[osc-633]): Open Event and OSC 633 #45). - Move
tmuxinto decoupledlibvt.contrib.tmux(profile,capture, andcontrol) submodules and removefrom_tmux_capture()/Profile.tmux()from core (Movetmuxtolibvt.contrib.tmuxand harden pre-0.1core APIs #34, Movetmuxinto decoupledlibvt.contrib.tmuxsubmodules #39, contrib(feat[tmux]): Split tmux into contrib #47). - Add passive-observer
Policy.emit_replies(TMUX_OBSERVER_POLICY),ClipboardReadPolicy(ClipboardReadRequested+Terminal.enqueue_reply()),DECRQCRApolicy removal, andParser.at_ground_state(Movetmuxtolibvt.contrib.tmuxand harden pre-0.1core APIs #34, Add passive-observer andOSC 52Policycontrols inlibvt#40, config(feat[policy]): Add observer reply controls #48). - Hold immutable
Snapshot.appearanceatomically across?2026synchronized redraws, addTerminal.set_theme()(?2031CSI ? 997 ; Ps n), and supportDECSCNM(?5) reverse video (Movetmuxtolibvt.contrib.tmuxand harden pre-0.1core APIs #34, Track committedAppearanceacross?2026holds andset_theme()#41, terminal(feat[appearance]): Track ?2026 Appearance #49). - Implement
XTSAVE(CSI ? Pm s) andXTRESTORE(CSI ? Pm r),?8AUTO_REPEAT,?66APPLICATION_KEYPAD,?67BACKARROW_IS_BS, session-scopedMouseTracker, and bidirectionalAsyncTerminalStream/AsyncSession(SupportXTSAVE(CSI ? Pm s) andXTRESTORE(CSI ? Pm r) private mode save/restore #29, Movetmuxtolibvt.contrib.tmuxand harden pre-0.1core APIs #34, Add?8/?66/?67input modes,MouseTracker, andAsyncSession#42, input(feat[modes]): Add XTSAVE and AsyncSession #50). - Narrow
libvt.__all__behind lazy PEP 562 root exports soimport libvtandpytest11plugin discovery do not load emulator modules or Unicode tables (Movetmuxtolibvt.contrib.tmuxand harden pre-0.1core APIs #34, Shrinklibvt.__all__behind PEP 562 and gatepytest11imports #43, pkg(feat[exports]): Shrink root via PEP 562 #51). - Certify
PyPy 3.12compatibility in CI (UV_PYTHON=pypy@3.12) acrossarray('Q')moving-GC cycles andTerminalTimeoutError.__reduce__2-tupleerrnopreservation (CertifyPyPy 3.12compatibility acrossOSErrorreduction andarray('Q')grids #32, ci(feat[pypy]): Certify PyPy 3.12 compatibility #52). - Trace import-time branch coverage via
coverage run --branch --source=libvt -m pytest, verifycodec.pyMode/OSCparity, and add an opt-inctypeslibghostty-vt1.0active-viewport differential harness (Addctypesdifferential corpus suite againstlibghostty-vt1.0 #12, tests(feat[ghostty]): Add libghostty-vt 1.0 oracle (#12) #53). - Support Kitty keyboard
REPORT_ALTERNATE_KEYS(4) andREPORT_ASSOCIATED_TEXT(16) inKeyEventandencode_input()(Support Kitty keyboardREPORT_ALTERNATE_KEYS(4) andREPORT_ASSOCIATED_TEXT(8) #30, input(feat[kitty]): Add alternate keys and text (#30) #54). - Implement stateful
XTSMGRAPHICS(CSI ? Pi ; Pa ; Pv S) color-register and pixel-geometry queries (Implement statefulXTSMGRAPHICS(CSI ? Pi ; Pa ; Pv S) color and geometry registers #28, terminal(feat[sixel]): Add stateful XTSMGRAPHICS (#28) #55). - Emit sanitized typed
Notificationevents (NotificationSource,NotificationUrgency) for iTerm2OSC 9, chunked KittyOSC 99, and rxvtOSC 777;notify(Emit typed notification events forOSC 9, KittyOSC 99, andOSC 777#31, events(feat[notify]): Add OSC notifications (#31) #56). - Add byte-oriented
TmuxControlParserand sans-I/O two-phaseTmuxPaneSynccoordinator inlibvt.contrib.tmux.control(Add byte-orientedTmuxControlParserand two-phase-CCPaneAttach#27, tmux(feat[control]): Add parser and pane sync (#27) #57).
Planned for 0.0.1a3 (pyte compatibility and libvt.contrib.tmux readiness)
- Add mode-40-gated
DECCOLM(?3,?40,?95),CP437'U'charset in"latin-1"mode (keeping pyte'sVAX42'V'extension omitted), opt-inISO-2022DOCSswitches (ESC % G/ESC % @), andTerminal.feed_str()"latin-1"guard (Add mode-40-gatedDECCOLM,CP437'U'charset, andDOCSswitches #58). - Add column-padded
display_linesandRowView.display_text, statelessSnapshot.viewport(offset=0)scrollback browsing, andpyte 0.8.2migration matrix and runnable doctests (Adddisplay_lines,Snapshot.viewport(), andpytemigration docs #59). - Add
tmuxcursor/key pane metadata,TmuxCaptureResult.metadata, boundedhistory_linescapture,tmux >= 3.7-Fgating, V1/V2%layout-changeresize, and in-placeTmuxPaneSync.resync()(Addtmuxpane metadata,%layout-changeresize, andresync()#60).
0.1.0 and beyond
- Build and cache
libghostty-vt1.0via Zig in CI, replay a 30-plus recorded.jsonldifferential session corpus (tmux_popup_lifecycle,nvim_edit_scroll_exit,resize_mid_sync_wide), and generate a per-profile control-function conformance page indocs/Addctypesdifferential corpus suite againstlibghostty-vt1.0 #12. - Land optional
libtmux[vt]pane capture and live-C/-CCobservation on Python3.12+(libtmux#932) and cut0.1.0oncelibvt.contrib.tmuxand thelibghostty-vtdifferential CI corpus settle. - Revisit optional stateful
HistoryPageroverSnapshot.viewport(), an optionalLibCSTpytemigration codemod after real consumer migrations stabilize, andScreenBehavior.custom_charsetsif a concrete non-VAX42caller needs customG0–G3tables. - Additional
libvt.contrib.<peer>integrations (such as Zellij) once backed by real-binary CI fixtures, andAsyncTerminalStream.from_blocking()once worker-thread cancellation semantics are settled.
Session recording file schemas, mid-sequence parser state checkpoints, pure-Python RGBA8 pixel rasterization, and correlated async host-query futures remain outside libvt core. External packages can build those layers on Snapshot, RowView.runs(), Event, Policy, Terminal.enqueue_reply(), and Parser.at_ground_state without adding runtime dependencies to libvt.
References
- Upstream consumer roadmap and VT integration issue: libtmux#907, libtmux#932
- Changelog and API surface at
v0.0.1a2:CHANGES,docs/project/public-api.md
Sub-issues
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTodo
Activity
0.1.0API waves aroundterminal.pyserialization #36tmuxtolibvt.contrib.tmuxand harden pre-0.1core APIs #34