DM > While sitting at the Ctrl-P prompt or the Inter-BBS prompt or while in DM > multi-node chat, instant messages and telegrams are received "instantl DM > Some
DM > 3rd party command shells implement constant polling of messages at all DM > prompts.
C > Ok, those prompt are what I like, how can I make the main menu and ga C > men
C > be "instantly" like the CTRL-P prompt?
DM > The main menu, it depends on which command shell you're using. Basical DM > you
DM > need an "inkey loop" instead of calling getkey. See the example in
DM > sbbsimsg.js.
DM > This same method can be applied to the prompts in exec/xtrn_sec.js
DM > (external programs section).
In sbbsimsg.js I see:
"key=console.inkey(K_UPPER, 500);"
but I'm not sure in where in xtrn_sec.js to place code to make it work.
I am noob, can you be more precise, from and where to place code to make thi work for me?
Re: Menu Polling/Defeat Pause
By: Corvey to Digital Man on Tue Jan 17 2006 04:46 am
DM > While sitting at the Ctrl-P prompt or the Inter-BBS prompt or whilein
DM > multi-node chat, instant messages and telegrams are received"instantl
DM > Someall
DM > 3rd party command shells implement constant polling of messages at
DM > prompts.
C > Ok, those prompt are what I like, how can I make the main menu andga
C > men
C > be "instantly" like the CTRL-P prompt?
DM > The main menu, it depends on which command shell you're using.Basical
DM > you
DM > need an "inkey loop" instead of calling getkey. See the example in DM > sbbsimsg.js.
DM > This same method can be applied to the prompts in exec/xtrn_sec.js DM > (external programs section).
In sbbsimsg.js I see:
"key=console.inkey(K_UPPER, 500);"
but I'm not sure in where in xtrn_sec.js to place code to make it work.
andI am noob, can you be more precise, from and where to place code to makethi
work for me?
The first step would be to replace the line "xtrn_section" with "exec ?xtrn_sec" in each of your command shell source files (exec/*.src) and recompile with Baja. Otherwise, the internal (native C) version of the external
program menu will be displayed instead of the exec/xtrn_sec.js module.
The second step would be to replace the 2 calls to console.getnum() in xtrn_sec.js with a loop, similar to that found in sbbsimsg.js:
while(bbs.online && !(bbs.sys_status&SS_ABORT)) {
key=console.inkey(K_UPPER, 500);
}
inside that loop you'll need to figure out what number the user is typing
print that number, detect a carriage-return ('\r') and continue on thescript.
If you have no programming knowledge or patience to learn, then this task is probably beyond your abilities.
digital man
Sysop: | fluid |
---|---|
Location: | wickliffe, ohio |
Users: | 5 |
Nodes: | 10 (0 / 10) |
Uptime: | 202:53:52 |
Calls: | 50 |
Files: | 15,838 |
Messages: | 50,758 |