• mqtt_spy.js: modifications to avoid left over colour attribs and addre

    From Keyop Troy@1:103/705 to GitLab issue in main/sbbs on Thu Nov 12 10:50:51 2026
    open https://gitlab.synchro.net/main/sbbs/-/work_items/1343

    I'm using mqtt_spy.js to monitor a node and notice that if a user drops mid session, whatever colour attribs were being used (e.g. by chat or a game) are left in situ causing some odd colour effects when mqtt_spy goes back to "New node status:" mode.

    Could we add something to reset the attribs before printing the "New node status"?

    Also could we also add a feature to stop the JS timeout for use of this script. I currently have:

    ```
    js.on_exit("js.counter = 0");
    js.time_limit=0;
    js.time_out=0;
    ```

    in my "../mods" script to stop the timeout but there might be a better solution for everyone.
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Thu Nov 12 11:06:09 2026
    https://gitlab.synchro.net/main/sbbs/-/work_items/1343#note_10926

    Running `jsexec -t0 ...` can replace your `js.time_limit=0` modification - but adding that to mqtt_spy isn't a bad idea.

    `js.time_out=0` shouldn't accomplish anything (since `js.time_out` isn't a thing).

    I'm not clear why you're resetting `js.counter` upon exit.
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Fri Nov 13 16:12:15 2026
    https://gitlab.synchro.net/main/sbbs/-/work_items/1343#note_10927

    Keyop is running via jsexec, so will need to send a raw ANSI escape sequence to reset the attributes when run in that mode and use the appropriate abstraction (Ctrl-A code or setting console.attributes directly) when run in the terminal server.
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab issue in main/sbbs on Fri Nov 13 20:36:24 2026
    close https://gitlab.synchro.net/main/sbbs/-/work_items/1343
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)