Re: Message Area Menu
By: Nightfox to Vela025 on Thu Mar 06 2025 02:09 pm
Re: Message Area Menu
By: Vela025 to Nightfox on Wed Mar 05 2025 08:09 pm
Thanks both, it took me a while to figure out exactly how I wanted it but your input has been incredibly helpful. I decided to go for the adding an extra section to default.js and as suggested used the existing const main_menu= { section to help model the new const msg_menu = { section. It seems to be working great, however for node_action: in the msg_menu section I have left this as NODE_MAIN, but notice in file it is NODE_XFER. Is it ok to leave this as NODE_MAIN or should I look in to how to create a NODE_MSG (or similar).
I think the node_action helps mainly with logging, as it would point out what the user is doing (I don't remember offhand if there are other ways it helps). In my command shell, I set node_action to NODE_RMSG (reading messages) in my message menu, but you could keep it as NODE_MAIN if you wanted to, I suppose.
The node action is used for node status displays (e.g. by other users, MQTT clients, monitoring programs like sbbsctrl):
https://wiki.synchro.net/ref:node_status
--
digital man (rob)
Steven Wright quote #15:
Depression is merely anger without enthusiasm.
Norco, CA WX: 42.9�F, 91.0% humidity, 2 mph WNW wind, 0.17 inches rain/24hrs --- SBBSecho 3.23-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)