Files
gw-basic-2026/tests/programs/color_test.bas
Eremey Valetov 4551c88a50 Implement BSAVE/BLOAD, TUI color, extended PEEK/POKE, update to v0.12.0
BSAVE/BLOAD: save and load virtual memory blocks with 0xFD-header
binary format, operating on the current DEF SEG segment.

TUI color: tui_refresh emits ANSI SGR codes from cell attributes;
COLOR statement sets tui.current_attr when TUI is active.

Extended PEEK/POKE: CGA graphics framebuffer (interlaced layout) via
gfx_cga_peek/poke routed through virmem when gfx_active(); BIOS
keyboard shift flags (offset 0x17 bit 7 = insert mode).

Add bibliography to language reference. 64 tests, all passing.
2026-03-01 13:37:05 -05:00

9 lines
164 B
QBasic

10 REM Test COLOR statement
20 COLOR 14, 1
30 PRINT "YELLOW ON BLUE"
40 COLOR 15, 4
50 PRINT "WHITE ON RED"
60 COLOR 7, 0
70 PRINT "DEFAULT COLORS"
80 PRINT "DONE"