Subj : Re: Menu Polling/Defeat Pause To : Digital Man From : Corvey Date : Wed Jan 18 2006 01:04 am > 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 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? > > 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 and > print that number, detect a carriage-return ('\r') and continue on the script. > If you have no programming knowledge or patience to learn, then this task is > probably beyond your abilities. > > digital man Yes, probably beyond my abilities.. It's difficult stuff for me comprehend everything about java, c++. etc, but I've pick up bits and pieces along the way and still know very little, but with a desire to learn more. May I suggest you incorporate this into telnet? It's the main ingredient to make the BBS totally real-time. I would appreciate you considering making this prompt a reality.. Thanks, Corvey .