https://gitlab.synchro.net/main/sbbs/-/commit/511a76aaddef0ab84fd6a0e3
Modified Files:
docs/v322_new.md exec/load/select_item.js exec/xtrn_sec.js
Log Message:
select_item.js: lightbar navigation of a menu file's @BAR items
When the menu file displayed in place of a list (the 'menu' option, e.g.
the xtrn_sec, xtrn<n>, text_sec and text<n> menus) has lightbar items
(@BAR codes), the arrow, Home and End keys now move the bar among them
and Enter chooses the highlighted one, via load/menubar.js. An item
returns what the user could type instead: an item number, the quit key
or one of the caller's command keys. Typed numbers and keys, and so
mouse clicks, are read at the prompt as before.
The bar starts on the item for the caller's default (opts.current), else
on the one the file names with @BARDEFAULT, else on its first item.
xtrn_sec.js passes the section or program last chosen as that default,
so the bar returns to it when a menu is redisplayed. Enter at a section
menu file with lightbar items enters the highlighted section; without
them it still quits.
Co-Authored-By: Claude Fable 5.2 <
noreply@anthropic.com>
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net