• src/conio/ciolib.c ciolib.h win32gdi.c

    From Deucе@VERT to Git commit to main/sbbs/master on Thu Jan 1 15:23:30 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/f1732d3cfd0399cda4cf82e1
    Modified Files:
    src/conio/ciolib.c ciolib.h win32gdi.c
    Log Message:
    Fix mouse in GDI mode.

    Add ciolib_ungetch_byte() which will *not* convert 0xe0 to a literal
    0xe0 when it ungets it.

    With kbwait(), in GDI mode, a single byte was read from the pipe, then
    passed to ungetch(). The mouse key is a two-byte sequence starting
    with 0xe0. It would read the 0xe0, then unget it which would end up
    doing hilarious things.

    No short wrapper or driver override for this function since it's just
    for this specific purpose.

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