Skip to main content

read_text

Function read_text 

Source
pub fn read_text(mem: &mut impl BiosMemory) -> String
Expand description

Renders the 80x25 text screen as trimmed lines.

Each row is read from VIDEO_BASE (character bytes at even addresses), trailing spaces are removed, trailing empty rows are dropped and rows are joined with '\n'. Bytes outside the printable ASCII range become spaces.