• src/sbbs3/js_console.cpp

    From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Fri Dec 6 17:38:28 2024
    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.
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sat Jan 25 17:23:48 2025
    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).
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Sat Jan 25 17:49:48 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/4e87ccf78f8d10121d96492b
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Resolve MSVC warning
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Sun Mar 2 20:44:34 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/db8708b2d9c285a40d79eeda
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Add console.cleartoeos() method
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sat Sep 27 21:34:34 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/2287878bdfa06d542896ddac
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Remove misplaced property description added with Terminal abstraction

    commit 374282bf814d7db2537b6c53dad99d95de1907dd
    --- SBBSecho 3.29-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Sun Dec 14 17:43:10 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/910478e5f8f432fe280ccd0d
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    console.getstr() will treat max len < 0 the same as 0

    ... which means it'll default to a maxlen of 128

    Fix for issue #1032
    --- SBBSecho 3.33-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Sat Dec 27 01:17:56 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/5047306f0dd5ade95bdd7812
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Fix off-by-one bug in edit string length copy in console.getstr() method

    Bug introduced in commit 95596962fd27cb2d

    As noted in strlcpy man page: "a byte for the NUL should be included in size." --- SBBSecho 3.34-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Sat Jan 3 23:32:28 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/686f2418cb1532b4d38d6d13
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Expose the sbbs_t::uselect_count as console.uselect_count in JS

    It can be set, but only to values less than its current value.

    This is useful for tracking how many items were successfully added to a
    uselect list (considering filtering by ARS).
    --- SBBSecho 3.34-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Tue Feb 17 23:23:48 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/e62994f1451d761620278c03
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Fix wrong return type in uselect_items_getter()

    No warning in MSVC, Warning in GCC, error in clang. :-(
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Wed Feb 18 10:36:58 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/a14b0383dcc9a0045cddeac2
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Fix new (very small) memory leak when getting console.uselect_title

    Coverity CID 644273
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Wed Feb 18 20:22:44 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/4767109de0b904974c3c8826
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Clarify/update JSDOCS for console.uselect() method

    It wasn't clear the title and item needed to be a string (well, at least a non-number).
    Clarify the new properties mentioned were added in v3.21.
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on ChromeOS)@1:103/705 to Git commit to main/sbbs/master on Fri Feb 20 00:17:08 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/5487accf56b84b695a73c452
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Add JSDOCS descriptions of color_list and uselect_items properties
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Tue Mar 31 21:12:06 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/460361f2350c6acb713a9910
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Better argument validation and error reporting from console.gotoxy()

    e.g. console.gotoxy()
    Error: Insufficient Arguments (0 provided, a minimum of 1 expected)

    e.g. console.gotoxy(false)
    Error: console.gotoxy: invalid argument type (expected object or number-pair)

    e.g. console.gotoxy(0)
    Error: Insufficient Arguments (1 provided, a minimum of 2 expected)

    e.g. console.gotoxy({})
    Error: console.gotoxy: object argument 'x' property is an unexpected 'null' or 'undefined' value

    See issue #1107 for details
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)