libvt.screen

Zero-based screen buffer, lazy cell/row/region views, reflow, and dual screens.

class libvt.screen.Cell
class libvt.screen.Cell

Bases: object

Immutable view of a single terminal grid cell.

class libvt.screen.Cursor
class libvt.screen.Cursor

Bases: object

Zero-based cursor state on a Screen.

class libvt.screen.CursorShape
class libvt.screen.CursorShape

Bases: StrEnum

Cursor glyph shape configured via DECSCUSR (CSI Ps SP q).

class libvt.screen.RegionView
class libvt.screen.RegionView

Bases: Sequence[RowView]

Read-only 2D rectangular slice view over (rows, cols).

class libvt.screen.RowRun
class libvt.screen.RowRun

Bases: object

Contiguous run of identically styled cells within a RowView.

class libvt.screen.RowView
class libvt.screen.RowView

Bases: Sequence[Cell]

Read-only sequence view over one live viewport or scrollback row.

class libvt.screen.Screen
class libvt.screen.Screen

Bases: object

Mutable 2D character grid with FrozenRow RLE scrollback and reflow.

class libvt.screen.ScreenSet
class libvt.screen.ScreenSet

Bases: object

Dual primary and alternate (?1049) screen pair.

class libvt.screen.ScrollRegion
class libvt.screen.ScrollRegion

Bases: object

Inclusive zero-based scroll margin bounds (DECSTBM / DECSLRM).