• src/sbbs3/js_console.cpp

    From rswindell@VERT to CVS commit on Sunday, March 01, 2020 17:39:26
    src/sbbs3 js_console.cpp 1.142 1.143
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv733

    Modified Files:
    js_console.cpp
    Log Message:
    A couple JSDOCS method description updates.


    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thursday, March 19, 2020 00:15:17
    src/sbbs3 js_console.cpp 1.143 1.144
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv14783

    Modified Files:
    js_console.cpp
    Log Message:
    console.getkeys() had a couple of bugs:
    - you couldn't specify a maxnum value of 0 (it would get overridden to ~0)
    - you couldn't specify a mode argument value without also specifying a non-zero
    maxnum value



    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Monday, April 06, 2020 12:10:12
    src/sbbs3 js_console.cpp 1.144 1.145
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv30015

    Modified Files:
    js_console.cpp
    Log Message:
    Fix bug introduced in rev 1.142 with the additional/optional arguments to the yesno() and noyes() methods:
    We need to check the argument count before using the second (optional)
    argument or else it has some garbage/left-over value from some previous JS function call. And no, just increasing the argument count in the method table isn't enough. :-(
    Reported by echicken and DaiTengu, thanks!


    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to sbbs/master on Sunday, September 13, 2020 11:37:10
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/ac3d31739f4048706ec50148
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Fixes to printfile and printtail methods

    Throw an exception if no filename is specified (rather than just abort the script by returning JS_FALSE).

    The return value is supposed to be a bool, not an int (JS_TRUE != JSVAL_TRUE).

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows@VERT to Git commit to main/sbbs/m on Tuesday, August 06, 2024 18:11:00
    https://gitlab.synchro.net/main/sbbs/-/commit/049c18c41a02cf6a6934ecd5
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Fix potential null object pointer passed to JS_GetProperty in js_gotoxy()

    I'm not sure under what script conditions this could happen, but apparently Nelgin was able to produce this null pointer deref (and segfault) using DDMsgReader. This should fix issue #769

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Tuesday, August 06, 2024 18:27:00
    https://gitlab.synchro.net/main/sbbs/-/commit/a2d6dc86b0b09664a1782cb6
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Better invalid argument reporting (null object) from js_gotoxy()

    The calling script will still terminate if it does this, but at least the caller will get a useful JS exception.

    Related to fix for issue #769

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Friday, December 06, 2024 17:38:28
    https://gitlab.synchro.net/main/sbbs/-/commit/097e0162ab78524539fea92c
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Parse console.inkey() timeout parameter as an *unsigned* integer

    A negative timeout value doesn't make sense and this will extend the legal (positive) range of this parameter value.

    Hopefully this will help eliminate these errors I get often:
    dd_lightbar_menu.js line 4041: Error: can't convert inputTimeoutMS to an
    integer

    But if there's some way that this parameter value is even out of the range of an unsigned 32-bit value (4294967295) then this error could still happen. Unfortunately, the JS exception doesn't report the value that failed to convert.

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Saturday, January 25, 2025 17:23:49
    https://gitlab.synchro.net/main/sbbs/-/commit/484706a8ba4fd641267db20a
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Add getkey_inactivity_warning property (alias: inactivity warning)

    Configured duration in seconds before warning about pending disconnection due to
    user/keyboard inactivity (or 0 if disabled).

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Saturday, January 25, 2025 17:49:48
    https://gitlab.synchro.net/main/sbbs/-/commit/4e87ccf78f8d10121d96492b
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Resolve MSVC warning

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Sunday, March 02, 2025 20:44:35
    https://gitlab.synchro.net/main/sbbs/-/commit/db8708b2d9c285a40d79eeda
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Add console.cleartoeos() method

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