• src/doors/termgfx/mouse.c mouse.h src/doors/termgfx/test/test_mouse.cs

    From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sat Jul 18 03:02:48 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/27322e835a80b39ac845f903
    Added Files:
    src/doors/termgfx/mouse.c mouse.h src/doors/termgfx/test/test_mouse.c Modified Files:
    src/doors/termgfx/CMakeLists.txt src/doors/termgfx/test/CMakeLists.txt Log Message:
    termgfx: add a shared SGR mouse handshake module

    Extract the terminal-protocol half of syncconquer's absolute-pixel mouse
    -- the DEC 1003/1006/1016 enable/restore strings, the SGR-Pixels latch
    (DECRQM reply + past-the-grid auto-detect) and the button-field classify
    -- into termgfx/mouse, so a second door (syncscumm) can share it instead
    of duplicating the handshake. Coordinate mapping stays door-side; only
    the protocol lives here, mirroring sgrmouse.h's split. Unit-tested.
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)