With the console.inkey() command, no matter what the timeout, it always does console.pause() afterwards.
console.getkey() works fine, but I would really prefer to have it timeout, a I'm having a loop check some conditions every second. Is there a way to get read of that console.pause() after the inkey?
With the console.inkey() command, no matter what the timeout, it always does console.pause() afterwards.
console.getkey() works fine, but I would really prefer to have it timeout, a I'm having a loop check some conditions every second. Is there a way to get read of that console.pause() after the inkey?
Hello! I don't know if this'll get answered for a while, but no huge deal.
I'm working on programming a javascript/bbs door game, and it's going great up to one point.
With the console.inkey() command, no matter what the timeout, it always
does a console.pause() afterwards.
console.getkey() works fine, but I would really prefer to have it timeout, as I'm having a loop check some conditions every second. Is there a way to get read of that console.pause() after the inkey?
Re: Help with a JavaScript game
By: Zarakava to All on Sun Aug 14 2011 17:21:14
With the console.inkey() command, no matter what the timeout, it always does console.pause() afterwards.
console.getkey() works fine, but I would really prefer to have it timeout, a I'm having a loop check some conditions every second. Is
there a way to get read of that console.pause() after the inkey?
Looking at sbbsdefs.js, I see the following mode setting:
K_NOCRLF=(1<<9);/* Don't print CRLF after string input */
Have you tried specifying K_NOCRLF for the mode parameter of console.inkey()? I haven't tried that myself, but it sounds like that may
do what you want..
K_NOCRLF=(1<<9);/* Don't print CRLF after string input */
Display console.inkey() doesn't display anything, that mode flag would no effect.
I hadn't actually checked this in a bit, but the previous error was fixedIgnore this, I was using 3.13...
by a suggestion from echicken
console.line_counter=0;
New problem.
file.iniRemoveSection(1);
Is not working. Gives the error c:\sbbs\exec\timedEvents.js line 67: TypeError: file.iniRemoveSection is not a function.
File is Defined, as I used file.iniSetObject just a line before. Any
advice?
Sysop: | Ree |
---|---|
Location: | Toronto, ON |
Users: | 2 |
Nodes: | 10 (0 / 10) |
Uptime: | 115:52:36 |
Calls: | 375 |
Calls today: | 2 |
Files: | 2 |
Messages: | 38,886 |