• src/conio/cterm.c cterm_test.c

    From Deucе@VERT to Git commit to main/sbbs/master on Sun Nov 22 10:25:03 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/e87c2c276e7138f435ce860b
    Modified Files:
    src/conio/cterm.c cterm_test.c
    Log Message:
    Fix autowrap scrolling at terminal margins

    Convert scrolling margins into the current coordinate system before handling character advancement and delayed wrapping. Restore the character's logical cursor position before testing whether to scroll, since cputs may already have wrapped outside the region.

    Add regressions covering immediate, delayed, and disabled autowrap with origin mode, horizontal margins, and batched or split writes. Verify cursor position, scrollback, and preservation of footer and status rows. All 330 emulation tests pass.

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