• src/conio/cterm.adoc cterm.c cterm_test.c

    From Deucе@VERT to Git commit to main/sbbs/master on Fri Mar 20 11:13:24 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/9a318870ea9352444b35be18
    Modified Files:
    src/conio/cterm.adoc cterm.c cterm_test.c
    Log Message:
    Re-process (not discard) invalid bytes in command strings

    When a byte outside the allowed command string range (ECMA-48 §5.6)
    appeared inside a DCS, OSC, APC, or PM string, both the string and
    the invalid byte were silently discarded. The discard behavior was a placeholder from before string processing was implemented (c99f9885).

    Now the malformed string is discarded but the invalid byte is
    re-processed as normal input (e.g., BEL beeps, FF clears screen).

    Added 4 tests: OSC+BEL, DCS+BEL, APC+SI, SOS+SOS.
    Documented the behavior in cterm.adoc.
    Added comment documenting the SOS frame invariant in STS readback.

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

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