• USER_NOPAUSESPIN in user.settings

    From Nightfox@DIGDIST to All on Sat Apr 23 14:53:51 2016
    I have a JavaScript script where I'd like to check for the user's spin pause setting. I saw in sbbsdefs.js that USER_NOPAUSESPIN represents no spinning cursor at the pause prompt for user.settings. However, when I check for this, it seems it's always true, regardless of my spinning cursor setting. I've tried a simple test to ensure I'm correctly checking for it:

    if (user.settings & USER_NOPAUSESPIN)
    console.print("No spin pause");
    else
    console.print("Spin pause is enabled");

    Regardless of whether my spin pause is enabled or not, that code hits the "No spin pause" case.
    I've also tried the "if" test this way (which should be equivalent) with the same result:

    if ((user.settings & USER_NOPAUSESPIN) == USER_NOPAUSESPIN)
    console.print("No spin pause");
    else
    console.print("Spin pause is enabled");

    I'm not sure if I'm not checking it correctly or if it's a bug in Synchronet. I'm currently running Synchronet 3.17 for Windows built on January 3, 2016.

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man to Nightfox on Sun Apr 24 02:54:32 2016
    Re: USER_NOPAUSESPIN in user.settings
    By: Nightfox to All on Sat Apr 23 2016 02:53 pm

    I have a JavaScript script where I'd like to check for the user's spin pause setting. I saw in sbbsdefs.js that USER_NOPAUSESPIN represents no spinning cursor at the pause prompt for user.settings. However, when I check for this, it seems it's always true, regardless of my spinning cursor setting. I've tried a simple test to ensure I'm correctly checking for it:

    if (user.settings & USER_NOPAUSESPIN)
    console.print("No spin pause");
    else
    console.print("Spin pause is enabled");

    Regardless of whether my spin pause is enabled or not, that code hits the "No spin pause" case.
    I've also tried the "if" test this way (which should be equivalent) with the same result:

    if ((user.settings & USER_NOPAUSESPIN) == USER_NOPAUSESPIN)
    console.print("No spin pause");
    else
    console.print("Spin pause is enabled");

    I'm not sure if I'm not checking it correctly or if it's a bug in Synchronet. I'm currently running Synchronet 3.17 for Windows built on January 3, 2016.

    Perhaps you're confusing USER_NOPAUSESPIN for USER_SPIN? The USER_SPIN setting enables the spinning cursor at all input prompts. The USER_NOPAUSESPIN *disables* the spinning cursor at the pause prompt (only). One has no effect on the other.

    digital man

    Synchronet "Real Fact" #80:
    Vertrauen has had the FidoNet node number 1:103/705 since 1992.
    Norco, CA WX: 58.6°F, 60.0% humidity, 0 mph NNW wind, 0.00 inches rain/24hrs
  • From Nightfox@DIGDIST to Digital Man on Sun Apr 24 14:34:57 2016
    Re: USER_NOPAUSESPIN in user.settings
    By: Digital Man to Nightfox on Sun Apr 24 2016 02:54:32

    Perhaps you're confusing USER_NOPAUSESPIN for USER_SPIN? The USER_SPIN setting enables the spinning cursor at all input prompts. The USER_NOPAUSESPIN *disables* the spinning cursor at the pause prompt (only). One has no effect on the other.

    I'm not trying to enable/disable anything, I'm only trying to check to see if the user has one of those settings enabled. It looks like if I check for USER_SPIN, it works as expected.

    In the user settings screen, I only see one relevant setting, "Spinning Cursor". I don't see a separate setting for spinning cursor only at the pause prompt. Does USER_NOPAUSESPIN correspond to any of the user settings? Or is it only intended for JavaScript scripts to disable spinning at the pause prompt for some of the JS functions?

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man to Nightfox on Mon Apr 25 02:25:37 2016
    Re: USER_NOPAUSESPIN in user.settings
    By: Nightfox to Digital Man on Sun Apr 24 2016 02:34 pm

    Re: USER_NOPAUSESPIN in user.settings
    By: Digital Man to Nightfox on Sun Apr 24 2016 02:54:32

    Perhaps you're confusing USER_NOPAUSESPIN for USER_SPIN? The USER_SPIN setting enables the spinning cursor at all input prompts. The USER_NOPAUSESPIN *disables* the spinning cursor at the pause prompt (only). One has no effect on the other.

    I'm not trying to enable/disable anything, I'm only trying to check to see if the user has one of those settings enabled. It looks like if I check for USER_SPIN, it works as expected.

    In the user settings screen, I only see one relevant setting, "Spinning Cursor". I don't see a separate setting for spinning cursor only at the pause prompt. Does USER_NOPAUSESPIN correspond to any of the user settings?

    Yes, example:

    [S] Spinning Cursor : On
    ...
    Which or [Q]uit: S
    [√] Spinning cursor on pause prompts? [Yes] No

    Or is it only intended for JavaScript scripts to disable spinning at the pause prompt for some of the JS functions?

    It's user toggleable.

    digital man

    Synchronet "Real Fact" #2:
    Synchronet version 2 was written in C and 8086 assembly programming languages. Norco, CA WX: 56.0°F, 82.0% humidity, 4 mph SE wind, 0.00 inches rain/24hrs