Skip to main content

Module console

Module console 

Source
Expand description

Console — the engine talking.

Rows are a fixed grid (time · level · source · message) so the eye can scan one column without reading the others. Warn and error rows are tinted, but the level is also an icon: colour alone would leave the severity invisible to a colour-blind reader.

Structs§

ConsolePanel
The console panel.
Counts 🔒
Counts per level, for the pill badges.
LevelFilter
Which log levels the console is currently showing.

Constants§

COL_LEVEL 🔒
COL_SOURCE 🔒
COL_TIME 🔒
Column geometry. The message column takes whatever is left and wraps; it never widens the row, because a console that scrolls sideways is a console you cannot read.
FILTER_H 🔒
GAP 🔒
HEADER_H 🔒
ROW_H 🔒

Functions§

level_style 🔒
The colour and glyph that stand for a level.
truncate 🔒
Clips a source path to fit its column, keeping the tail (the part that actually distinguishes khora_control from khora_data).