Door Games Unlimited

Welcome, Guest.


Subject: JavaScript errors disable screen pause Date: Sun Nov 09 2014 16:10:23
From: Digital Man To: Nightfox

  Re: JavaScript errors disable screen pause
  By: Nightfox to Digital Man on Sun Nov 09 2014 01:45 pm

 > Hi DM,
 >
 > While logged into my BBS, I've noticed that if there is a runtime error in
 > a JavaScript module that I run, my screen no longer pauses after each
 > screenful of text for the remainder of my telnet session.  My user setting
 > for screen pause is still enabled though.  This affects things like reading
 > messages, etc., which would normally pause after each screenful of text.

What you're describing are the effects of the SS_PAUSEOFF flag being set in 
bbs.sys_status.

If the script you're running sets this flag (disbling the auto screen pause), 
it must unset it when it exits or crashes. You should be able to do this with 
the js.on_exit() method which executes when the script terminates, if if the 
script terminates due to a runtime error.


                                            digital man

Synchronet "Real Fact" #45:
Synchronet External X/Y/ZMODEM protocol driver (SEXYZ) was introduced in 2005.
Norco, CA WX: 77.4°F, 33.0% humidity, 10 mph ESE wind, 0.00 inches rain/24hrs

---
 ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ telnet://vert.synchro.net

Previous Message       Next Message
In Reply To: JavaScript errors disable screen pause (Nightfox)
Replies: JavaScript errors disable screen pause (Nightfox)