Skip to main content

Module parser

Module parser 

Source
Expand description

The parser’s view of the screen, with the one count the grid cannot give.

Term keeps only the lines the scrollback still holds. Its line count stops at the cap, so a read cursor measured in buffer positions stops advancing once the buffer fills. This wrapper forwards every handler to the term and counts the linefeeds that scroll a full screen, which are exactly the lines the buffer drops.

Re-exportsΒ§

use alacritty_terminal::event::EventListener; πŸ”’
use alacritty_terminal::grid::Dimensions; πŸ”’
use alacritty_terminal::index::Line; πŸ”’
use alacritty_terminal::term::Term; πŸ”’
use alacritty_terminal::vte::ansi::Attr; πŸ”’
use alacritty_terminal::vte::ansi::CharsetIndex; πŸ”’
use alacritty_terminal::vte::ansi::ClearMode; πŸ”’
use alacritty_terminal::vte::ansi::CursorShape; πŸ”’
use alacritty_terminal::vte::ansi::CursorStyle; πŸ”’
use alacritty_terminal::vte::ansi::Handler; πŸ”’
use alacritty_terminal::vte::ansi::KeyboardModes; πŸ”’
use alacritty_terminal::vte::ansi::KeyboardModesApplyBehavior; πŸ”’
use alacritty_terminal::vte::ansi::LineClearMode; πŸ”’
use alacritty_terminal::vte::ansi::Mode; πŸ”’
use alacritty_terminal::vte::ansi::ModifyOtherKeys; πŸ”’
use alacritty_terminal::vte::ansi::PrivateMode; πŸ”’
use alacritty_terminal::vte::ansi::Processor; πŸ”’
use alacritty_terminal::vte::ansi::Rgb; πŸ”’
use alacritty_terminal::vte::ansi::ScpCharPath; πŸ”’
use alacritty_terminal::vte::ansi::ScpUpdateMode; πŸ”’
use alacritty_terminal::vte::ansi::StandardCharset; πŸ”’
use alacritty_terminal::vte::ansi::TabulationClearMode; πŸ”’

MacrosΒ§

forward πŸ”’

StructsΒ§

Counted πŸ”’
One parse’s worth of counting.

FunctionsΒ§

advance πŸ”’
Drive parser over bytes, then add the lines that entered the buffer to appended - the lifetime count a read cursor is measured in.