• src/sbbs3/js_console.cpp

    From Rob Swindell (on Windows)@VERT to Git commit to main/sbbs/master on Sat Sep 16 23:34:48 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/f28c4bc94a89a0ea117481f8
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    If console.uselect() is called just with the number argument, use as default

    This allows the calling script to control what the default item is (when the user just hits enter), and not always the first item.

    Fixes issue #637

    ---
    þ 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 Sun Nov 12 16:47:50 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/7073d7201a654627af28ba67
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Rename console.crlf() to console.newline(), leaving crlf() as an alias

    Also use sbbs_t::newline() as the underlying implementation of console.newline() rather than a hard-coded CR/LF output loop.

    Added new console methods:
    cond_newline() - equivalent of Ctrl-A/
    cond_blankline() - equivlaent of Ctrl-A?
    cond_contline() - equivalent of Ctrl-A\

    ... so a JS script author doesn't have to output Ctrl-A codes to invoke those functions.

    ---
    þ 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 Sun Nov 12 16:47:50 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/84ccf98943ba61032776ad80
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Add console.linefeed() method - for completionism

    Seriously though, this doesn't always do the same thing as outputting a '\n' (e.g. in PETSCII mode, it sends a "cursor down" (17) control character).

    ---
    þ 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 Mon Nov 13 16:58:05 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/e8a97640db8c29acc9f89f65
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Fix g++ warnings in newly added functions

    ---
    þ 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 Fri Feb 16 18:17:02 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/862753d6c8fca2a71d1d000a
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    New console property: unicode_zerowidth (either 0 or 1)

    The column-width of UNICODE 'zero-width' character is now autodetected. This property allows one to use/change this autodetected width (normally 0 or 1).

    ---
    þ 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 Sat Mar 23 17:11:55 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/35666fb0ec7116fd0580da76
    Modified Files:
    src/sbbs3/js_console.cpp
    Log Message:
    Fix CID 479078: Resource leak (RESOURCE_LEAK)

    Passing an unparseable integer to console.editfile() could leak heap memory

    ---
    þ 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 Tue Aug 6 18:11:10 2024
    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 Linux)@VERT to Git commit to main/sbbs/master on Tue Aug 6 18:27:43 2024
    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