Skip to main content

Module screen

Module screen 

Source
Expand description

The screen as text: what the agent reads, and what a reattaching client is repainted from.

Plain text, never raw escapes. A tool result carries the characters a person would see, with trailing blanks trimmed; the client gets the same grid through the repaint in crate::repaint, not through this.

Re-exportsยง

use alacritty_terminal::event::EventListener; ๐Ÿ”’
use alacritty_terminal::grid::Dimensions; ๐Ÿ”’
use alacritty_terminal::grid::Grid; ๐Ÿ”’
use alacritty_terminal::index::Line; ๐Ÿ”’
use alacritty_terminal::term::Term; ๐Ÿ”’
use alacritty_terminal::term::cell::Cell; ๐Ÿ”’
use alacritty_terminal::term::cell::Flags; ๐Ÿ”’

Structsยง

Cursor
Where the cursor sits on the visible screen.
GridSize ๐Ÿ”’
The dimensions a resize drives the grid with.
ReadResult
One bounded read of the scrollback and the screen.
Screen
The visible screen as text, with the cursor and the size.

Functionsยง

extract
The visible screen, as text.
line_text ๐Ÿ”’
One grid line as text, trailing blanks trimmed.
read
A bounded read of the buffer from since, or the tail when since is absent or older than the buffer.
resize ๐Ÿ”’
Resize the grid, moving the lifetime read cursor with the reflow.