libvt.screen¶
Zero-based screen buffer, lazy cell/row/region views, reflow, and dual screens.
Bases:
objectImmutable view of a single terminal grid cell.
Grapheme cluster string (
" "for narrow blanks,""forWidthRole.SPACER_TAILandWidthRole.SPACER_HEAD).
Active
OSC 8hyperlink, when present.
DECSCAprotection attribute respected byDECSED/DECSEL.
Return column width (
2wide,0spacer,1narrow).
Return
Truewhen the cell holds an unstyled narrow space.
-
__init__(text=' ', style=Style(fg=None, bg=None, underline_color=None, bold=False, dim=False, italic=False, underline=<UnderlineStyle.NONE: 0>, blink=False, reverse=False, hidden=False, strikethrough=False, overline=False), width_role=WidthRole.NARROW, hyperlink=None, protected=False)¶method[source]method[source]__init__(text=' ', style=Style(fg=None, bg=None, underline_color=None, bold=False, dim=False, italic=False, underline=<UnderlineStyle.NONE: 0>, blink=False, reverse=False, hidden=False, strikethrough=False, overline=False), width_role=WidthRole.NARROW, hyperlink=None, protected=False)¶
Truewhen a glyph filledcols - 1underDECAWMand the next printable character will wrap to the next line.
Bases:
StrEnumCursor glyph shape configured via
DECSCUSR(CSI Ps SP q).Return the lower-cased version of the member name.
Return right-trimmed text for each row in the region.
Rendered text across
start_col..end_col(omitting spacer empty strings).
Shared
OSC 8hyperlink across the run, if any.
Return
Truewhen this row soft-wrapped onto the next line.
Return right-trimmed rendered text for this row slice.
Bases:
objectMutable 2D character grid with
FrozenRowRLE scrollback and reflow.Return cumulative primary rows scrolled off the top margin.
Return
O(1)immutableRowViewsequence over scrollback.
Return sorted horizontal tabstop columns.
Set a horizontal tabstop at col (
HTS).
Remove the horizontal tabstop at col (
TBC 0).
Remove all horizontal tabstops (
TBC 3).- Return type:
Clear all sealed scrollback rows (
ED 3).- Return type:
Return (lazily creating) this screen’s
GraphicsTracker.- Return type:
Return stored
SIXEL/ KittyImageMetarecords.
- Parameters:
frozen (
FrozenRow)- Return type:
- Parameters:
row_obj (
_Row)- Return type:
Repair cross-row
SPACER_HEADpairs before mutating cells.
Clear preceding
SPACER_HEADandwrappedif(row, 0)splits.
Return right-trimmed text for every visible row.
Return visible screen text with trailing blank rows omitted.
Push active lines up to last non-blank row into history.
Resize screen to
(rows, cols), optionally reflowing soft wraps.
Bases:
objectInclusive zero-based scroll margin bounds (
DECSTBM/DECSLRM).