https://gitlab.synchro.net/main/sbbs/-/commit/0a130d7a0dd0706247f2e9d4
Modified Files:
docs/v322_new.md exec/load/menubar.js exec/tests/atcodes/lightbars.js src/sbbs3/js_console.cpp putmsg.cpp terminal.cpp terminal.h
Log Message:
@BARDEFAULT:cmd@: let a display file name its first-highlighted item
A lightbar menu always started on the first item in file order unless
the script displaying it passed a command to MenuBar(), so a sysop
editing only the menu file had no say in it.
The new code displays nothing and is reported to scripts as the
read-only console.bar_default (an empty string when the file has none).
It takes the same C-escapes as @BAR:cmd@ and is forgotten with the
other lightbar state when the hot-spots are cleared.
load/menubar.js uses it only when the script gave MenuBar() no starting
item: the user's last selection and an explicit argument (including
false, for no highlight) still take precedence, and a command matching
no item leaves the first one highlighted.
Co-Authored-By: Claude Fable 5.2 <
noreply@anthropic.com>
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net