https://gitlab.synchro.net/main/sbbs/-/commit/4e0745220bebd5438c87dd71
Modified Files:
docs/v322_new.md exec/load/menubar.js src/sbbs3/js_console.cpp putmsg.cpp terminal.cpp terminal.h
Log Message:
@BARATTR: optional second attribute, for a lightbar's command key
@BARATTR:<attr>:<key-attr>@ names, after the selected-item attribute, a foreground color for the command key of each lightbar item, so that a
menu whose items are whole words in one color (which makes the entire
word, first letter included, one selectable and clickable region) can
still show which letter is the key. @BARATTR::<key-attr>@ sets the key
color alone.
As with the selected-item attribute, the Terminal Server only records
the value, exposed to JavaScript as console.bar_hot_attr; menubar.js
does the drawing. It redisplays each unselected item with the first
occurrence of its command in the key color, over the item's own
background, when the menu is first displayed and whenever an item is deselected. A selected item is drawn entirely in the selected-item
attribute. Only single-character commands are colored.
Also: US spelling in two menubar.js comments.
Co-Authored-By: Claude Fable 5.2 <
noreply@anthropic.com>
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net