Subj : Help with a JavaScript game
To   : Zarakava
From : Nightfox
Date : Sun Aug 14 2011 10:42 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?

I think I read your email too quickly before I replied last time..  The mode
setting I found turns off printing a CR/LF at the end.

Is it always outputting a pause for you, or does it only do it at the end of a
screenful of text, for instance?

Looking through sbbsdefs.js, I also see these modes that can be used for
bbs.sys_status:
var   SS_PAUSEOFF=(1<<18);/* Pause off, overriding user default*/
And for use with user.settings:
var   USER_PAUSE=(1<<4);/* Pause on every screen full*/
And for putmsg and printfile:
var   P_NOPAUSE=(1<<4);/* Disable screen pause*/

If it's a screenful pause you're seeing, perhaps you can temporarily set one of
those modes to get around the issue.

But I don't know for sure..

Nightfox

---
� Synchronet � Digital Distortion BBS - digdist.bbsindex.com