Repository navigation
Description
Summary
Evergreen tracking issue for libvt releases from 0.0.x through 0.1.0 and beyond, modeled on libtmux#907. Core protocol, pyte compatibility, boxed VT/SGR snapshot testing, multi-pane tmux compositing, synchronous subprocess driving, extended input encoding, and the pinned libghostty-vt differential corpus and conformance matrix have landed across 0.0.1a0–0.0.1a6 and master ahead of 0.1.0.
Motivation
Keeping completed milestones alongside remaining 0.1.0+ integration and optional ecosystem goals gives contributors one place to see what shipped, what gates 0.1.0, and what remains 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).
Shipped in 0.0.1a3 (2026-11-29)
- 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, terminal(feat[compat]): Add DECCOLM, CP437, DOCS (#58) #61). - 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, screen(feat[viewport]): Add viewport and display (#59) #62). - 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, tmux(feat[sync]): Add metadata, resize, resync (#60) #63).
Shipped in 0.0.1a4 (2026-11-29)
- Add zero-dependency boxed VT and
SGRsnapshot serialization (serialize_vt_snapshot(),vt_screen(),format_vt_diff_lines()) inlibvt.testing, optionallibvt[pytest]andlibvt[syrupy]extras (VtSnapshotExtensionand conditionalvt_snapshotfixture), andtyCI checks (contrib(feat[syrupy]): Add VT snapshot extension #66, testing(feat): Decouple testing, plugin, syrupy #67, upgrade ty #70).
Shipped in 0.0.1a5 (2026-11-30)
- Add
Screen.blit(),Screen.put_text(), standaloneScreen.snapshot(), and multi-panetmuxwindow layout parsing and compositing inlibvt.contrib.tmux.window(tmux(feat[window]): Add Screen.blit and window capture #137).
Shipped in 0.0.1a6 (2026-12-05)
- Add soft-wrapped logical-line reading (
unwrapped_text,unwrap=True) andwait_for()soft-wrap matching (aio(fix[wait]): Match soft-wrapped text #152),os.PathLikesnapshot scrubbers (testing(fix[scrub]): Accept PathLike scrubbers (#148) #150), prepared VT diff baselines and nested container diffs (testing(fix[diff]): Pair multi-row diffs and nested dict boxes #151, Accept a prepared VT screen as a diff baseline #191), andStopOn.PROGRAM_STATUSstepping (Stop terminal stepping at program status changes #181). - Add initial PTY
encoding=/record_events=(Set encoding and event recording at PTY startup #164), shared foreground reads (Share async stream input reads #159), multi-frame?2026wait delivery (Observe each committed frame in a single transport read #192), writer cleanup &ECANCELEDclose reporting (Close the stream writer after input failure #160, Report outbound writes interrupted by close #162, Route terminal replies after an async stream handoff #168), Linux PTY group pidfd cleanup (Close Linux PTY process groups after the leader exits #163), exactFlightRecorderbounds (Honor the configured flight recorder byte limit #182), and stridedmemoryviewinput (Accept strided terminal input buffers #186). - Harden
tmuxcapture/control (watch_process, session scope, paired untrimmed capture bundles, versionedXTVERSION, emoji column completeness, live resize resync: Use the selected tmux server version for capture and attach #158, Route tmux control replies to the requesting pane #161, Report panes outside the tmux control client's session #166, Refresh tmux panes after process replacement notices #167, Refresh the observed tmux pane after resize #169, Distinguish omitted tmux paste and tab metadata #170, Preserve erased backgrounds in tmux captures #171, Report hidden continuation state in tmux captures #172, Preserve the cursor on tmux alternate-screen entry #173, Flag uncertain emoji columns in older tmux captures #174), VT replay fidelity (Restore viewport state when replaying a VT snapshot #180), GhosttyREP/tab/wrap parity (screen(fix[erase]): Preserve rows through erases and scrubbing (#153) #149, Preserve deferred wrap across tabulation #184, Keep Ghostty repeat history across cursor movement #185), Kitty F3/releases (Encode Kitty F3 and special-key releases #176), mouse group selection (Select mouse tracking and coordinate formats independently #177), and liveRowView/RegionViewbounds (Keep retained live rows indexable after resize #183).
Landed on master (for 0.0.1a7)
- Split core modules (
views,snapshot,format,recorder,aio/), addTerminalRecorder,SupportsVtTarget,Terminal.replace_from(),is_private_mode_supported(), per-module API reference pages, andredirafferedirects (Splitterminal.pyandscreen.py, decouplecontrib, restack PRs #203, core(refactor): Split views, snapshot, dispatch, recorder, target, and aio (#203) #204, docs(api): Add per-module pages and split aio #205). - Harden live
RegionView/RowViewcoordinate tracking across scroll and reflow (Retained live regions reorder viewport rows after a scroll #197, views(fix[region]): Track live coordinates #211),Snapshotattribute-deletion guard (Deleting a snapshot attribute damages the cached committed frame #198, snapshot(fix): Reject attribute deletion #207), single-pass erase wrap severing (Full-display erases repeatedly visit cleared predecessor rows #199, screen(fix[erase]): Sever wraps once per span #209),examples/sdist inclusion (Ship the examples used by the tests and docs in the sdist #196, packaging(fix[sdist]): Include examples in sdist #210), and lazy-import / assertion-frame documentation (Document working and committed frames in screen assertions #200, Correct the architecture guide’s description of lazy imports #201, docs(testing): Document working and committed assertion frames #206, architecture(docs): Clarify lazy root imports #208). - Add
Snapshot.find_cells()/CellSpan(Locate text in a snapshot by terminal row and cell span #102, snapshot(feat): Locate text by cell coordinates #133),pytest --vt-replay-dir+python -m libvt replay+ hidden diff reporting inassert_screen()(Show the hidden difference when terminal assertion boxes match #117, Record resize events with terminal bytes for deterministic replay #127, Save failed pytest terminal screens for offline replay #136, testing(feat[replay]): Replay failed pytest runs #139), synchronouslibvt.contrib.subprocess(open_terminal(),run_terminal(), POSIX PTY and Windows ConPTY: Offer typed terminal control alongside ordinary subprocess calls #106, contrib(feat): Drive terminal subprocesses #142), interactive README /fzf/ tmux screen / Last Beacon walkthroughs (Document pane-relative clicks and keyboard focus after a click #95, Document the pane grid and the viewport shown in tmux copy mode #96, Show one tested interactive child in the README and guide #116, docs(readme): Drive a real terminal program #131, Show how to test fzf selection and cancellation #132, docs(testing): Add fzf selection cookbook #138, docs(game): Add The Last Beacon walkthrough #140, docs(tmux): Compare pane and client screens #141). - Add extended function keys
f13–f35and left/right modifier-only keys (Represent modifier-only keys and extended function keys #129, input(feat[keys]): Add F13-F35 and modifier keys #212) and mode-aware atomicsend_line()acrossAsyncSession,AsyncTerminalStream,PtySession, andTerminalProcess(Add a mode-awaresend_line()for line-oriented terminal prompts #121, aio(feat[session]): Add mode-aware send_line() #214). - Build and cache pinned
libghostty-vtvia Zig in CI (ubuntu-24.04-arm), replay a recorded.jsonldifferential session corpus (tmux_popup_lifecycle,nvim_edit_scroll_exit,resize_mid_sync_wide, and core sessions) whole and 1-byte split with line, wrap, cell style/BCE, scrollback, cursor, and reply checks, and enforce a per-profile control-function conformance matrix indocs/project/conformance.md(Addctypesdifferential corpus suite againstlibghostty-vt1.0 #12, tests(feat[ghostty]): Add differential corpus #215). - Add PR template, production-only test-bite revert recipe, lockfile workaround checker (
scripts/check_workarounds.py), and RuffPGH003/PGH004guards (docs(policy): Add PR template and workaround gate #213).
0.1.0 and beyond
- Land optional
libtmux[vt]pane capture and live-C/-CCobservation on Python3.12+(libtmux#932) againstlibvt>=0.0.1a6,<0.1, and cut0.1.0oncelibvt.contrib.tmuxand downstream consumers 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, migration guide, public API, and conformance matrix on
master:CHANGES,docs/topics/migrating-from-pyte.md,docs/project/public-api.md,docs/project/conformance.md
Activity
0.1.0API waves aroundterminal.pyserialization #36tmuxtolibvt.contrib.tmuxand harden pre-0.1core APIs #34tony commentedon Dec 3, 2026
The frame-wait fix for #72 builds on the shared reader in #159. The stream-shutdown fix can land independently. Their close paths overlap. The combined Linux replay delivered the last of 450 PTY frames and preserved writer cleanup after a read error. PR #192 · PR #159 · PR #160
The tmux control-client change assigns each command reply to its requesting pane. The pane-movement and process-replacement changes build separately on it. Passive notification timing remains open in #78. PR #161 · PR #166 · PR #167
Two conformance items still have narrower scope than their tracking issues. The compiled Ghostty comparison now preserves printed trailing spaces. The broader corpus remains in #12. Linux group-pidfd signaling covers post-exit PTY cleanup on supported kernels. The forced fallback still left a worker alive, so #89 stays open. PR #157 · PR #163
tony commentedon Dec 5, 2026
Status update on pre-
0.1.0milestones landed onmaster(for0.0.1a7):RegionView/RowViewcoordinate tracking across scroll and reflow (Retained live regions reorder viewport rows after a scroll #197 / views(fix[region]): Track live coordinates #211,4530d88),Snapshotattribute-deletion guard (Deleting a snapshot attribute damages the cached committed frame #198 / snapshot(fix): Reject attribute deletion #207,84a5a21), single-pass full-display erase wrap checks (Full-display erases repeatedly visit cleared predecessor rows #199 / screen(fix[erase]): Sever wraps once per span #209,8ea63b6),examples/sdist inclusion (Ship the examples used by the tests and docs in the sdist #196 / packaging(fix[sdist]): Include examples in sdist #210,96c2486), parser/CSI edge hardening (Document working and committed frames in screen assertions #200 / docs(testing): Document working and committed assertion frames #206,3afc591; Correct the architecture guide’s description of lazy imports #201 / architecture(docs): Clarify lazy root imports #208,11e76c7).f13–f35and left/right modifier-only keys (Represent modifier-only keys and extended function keys #129 / input(feat[keys]): Add F13-F35 and modifier keys #212,cff951f).send_line()acrossAsyncSession,AsyncTerminalStream,PtySession, andTerminalProcess(Add a mode-awaresend_line()for line-oriented terminal prompts #121 / aio(feat[session]): Add mode-aware send_line() #214,2d7a53e).libvt.contrib.subprocessdriver on POSIX PTY and Windows ConPTY (Offer typed terminal control alongside ordinary subprocess calls #106 / contrib(feat): Drive terminal subprocesses #142,d577976).Snapshot.find_cells()/CellSpan(Locate text in a snapshot by terminal row and cell span #102 / snapshot(feat): Locate text by cell coordinates #133,345b168),pytest --vt-replay-dir+python -m libvt replay+ hidden diff reporting inassert_screen()(Show the hidden difference when terminal assertion boxes match #117, Record resize events with terminal bytes for deterministic replay #127, Save failed pytest terminal screens for offline replay #136 / testing(feat[replay]): Replay failed pytest runs #139,f00ea2b).9647ae1),fzfcookbook (Show how to test fzf selection and cancellation #132 / docs(testing): Add fzf selection cookbook #138,c33aee3), tmux pane vs. attached-client guide (Document pane-relative clicks and keyboard focus after a click #95, Document the pane grid and the viewport shown in tmux copy mode #96 / docs(tmux): Compare pane and client screens #141,cd0c658), and The Last Beacon walkthrough (Show one tested interactive child in the README and guide #116 / docs(game): Add The Last Beacon walkthrough #140,974a4fa). Superseded integration PR Exercise pending terminal changes together on Linux #193 closed..jsonldifferential corpus verified whole and 1-byte split (lines, wraps, cell styles/BCE, scrollback, cursor, replies) against compiledlibghostty-vt1.0.2 with a pinned, cachedubuntu-24.04-armtest-ghosttyCI job and CI-checkeddocs/project/conformance.mdacross all host profiles (Addctypesdifferential corpus suite againstlibghostty-vt1.0 #12 / tests(feat[ghostty]): Add differential corpus #215,288041c).Remaining roadmap items stay open here:
libtmux[vt]integration (libtmux#932) and post-0.1.0optional items.