• src/sbbs3/getkey.cpp js_console.cpp sbbs.h

    From rswindell@VERT to CVS commit on Friday, May 03, 2019 20:59:31
    src/sbbs3 getkey.cpp 1.53 1.54 js_console.cpp 1.128 1.129 sbbs.h 1.516 1.517 Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv7463

    Modified Files:
    getkey.cpp js_console.cpp sbbs.h
    Log Message:
    Add an optional mode (K_* flag) argument to sbbs_t::getkeys() and by extension, JS's console.getkeys(). If no mode value is specified, K_UPPER is the default behavior (same as before). *.getkeys() currently only recognizes the following mode flags:
    - K_UPPER
    - K_NOECHO
    - K_NOCRLF

    K_NONE (0) is also a valid value.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sunday, March 01, 2020 15:55:47
    src/sbbs3 getkey.cpp 1.57 1.58 js_console.cpp 1.141 1.142 sbbs.h 1.556 1.557 Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv11616

    Modified Files:
    getkey.cpp js_console.cpp sbbs.h
    Log Message:
    sbbs_t::yesno() and noyes() and their JS equivalents (console.yesno/noyes)
    now accept an optional print-mode (a.k.a. pmode) argument to provide more control over the printing that happens in these functions/methods.
    The immediate use is for P_NOCRLF to stop the newline from being printed
    after a yes or no response (e.g. in a full-screen UI), but there could be other uses.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thursday, May 07, 2020 23:04:56
    src/sbbs3 getkey.cpp 1.61 1.62 js_console.cpp 1.148 1.149 sbbs.h 1.566 1.567 Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv28923

    Modified Files:
    getkey.cpp js_console.cpp sbbs.h
    Log Message:
    Add sbbs_t::keybuf_space() and keybuf_level()
    and JS console.keyboard_buffer_space() and keyboard_buffer_level()
    ... for tracking the number of character spaces used and available in the the (unget)keyboard input buffer.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (in GitKraken)@VERT to Git commit to main/sbbs/master on Monday, March 13, 2023 18:31:32
    https://gitlab.synchro.net/main/sbbs/-/commit/818005a0ecbe3972cf246538
    Modified Files:
    src/sbbs3/getkey.cpp js_console.cpp sbbs.h
    Log Message:
    Enhance pause method flexibility (both C++ and JS)

    sbbs_t::pause() and JS console.pause()...
    now excepts an optional set_abort argument (default is true) which controls whether this method will set the global console-output aborted flag (sys_status&SS_ABORT in C++, console.aborted in JS) when the user hits the Quit or No key at the pause prompt.

    This method now returns a bool: false if the user entered No, Quit, or Ctrl-C at the pause prompt.

    Nothing makes use of either of these new pause() features yet, but its generally better to not set/rely on global state wherever possible.

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