Skip to main content

Module repaint

Module repaint 

Source
Expand description

The attach repaint: the visible screen as a VT stream a client can draw.

alacritty_terminal has no formatted dump, so forge writes one. A client that attaches late, reconnects or falls behind is sent this instead of the bytes it missed: the grid’s characters, their colours and attributes, and the cursor, as the escape sequences xterm.js already parses.

The repaint is the screen, not the history. A reattaching client gets what is visible; the scrollback is the server’s, and terminal__read is how an agent reads it.

Re-exportsΒ§

use alacritty_terminal::event::EventListener; πŸ”’
use alacritty_terminal::grid::Dimensions; πŸ”’
use alacritty_terminal::index::Column; πŸ”’
use alacritty_terminal::index::Line; πŸ”’
use alacritty_terminal::term::cell::Flags; πŸ”’
use alacritty_terminal::term::Term; πŸ”’
use alacritty_terminal::term::TermMode; πŸ”’
use alacritty_terminal::vte::ansi::Color; πŸ”’
use alacritty_terminal::vte::ansi::NamedColor; πŸ”’

StructsΒ§

Style πŸ”’
One cell’s drawing attributes, compared to decide when to emit an SGR.

FunctionsΒ§

bg_sgr πŸ”’
fg_sgr πŸ”’
named_index πŸ”’
The 0..15 index of a named colour, folding the dim variants onto their base colour.
repaint
The visible screen as a VT stream, ending with the cursor where the program left it.
toggle πŸ”’
One DEC private mode, set or reset.