• src/sbbs3/inkey.cpp js_console.cpp sbbs.h sbbsdefs.h

    From Rob Swindell@VERT to Git commit to main/sbbs/master on Thu Jan 21 13:02:43 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/bec4667e2536a5c5dca0cf2b
    Modified Files:
    src/sbbs3/inkey.cpp js_console.cpp sbbs.h sbbsdefs.h
    Log Message:
    Optionally distinguish between timeout and NUL inkey() result

    Some terminals can send NUL (ASCII 0), e.g. hitting Ctrl-Space in Apple iTerm. Allow users of inkey() (in C++ or JS) to optionally detect the difference by specifying the K_NUL mode flag. In JS, console.inkey() will return null upon timeout (rather than "") when the K_NUL mode flag is used and return an empty string ("") upon receipt of NUL (ASCII 0).

    The default is the previous behavior where a timeout and the receipt of a NUL character appear the same to the caller of inkey().

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