Skip to main content

Module scrollback

Module scrollback 

Source
Expand description

Scrollback buffer for the framebuffer terminal.

Implements a ring-buffer of character cells for scrollback, plus a โ€œcurrentโ€ partial row that accumulates characters before a newline finalises it into the ring.

Re-exportsยง

use alloc::vec::Vec; ๐Ÿ”’

Structsยง

SbCell ๐Ÿ”’
A single character cell stored in the scrollback buffer.
ScrollbackBuffer ๐Ÿ”’
Ring-buffer scrollback store.

Constantsยง

MAX_SCROLLBACK ๐Ÿ”’
Maximum number of scrollback lines retained.