• src/sbbs3/js_console.cpp

    From rswindell@VERT to CVS commit on Friday, July 26, 2019 15:28:49
    src/sbbs3 js_console.cpp 1.132 1.133
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv8545

    Modified Files:
    js_console.cpp
    Log Message:
    Added support to console.print() for an optional P_* mode argument. Must
    be called as console.print(string, number), the number will be interpretted
    as the P_* mode flags value. Otherwise, all arguments are converted to strings and printed (as before).
    If anyone was calling console.print(string, number), they will get different behavior now. I couldn't find any evidence of anyone using this syntax for console.print(), so I think this should be okay.
    Only a limited set of P_* flags are supported (e.g. P_PETSCII, P_UTF8) - far fewer than console.putmsg(), but console.putmsg() is much more heavy weight
    and supports a lot more "features" likely to interfere with the expected user output. In general, try to use console.putmsg() only when printing multi-line text strings or when @-code expansion is needed. Otherwise, console.print()
    is usually better.



    ---
    þ 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, February 16, 2024 18:17:02
    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 Saturday, March 23, 2024 17:11:55
    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