Skip to main content

Module screen

Module screen 

Source
Expand description

The character-cell screen model: a grid of CP437 glyphs with attributes, a cursor, a scrolling region and a scrollback buffer.

Modules§

flags

Structs§

Cell
LoadedFont
A font a BBS sent: 256 glyphs, 8 pixels wide and height high.
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.

Functions§

color_rgb