libvt.events

Closed algebraic Event union and structured terminal notification records.

class libvt.events.Bell
class libvt.events.Bell

Bases: object

Emitted when BEL (0x07) executes in GROUND.

class libvt.events.ClipboardWrite
class libvt.events.ClipboardWrite

Bases: object

Emitted when OSC 52 writes base64-decoded text to a selection target.

class libvt.events.ColorSchemeQueried
class libvt.events.ColorSchemeQueried

Bases: object

Emitted when CSI ? 996 n queries the host color scheme.

class libvt.events.EraseCause
class libvt.events.EraseCause

Bases: StrEnum

Reason a screen rectangle was cleared or scrolled.

class libvt.events.InBandResize
class libvt.events.InBandResize

Bases: object

Emitted when resize() queues a ?2048 in-band resize report.

class libvt.events.KittyCommand
class libvt.events.KittyCommand

Bases: object

Zero-dependency APC G Kitty graphics protocol record.

class libvt.events.KittyGraphic
class libvt.events.KittyGraphic

Bases: object

Emitted when an APC G Kitty graphics sequence completes.

class libvt.events.Passthrough
class libvt.events.Passthrough

Bases: object

Emitted when a DCS tmux; ESC ESC ... ST passthrough envelope arrives.

class libvt.events.ProgramStatusChanged
class libvt.events.ProgramStatusChanged

Bases: object

Emitted when OSC 7501 or OSC 9;4 mutates task status.

class libvt.events.PromptKind
class libvt.events.PromptKind

Bases: StrEnum

OSC 133 FinalTerm / semantic-shell prompt zone markers.

class libvt.events.PromptZone
class libvt.events.PromptZone

Bases: object

Semantic shell prompt boundary emitted via OSC 133.

class libvt.events.Rect
class libvt.events.Rect

Bases: object

Zero-based rectangular cell region.

class libvt.events.RenderHoldChanged
class libvt.events.RenderHoldChanged

Bases: object

Emitted when DEC mode ?2026 synchronized output starts or ends.

class libvt.events.ScreenErased
class libvt.events.ScreenErased

Bases: object

Emitted when cells clear or scroll on the active screen.

class libvt.events.SixelData
class libvt.events.SixelData

Bases: object

Zero-dependency DCS ... q SIXEL payload record.

class libvt.events.SixelGraphic
class libvt.events.SixelGraphic

Bases: object

Emitted when a DCS ... q SIXEL graphic sequence completes.

class libvt.events.TitleChanged
class libvt.events.TitleChanged

Bases: object

Emitted when OSC 0 or OSC 2 updates the window title.

class libvt.events.UnhandledSequence
class libvt.events.UnhandledSequence

Bases: object

Recorded when an unrecognized control sequence arrives and strict=False.

class libvt.events.WindowRenamed
class libvt.events.WindowRenamed

Bases: object

Emitted when ESC k <name> ESC \ updates the tmux window name.

class libvt.events.WorkingDirectoryChanged
class libvt.events.WorkingDirectoryChanged

Bases: object

Emitted when OSC 7 or OSC 9;9 updates the working directory.