• exec/tests/atcodes/lightbars.js

    From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Sat Nov 14 17:26:33 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/b46f09418f7d6d52c072938a
    Added Files:
    exec/tests/atcodes/lightbars.js
    Log Message:
    Add @-code tests for the lightbar codes

    exec/tests/atcodes/lightbars.js displays a line of lightbar items with console.putmsg() and checks what console.bars, console.bar_attr and console.bar_hot_attr report for:
    - @BAR:cmd@ ... @BAR@: command, position, width, starting attribute and
    source text; Ctrl-A codes inside the pair; multi-character and
    C-escaped commands; regions that share a command
    - the @[text]cmd@ shorthand, and that one with no command is not an item
    - @BARATTR@: one attribute, two, the command-key color alone, and the
    bare form
    - console.clear_hotspots() forgetting the items and both colors

    Unlike the other @-code tests it has to write to the terminal; each
    line it displays is erased again. The mouse hot-spot an item registers
    can't be read from a script and is not covered.

    Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

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