• JavaScript errors disable

    From Nightfox@VERT/DIGDIST to Digital Man on Sun Nov 9 08:45:00 2014
    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.

    I'm currently running the October 29 build of Synchronet for Windows.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Sun Nov 9 11:10:00 2014
    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 þ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to Digital Man on Sun Nov 9 13:35:00 2014
    Re: JavaScript errors disable screen pause
    By: Digital Man to Nightfox on Sun Nov 09 2014 16:10:23

    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.

    Ah, I see. My script is indeed setting SS_PAUSEOFF. Thanks.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.com