• Write

    From DesotoFireflite@VERT/VALHALLA to All on Sat Mar 26 14:10:47 2022
    Is there a way to use the "write" command in js without it using a pause. All I want to do is display a one line comment momentarly without the user having to hit enter. Thanks in advance.

    SysOp: C.G. Learn, AKA: DesotoFireflite
    Valhalla Home Services! - (Synchronet) - bbs.valhallabbs.com:23
    A Gamers Paradise - Over 250 Registered Online Game Doors!

    --- Don't eat the yellow snow!
    þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.net
  • From Nightfox@VERT/DIGDIST to DesotoFireflite on Sat Mar 26 11:58:52 2022
    Re: Write
    By: DesotoFireflite to All on Sat Mar 26 2022 02:10 pm

    Is there a way to use the "write" command in js without it using a pause. All I want to do is display a one line comment momentarly without the user having to hit enter. Thanks in advance.

    If you want to have it wait momentarily without user input, you can call mswait and give it a number of milliseconds to pause.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to DesotoFireflite on Sat Mar 26 12:18:35 2022
    Re: Write
    By: DesotoFireflite to All on Sat Mar 26 2022 02:10 pm

    Is there a way to use the "write" command in js without it using a pause. All I want to do is display a one line comment momentarly without the user having to hit enter. Thanks in advance.

    I'm not clear what you're asking. Is the screen clearing immediately after or something happening to the text ("comment") your displaying to the user with write()?
    --
    digital man (rob)

    Sling Blade quote #7:
    Karl: I don't reckon the Good Lord would send anybody like you to Hades.
    Norco, CA WX: 74.7øF, 44.0% humidity, 9 mph S wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Andre@VERT/RDOMENTR to Digital Man on Sat Mar 26 16:39:02 2022
    Re: Write
    By: Digital Man to DesotoFireflite on Sat Mar 26 2022 12:18 pm

    I'm not clear what you're asking.

    My template for when people say something isn't working:

    1. What are you doing?
    2. What do you expect to happen?
    3. What is actually happening?


    - Andre

    ---
    þ Synchronet þ Radio Mentor BBS - bbs.radiomentor.org
  • From DesotoFireflite@VERT/VALHALLA to Digital Man on Sat Mar 26 17:34:49 2022
    Re: Write
    By: Digital Man to DesotoFireflite on Sat Mar 26 2022 12:18 pm

    Re: Write
    By: DesotoFireflite to All on Sat Mar 26 2022 02:10 pm

    Is there a way to use the "write" command in js without it using a
    pause. All I want to do is display a one line comment momentarly
    without the user having to hit enter. Thanks in advance.

    I'm not clear what you're asking. Is the screen clearing immediately after or something happening to the text ("comment") your displaying to the user with write()?

    Everytime I call write, it will display the line, then the pause prompt will follow. I want it so no user activity is required, just show the message. I might us mswait to make it stay there on the screen for a few seconds.

    write("\r\n\1h\1rNumber Pad Required!\r\n\r\n");

    SysOp: C.G. Learn, AKA: DesotoFireflite
    Valhalla Home Services! - (Synchronet) - bbs.valhallabbs.com:23
    A Gamers Paradise - Over 250 Registered Online Game Doors!

    --- CAT (n.), Furry keyboard cover.
    þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.net
  • From DesotoFireflite@VERT/VALHALLA to Nightfox on Sat Mar 26 17:37:07 2022
    Re: Write
    By: Nightfox to DesotoFireflite on Sat Mar 26 2022 11:58 am

    Re: Write
    By: DesotoFireflite to All on Sat Mar 26 2022 02:10 pm

    Is there a way to use the "write" command in js without it using a
    pause. All I want to do is display a one line comment momentarly
    without the user having to hit enter. Thanks in advance.

    If you want to have it wait momentarily without user input, you can call mswait and give it a number of milliseconds to pause.

    so just adding the mswait command with the milliseconds will suppress the pause prompt. I'll give it a shot. I've only used mswait one other time, so I wasn't aware. Thanks

    SysOp: C.G. Learn, AKA: DesotoFireflite
    Valhalla Home Services! - (Synchronet) - bbs.valhallabbs.com:23
    A Gamers Paradise - Over 250 Registered Online Game Doors!

    --- Don't eat the yellow snow!
    þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.net
  • From Digital Man@VERT to DesotoFireflite on Sat Mar 26 16:50:49 2022
    Re: Write
    By: DesotoFireflite to Digital Man on Sat Mar 26 2022 05:34 pm

    Re: Write
    By: Digital Man to DesotoFireflite on Sat Mar 26 2022 12:18 pm

    Re: Write
    By: DesotoFireflite to All on Sat Mar 26 2022 02:10 pm

    Is there a way to use the "write" command in js without it using a
    pause. All I want to do is display a one line comment momentarly
    without the user having to hit enter. Thanks in advance.

    I'm not clear what you're asking. Is the screen clearing immediately after or something happening to the text ("comment") your displaying to the user with write()?

    Everytime I call write, it will display the line, then the pause prompt will follow.

    Most likely, that pause prompt is *not* because of the write() call but rather because your script has stopped executing and the user is returning to a menu that is displaying a menu with a clear-screen sequence or you script has a clear-screen sequence in (e.g. console.clear()) or is displaying a file that has a clear-screen sequence in it. The write() isn't the issue here.

    I want it so no user activity is required, just show the message. I
    might us mswait to make it stay there on the screen for a few seconds.

    write("\r\n\1h\1rNumber Pad Required!\r\n\r\n");

    And then what happens after that? It's *that* that is causing the screen pause. --
    digital man (rob)

    Breaking Bad quote #16:
    Thinking Operation Breath Mint evertime you and me are on a stakeout together. Norco, CA WX: 78.1øF, 39.0% humidity, 11 mph SSE wind, 0.00 inches rain/24hrs ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to DesotoFireflite on Sat Mar 26 16:52:19 2022
    Re: Write
    By: DesotoFireflite to Nightfox on Sat Mar 26 2022 05:37 pm

    Re: Write
    By: Nightfox to DesotoFireflite on Sat Mar 26 2022 11:58 am

    Re: Write
    By: DesotoFireflite to All on Sat Mar 26 2022 02:10 pm

    Is there a way to use the "write" command in js without it using a
    pause. All I want to do is display a one line comment momentarly
    without the user having to hit enter. Thanks in advance.

    If you want to have it wait momentarily without user input, you can call mswait and give it a number of milliseconds to pause.

    so just adding the mswait command with the milliseconds will suppress the pause prompt.

    No, an mswait() call will not suppress a pause prompt.

    The pause prompt is happening because there is a screen clear or scroll and there is unacknowledged/read text on the user's screen. Adding an mswait() call isn't going to change that.
    --
    digital man (rob)

    Rush quote #55:
    He'd like a lover's wings to fly on, to a tropic isle of Avalon .. Digital Man Norco, CA WX: 78.1øF, 39.0% humidity, 11 mph SSE wind, 0.00 inches rain/24hrs ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to DesotoFireflite on Sat Mar 26 17:34:52 2022
    Re: Write
    By: DesotoFireflite to Nightfox on Sat Mar 26 2022 05:37 pm

    Is there a way to use the "write" command in js without it using a
    pause. All I want to do is display a one line comment momentarly
    without the user having to hit enter. Thanks in advance.

    If you want to have it wait momentarily without user input, you can
    call mswait and give it a number of milliseconds to pause.

    so just adding the mswait command with the milliseconds will suppress the pause prompt. I'll give it a shot. I've only used mswait one other time, so I wasn't aware. Thanks

    mswait() won't suppress any pause prompts; mswait() simply delays for a moment and then lets the script continue on.
    I might be a little confused. What pause are you seeing that you need to suppress?
    I've used write() before and hadn't necessarily seen it cause any pause prompts where the user had to input anything. If you're seeing such a pause prompt, I'm wondering if it might be because it's automatically pausing for input after a screenful of information, perhaps?

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From DesotoFireflite@VERT/VALHALLA to Digital Man on Sun Mar 27 08:11:50 2022
    Re: Write
    By: Digital Man to DesotoFireflite on Sat Mar 26 2022 04:50 pm

    Re: Write
    By: Digital Man to DesotoFireflite on Sat Mar 26 2022 12:18 pm

    Re: Write
    By: DesotoFireflite to All on Sat Mar 26 2022 02:10 pm

    Is there a way to use the "write" command in js without it using a
    pause. All I want to do is display a one line comment momentarly
    without the user having to hit enter. Thanks in advance.

    I'm not clear what you're asking. Is the screen clearing
    immediately after or something happening to the text ("comment")
    your displaying to the user with write()?

    Everytime I call write, it will display the line, then the pause
    prompt will follow.

    Most likely, that pause prompt is *not* because of the write() call but rather because your script has stopped executing and the user is returning to a menu that is displaying a menu with a clear-screen sequence or you script has a clear-screen sequence in (e.g. console.clear()) or is displaying a file that has a clear-screen sequence in it. The write() isn't the issue here.

    I want it so no user activity is required, just show the message. I
    might us mswait to make it stay there on the screen for a few seconds.

    write("\r\n\1h\1rNumber Pad Required!\r\n\r\n");

    And then what happens after that? It's *that* that is causing the screen pause.

    OK, cool deal, I fully undersatnd. I just got into programing with js, and I'm still learning. It's a big learning curve to me after doing it all with baja. Thanks for the assist.

    SysOp: C.G. Learn, AKA: DesotoFireflite
    Valhalla Home Services! - (Synchronet) - bbs.valhallabbs.com:23
    A Gamers Paradise - Over 250 Registered Online Game Doors!

    --- CAT (n.), Furry keyboard cover.
    þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.net
  • From DesotoFireflite@VERT/VALHALLA to Nightfox on Sun Mar 27 08:19:57 2022
    Re: Write
    By: Nightfox to DesotoFireflite on Sat Mar 26 2022 05:34 pm

    Re: Write
    By: DesotoFireflite to Nightfox on Sat Mar 26 2022 05:37 pm

    so just adding the mswait command with the milliseconds will
    suppress the pause prompt. I'll give it a shot. I've only used
    mswait one other time, so I wasn't aware. Thanks

    mswait() won't suppress any pause prompts; mswait() simply delays for a moment and then lets the script continue on.
    I might be a little confused. What pause are you seeing that you need to suppress?
    I've used write() before and hadn't necessarily seen it cause any pause prompts where the user had to input anything. If you're seeing such a pause prompt, I'm wondering if it might be because it's automatically pausing for input after a screenful of information, perhaps?

    I think Rob hit the nail on the head. I was using a console clear command afterwords. I am going to tweak it a bit. Everytime I've ever used the write command, I get the pause prompt, and not till today did I realize the commands that I put after that would cause the issues I was having. Thanks for the assist.

    SysOp: C.G. Learn, AKA: DesotoFireflite
    Valhalla Home Services! - (Synchronet) - bbs.valhallabbs.com:23
    A Gamers Paradise - Over 250 Registered Online Game Doors!

    --- Don't eat the yellow snow!
    þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.net
  • From Digital Man@VERT to DesotoFireflite on Sun Mar 27 11:03:33 2022
    Re: Write
    By: DesotoFireflite to Digital Man on Sun Mar 27 2022 08:11 am

    And then what happens after that? It's *that* that is causing the screen pause.

    OK, cool deal, I fully undersatnd. I just got into programing with js, and I'm still learning. It's a big learning curve to me after doing it all with baja. Thanks for the assist.

    No problem. You'd have exact same auto-pause behavior using Baja functions.
    --
    digital man (rob)

    Synchronet "Real Fact" #39:
    Synchronet first supported Windows NT v6.x (a.k.a. Vista/Win7) w/v3.14a (2006) Norco, CA WX: 60.0øF, 76.0% humidity, 0 mph E wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Ragnarok@VERT/DOCKSUD to DesotoFireflite on Wed Mar 30 19:17:56 2022
    El 26/3/22 a las 18:34, DesotoFireflite escribi¢:
    Re: Write
    By: Digital Man to DesotoFireflite on Sat Mar 26 2022 12:18 pm

    DM> Re: Write
    DM> By: DesotoFireflite to All on Sat Mar 26 2022 02:10 pm

    >> Is there a way to use the "write" command in js without it using a
    >> pause. All I want to do is display a one line comment momentarly
    >> without the user having to hit enter. Thanks in advance.

    DM> I'm not clear what you're asking. Is the screen clearing immediately after
    DM> or something happening to the text ("comment") your displaying to the user
    DM> with write()?

    Everytime I call write, it will display the line, then the pause prompt will follow. I want it so no user activity is required, just show the message. I might us mswait to make it stay there on the screen for a few seconds.

    write("\r\n\1h\1rNumber Pad Required!\r\n\r\n");

    maybe you have bad size defined at your terminal user settings

    ---
    þ Synchronet þ Dock Sud BBS TLD 24 HS - bbs.docksud.com.ar