Expand description
The character-cell screen model: a grid of CP437 glyphs with attributes, a cursor, a scrolling region and a scrollback buffer.
Modules§
Structs§
- Cell
- Loaded
Font - A font a BBS sent: 256 glyphs, 8 pixels wide and
heighthigh. - Look
- What a BBS can change about how cells are drawn, beyond their own
attributes: CTerm’s palette (
OSC 4) and font slots (CSI n;m SP D). - Screen
- Tile
- One cell’s pixel graphics: 0xFFRRGGBB pixels, 0 where the cell’s own text and background show through.
- Tiles
- The tiles the screen’s cells (and scrollback) show, by ID. Ones no cell shows any more are reused once there are many.
Enums§
- Color
- A cell color. PC colors keep ANSI-BBS semantics (bold brightens the foreground, blink brightens the background in iCE mode) by being resolved at render time rather than when written.
Constants§
- DEFAULT_
BG - DEFAULT_
FG - ENTRY_
FONT - The slot a directory entry’s own font file goes in.
- FIRST_
LOADABLE_ FONT - CTerm’s built-in fonts are 0-42; loaded ones go in the slots after.