Subj : Help with a JavaScript game
To : Zarakava
From : Nightfox
Date : Sun Aug 14 2011 10:37 pm
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..
Nightfox
---
� Synchronet � Digital Distortion BBS - digdist.bbsindex.com