https://gitlab.synchro.net/main/sbbs/-/commit/7c603720d0f68d9328bda8db
Modified Files:
docs/v322_new.md exec/privatemsg.js sbbsimsg.js src/sbbs3/chat.cpp getkey.cpp inkey.cpp sbbs.h
Log Message:
Ctrl-P and InterBBS prompts are lightbars
The private message (Ctrl-P) and InterBBS prompts read keys with inkey()
and a timeout, to show incoming messages while waiting, so the K_LIGHTBAR
mode of getkey() never reached them and their command words couldn't be selected with the arrow keys.
inkey() now supports K_LIGHTBAR too: the [default] word is highlighted,
Left and Right move the selection (returning no input), and Enter chooses
the selected word. getkey() leaves the flag off when it calls inkey(), so
the keys aren't handled twice. privatemsg.js, sbbsimsg.js and the
built-in Ctrl-P prompt (no privatemsg module) use it, and the InterBBS
prompt's Quit, what Enter does there, is now in brackets.
Co-Authored-By: Claude Opus 5.5 <
noreply@anthropic.com>
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net