API Reference

Public modules and types shipped by libvt.

libvt

Lazy PEP 562 quickstart exports: Terminal, Snapshot, render, strip, and core types.

libvt
libvt.terminal

Terminal, StopOn, StepResult, render, and strip.

libvt.terminal
libvt.screen & libvt.views

Screen, ScreenSet, Cell, RowView, RowRun, RegionView, and Cursor.

libvt.screen
libvt.snapshot, format, & recorder

Snapshot, SyncToken, ScreenDelta, Formatter, TerminalRecorder, and FlightRecorder.

libvt.snapshot
libvt.parser

Streaming VT500 Parser, CsiParams, Action records, and parse_sgr.

libvt.parser
libvt.style & libvt.modes

Style, AnsiColor, IndexedColor, RgbColor, Hyperlink, and DEC/ANSI Modes.

libvt.style
libvt.config, profiles, events, & status

Profile capability groups, host presets, Policy, Limits, Event, and ProgramStatus.

libvt.config
libvt.input & libvt.codec

Mode-aware KeyEvent, MouseEvent, PasteEvent, and VT sequence explain.

libvt.input
libvt.aio

AsyncSession, AsyncTerminalStream, and POSIX open_pty / PtySession.

libvt.aio
libvt.testing

Zero-dependency assert_screen, assert_screen_box, vt_screen, serialize_vt_snapshot, and format_vt_diff_lines.

libvt.testing
libvt.pytest_plugin

Import-light vt_terminal, vt_factory, vt_recorder, vt_parser, and vt_pty fixtures (libvt[pytest]).

libvt.pytest_plugin
libvt.graphics

SIXEL and Kitty APC G ImageMeta and ImagePlacement.

libvt.graphics
libvt.contrib.tmux

Decoupled tmux profile, capture, window, and control submodules.

libvt.contrib.tmux
libvt.contrib.subprocess

Synchronous child processes on POSIX PTYs and Windows ConPTY.

libvt.contrib.subprocess
libvt.contrib.syrupy

Optional syrupy VtSnapshotExtension and conditional vt_snapshot fixture for .ambr golden files (libvt[syrupy]).

libvt.contrib.syrupy

Policy and Guarantees

Public API

What is and is not part of the public API.

Public API
Compatibility

Supported Python versions and platforms.

Compatibility
Deprecations

Active deprecations and migration guidance.

Deprecations