• src/conio/cterm_test.csrc/conio/CMakeLists.txt cterm.adoc

    From Deucе@VERT to Git commit to main/sbbs/master on Thu Mar 19 01:34:48 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/0946b768c11f0b14cdc2967a
    Added Files:
    src/conio/cterm_test.c
    Modified Files:
    src/conio/CMakeLists.txt cterm.adoc
    Log Message:
    Add Atari ST VT52 documentation and cterm unit test harness

    Document the Atari ST VT52 emulation mode in cterm.adoc: C0 controls,
    standard VT52 sequences, GEMDOS/TOS extensions, color palettes for
    all three screen modes (40x25/16-color, 80x25/4-color, 80x25/mono),
    reverse video behavior, and differences from standard VT52.

    Add cterm_test — a unit test framework for non-ANSI emulation modes.
    Uses SDL offscreen backend with direct cterm_init/cterm_write/
    vmem_gettext calls, no PTY or syncterm process needed. 38 VT52 tests
    covering: printable chars, C0 controls (CR/LF/BS/BEL/HT/VT/FF),
    cursor movement (up/down/left/right/home), direct addressing (ESC Y),
    screen clearing (ESC E/J/K/d/l/o), line editing (ESC L/M), cursor
    save/restore, show/hide cursor, reverse video, autowrap on/off,
    color setting, keypad modes, scrolling, and line wrapping.

    Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net