• Help, It's my fault this time

    From DesotoFireflite@VERT/VALHALLA to All on Thu Jul 14 02:23:59 2022
    Hi Rob

    I've been sucessfully using the below method for about 6 to 8 years to
    let the user choose which bbs of mine thay want to log into. No problems
    what so ever up till about 3 to 4 weeks ago. I changed around some
    security levels, and other things, and now when a user picks 2,3,4 in
    the SELECT.BUN, all they get is a simple message on the screen in the
    top left saying "Time's up." (Found It in Text.dat, 549 TimesUp)

    Bare in mind, selection "1" still works where you continue on to
    synchronet, and the "D" still works for disconnect.

    I'm thinking it's a security level issue, but for the like of
    me, I can't figure it out. Whatever is causing this started
    about 3 to 4 weeks ago. I'm assuming security level issues, but
    I can't figure, because at this point a user is not assigned,
    unless there is a default security in play till the actual user
    is assigned and logged in fully.

    as you see, the login.js runs the select.bin, and if the user
    selects to keep on with synchronet, they select "1" which will
    send them back to the login.js file. if they select 2,3,or 4,
    it send them by telgate to the other bbs, and when they hang up
    it closes out everything. if they select "D", it hangs up and
    closes out everything.

    Whatever is causing the issue, I'm sure it was me that caused it,
    just hope you know what started it screwing up after 6 years.

    Anyway, I've included the log file, and the two files I use for
    you to see. The log file snippet is from 7/6, but it's identicle
    to the others I've captured for the same issue.

    I'm using 7/14/2022's build. I decided to update in case it was
    a build issue. The build I was using was 5/18/22. both under
    windows 10 32 bit.

    Thanks in advance. Hope you can help me.

    -+- Log File ----

    7/6 01:58:33p Node 1 01:58p Wed Jul 06 2022 Node 1
    7/6 01:58:33p Node 1 Telnet <no name> [73.152.104.255]
    7/6 01:58:33p Node 1 received telnet window size: 80x24
    7/6 01:58:33p Node 1 received telnet terminal type: syncterm
    7/6 01:58:34p Node 1 received terminal auto-detection response: '\e[=67;84;101;114;109;1;312c\e[24;80R\e[7;4R'
    7/6 01:58:34p Node 1 received CTerm version report: 1.312
    7/6 01:58:34p Node 1 received CTerm version report: 1.312
    7/6 01:58:34p Node 1 received ANSI cursor position report [1]: 80x24
    7/6 01:58:34p Node 1 received ANSI cursor position report [2]: 4x7
    7/6 01:58:34p Node 1 auto-detected terminal type: 80x24 ANSI
    7/6 01:58:34p Node 1 terminal type: 80x24 syncterm
    7/6 01:58:34p Node 1 Executing external: *SELECT
    7/6 01:58:38p Node 1 Executing external: ?TELGATE valhalla.synchro.net:5023
    7/6 01:58:38p Node 1 Node 1 Telnet gate to valhalla.synchro.net port 5023 on socket 43248
    7/6 01:58:38p Node 1 Ran out of time
    7/6 01:58:38p Node 1 disconnecting client
    7/6 01:58:38p Node 1 passthru socket disconnected
    7/6 01:58:39p Node 1 input thread terminated (received 89 bytes in 7 blocks)
    7/6 01:58:39p Node 1 output thread terminated (sent 2764 bytes in 7 blocks, 394 average, 0 short)
    7/6 01:58:39p Node 1 Node 1 Telnet gate to valhalla.synchro.net finished
    7/6 01:58:39p Node 1 thread terminated (0 node threads remain, 10086 clients served)
    7/6 01:58:39p Node 1 JavaScript: Destroying context
    7/6 01:58:39p Node 1 JavaScript: Destroying runtime


    ---- LOGIN.JS -----

    // login.js

    // Login module for Synchronet BBS v3.1

    // $Id: login.js,v 1.21 2020/01/23 18:48:11 rswindell Exp $

    // Let User Decide Which BBS To Use!
    bbs.exec("*SELECT");
    console.printfile(system.text_dir+"log-in.msg");

    load("sbbsdefs.js");
    ----rest of login.js ----


    ---- Baja SELECT.BIN -----

    LOGOUT
    PAUSE_RESET

    !Include sbbsdefs.inc
    !Include nodedefs.inc
    !Include userdefs.inc

    COMPARE_USER_MISC UM_UPAUSE
    IF_TRUE
    TOGGLE_USER_MISC UM_UPAUSE
    END_IF

    # Set Node Status To Logging In!
    NODE_STATUS NODE_LOGON
    SYNC
    CLEAR_ABORT

    CLS
    PAUSE_RESET

    ----- Start Snippet, Built In Menu -----

    ----- End Of Snippet, Back To File ----
    # I took out the color codes and other codes in the print statement to simplify
    # it for this email

    PRINT "Please Select [1], [2], [3], [4] To Login, or [D] To Disconnect: " GETCMD "1234D^M"

    # Continue On To Synchronet
    COMPARE_KEY 1
    IF_TRUE
    COMPARE_USER_MISC UM_UPAUSE
    IF_FALSE
    TOGGLE_USER_MISC UM_UPAUSE
    END_IF
    END_IF
    END_IF
    END_CMD

    # Log On To GAP BBS
    COMPARE_KEY 2
    IF_TRUE
    PAUSE_RESET
    CLS
    EXEC ?TELGATE valhalla.synchro.net:24
    PAUSE_RESET
    CLS
    COMPARE_USER_MISC UM_UPAUSE
    IF_FALSE
    TOGGLE_USER_MISC UM_UPAUSE
    HANGUP
    END_IF
    END_IF
    END_CMD

    # Log On To RemoteAccess
    COMPARE_KEY 3
    IF_TRUE
    PAUSE_RESET
    CLS
    EXEC ?TELGATE valhalla.synchro.net:5023
    PAUSE_RESET
    CLS
    COMPARE_USER_MISC UM_UPAUSE
    IF_FALSE
    TOGGLE_USER_MISC UM_UPAUSE
    HANGUP
    END_IF
    END_IF
    END_CMD

    # Log On To DNDBBS
    COMPARE_KEY 4
    IF_TRUE
    PAUSE_RESET
    CLS
    EXEC ?TELGATE valhalla.synchro.net:26
    PAUSE_RESET
    CLS
    COMPARE_USER_MISC UM_UPAUSE
    IF_FALSE
    TOGGLE_USER_MISC UM_UPAUSE
    HANGUP
    END_IF
    END_IF
    END_CMD

    # Hang Up For Now, Called By Mistake
    COMPARE_KEY D
    IF_TRUE
    HANGUP
    END_IF
    END_IF
    END_CMD

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

    --- I'm so disorganized my keyboard isn't even in alphabetical order!
    þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.net
  • From MRO@VERT/BBSESINF to DesotoFireflite on Thu Jul 14 03:34:42 2022
    Re: Help, It's my fault this time
    By: DesotoFireflite to All on Thu Jul 14 2022 09:23 am

    Hi Rob

    I've been sucessfully using the below method for about 6 to 8 years to
    let the user choose which bbs of mine thay want to log into. No problems what so ever up till about 3 to 4 weeks ago. I changed around some
    security levels, and other things, and now when a user picks 2,3,4 in
    the SELECT.BUN, all they get is a simple message on the screen in the
    top left saying "Time's up." (Found It in Text.dat, 549 TimesUp)

    Bare in mind, selection "1" still works where you continue on to
    synchronet, and the "D" still works for disconnect.



    you have too many end_if's dude.

    when you use an end_if you are closing that command out.
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From DesotoFireflite@VERT/VALHALLA to MRO on Thu Jul 14 05:52:48 2022
    Re: Help, It's my fault this time
    By: MRO to DesotoFireflite on Thu Jul 14 2022 10:34 am

    By: DesotoFireflite to All on Thu Jul 14 2022 09:23 am
    I've been sucessfully using the below method for about 6 to 8 years to
    let the user choose which bbs of mine thay want to log into. No
    problems what so ever up till about 3 to 4 weeks ago. I changed around
    some security levels, and other things, and now when a user picks
    2,3,4 in the SELECT.BUN, all they get is a simple message on the
    screen in the top left saying "Time's up." (Found It in Text.dat, 549
    TimesUp)

    Bare in mind, selection "1" still works where you continue on to
    synchronet, and the "D" still works for disconnect.



    you have too many end_if's dude.

    when you use an end_if you are closing that command out.

    hmm, that's the way it's been for over 6 years, so I never questioned it. I'll fix that, but that shouldn't have caused the no time problem. That's the file you gave me a long time ago, and I've been using it like you gave me with the exception of me adding one more bbs, and the disconnect feature.

    Thank for the reply my friend.

    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 Thu Jul 14 04:20:07 2022
    Re: Help, It's my fault this time
    By: DesotoFireflite to All on Thu Jul 14 2022 09:23 am

    I've been sucessfully using the below method for about 6 to 8 years to
    let the user choose which bbs of mine thay want to log into. No problems what so ever up till about 3 to 4 weeks ago. I changed around some
    security levels, and other things, and now when a user picks 2,3,4 in
    the SELECT.BUN, all they get is a simple message on the screen in the
    top left saying "Time's up." (Found It in Text.dat, 549 TimesUp)

    Bare in mind, selection "1" still works where you continue on to
    synchronet, and the "D" still works for disconnect.

    I'm thinking it's a security level issue, but for the like of
    me, I can't figure it out. Whatever is causing this started
    about 3 to 4 weeks ago. I'm assuming security level issues, but
    I can't figure, because at this point a user is not assigned,
    unless there is a default security in play till the actual user
    is assigned and logged in fully.

    Check SCFG->System->Security Level Values->Level 0->Timer Per Day and Time Per Call. What are they set to?
    --
    digital man (rob)

    Synchronet "Real Fact" #120:
    Synchronet v2.10a for DOS was released on Feb 17, 1995 (5 months after v2.00g) Norco, CA WX: 78.3øF, 58.0% humidity, 5 mph S wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From DesotoFireflite@VERT/VALHALLA to Digital Man on Thu Jul 14 07:48:37 2022
    Re: Help, It's my fault this time
    By: Digital Man to DesotoFireflite on Thu Jul 14 2022 11:20 am

    Re: Help, It's my fault this time
    By: DesotoFireflite to All on Thu Jul 14 2022 09:23 am

    I've been sucessfully using the below method for about 6 to 8 years to
    let the user choose which bbs of mine thay want to log into. No
    problems what so ever up till about 3 to 4 weeks ago. I changed around
    some security levels, and other things, and now when a user picks
    2,3,4 in the SELECT.BUN, all they get is a simple message on the
    screen in the top left saying "Time's up." (Found It in Text.dat, 549
    TimesUp)

    Bare in mind, selection "1" still works where you continue on to
    synchronet, and the "D" still works for disconnect.

    I'm thinking it's a security level issue, but for the like of
    me, I can't figure it out. Whatever is causing this started
    about 3 to 4 weeks ago. I'm assuming security level issues, but
    I can't figure, because at this point a user is not assigned,
    unless there is a default security in play till the actual user
    is assigned and logged in fully.

    Check SCFG->System->Security Level Values->Level 0->Timer Per Day and Time Per Call. What are they set to?

    That was the golden ticket, both were set to "0". Everything is working great now, Thanks so much. I don't remember ever touching security level 0, but I must have. Anyway, Thanks Again.

    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 Rampage@VERT/SESTAR to DesotoFireflite on Fri Jul 15 21:40:38 2022
    Re: Help, It's my fault this time
    By: DesotoFireflite to All on Thu Jul 14 2022 09:23:59

    # Log On To GAP BBS
    COMPARE_KEY 2
    IF_TRUE
    PAUSE_RESET
    CLS
    EXEC ?TELGATE valhalla.synchro.net:24
    PAUSE_RESET
    CLS
    COMPARE_USER_MISC UM_UPAUSE
    IF_FALSE
    TOGGLE_USER_MISC UM_UPAUSE
    HANGUP
    END_IF
    END_IF
    END_CMD

    firstly, that indention formatting is hard to follow... i would do it like this for better visual flow

    COMPARE_KEY 2
    IF_TRUE
    PAUSE_RESET
    CLS
    EXEC ?TELGATE valhalla.synchro.net:24
    PAUSE_RESET
    CLS
    COMPARE_USER_MISC UM_UPAUSE
    IF_FALSE
    TOGGLE_USER_MISC UM_UPAUSE
    HANGUP
    END_IF
    END_IF
    END_CMD

    this makes the internal steps easier to see and you can easily see each IF matches with its END_IF... also, i use 2 spaces formatting because that's how i learned pascal... it is the formatting i use to this
    day unless the language requires specific formatting (eg: python)...

    reformatting this one immediately shows the mistake...

    # Hang Up For Now, Called By Mistake
    COMPARE_KEY D
    IF_TRUE
    HANGUP
    END_IF
    END_IF
    END_CMD

    COMPARE_KEY D
    IF_TRUE
    HANGUP
    END_IF
    # END_IF this line doesn't belong...
    END_CMD


    )\/(ark

    ---
    þ Synchronet þ The SouthEast Star Mail HUB - SESTAR
  • From DesotoFireflite@VERT/VALHALLA to Rampage on Fri Jul 15 23:29:52 2022
    Re: Help, It's my fault this time
    By: Rampage to DesotoFireflite on Sat Jul 16 2022 04:40 am

    Re: Help, It's my fault this time
    By: DesotoFireflite to All on Thu Jul 14 2022 09:23:59

    this makes the internal steps easier to see and you can easily see each IF matches with its END_IF... also, i use 2 spaces formatting because that's how i learned pascal... it is the formatting i use to this
    day unless the language requires specific formatting (eg: python)...

    reformatting this one immediately shows the mistake...

    # Hang Up For Now, Called By Mistake
    COMPARE_KEY D
    IF_TRUE
    HANGUP
    END_IF
    END_IF
    END_CMD

    COMPARE_KEY D
    IF_TRUE
    HANGUP
    END_IF
    # END_IF this line doesn't belong...
    END_CMD

    I understand fully what you are saying, and when MRO pointed this out the other day, I mad the changes. It was an old file, created years ago, when I was just starting to work with mods. The funny thing is, it worked, and worked well over the years, so I never looked at it again or gave it a second thought. I understand for every "if" statement, there needs to be a "end_if" statement, but it still trips me up at times.

    I've put baja aside for now, and started working in js, as it seems to be the more prudent thing to do these days, and maybe one day I will convert this into js, but for now, the baja file is performing very well.

    My problem, was due to the fact that I modified the security level "0", in my attempts to change some other features, and thoughts that security level "0" was not needed, and in fact, I broke the one thing that I depend on for my other systems.

    Thanks for the reply, and suggestions, as I do appreciate everything you said.

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

    --- Fartvergnugen: The pleasure of breaking wind.
    þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.net
  • From Tracker1@VERT/TRN to Rampage on Sat Jul 16 07:06:23 2022
    On 7/16/22 01:40, Rampage wrote:
    this makes the internal steps easier to see and you can easily see
    each IF matches with its END_IF... also, i use 2 spaces formatting
    because that's how i learned pascal... it is the formatting i use to
    this day unless the language requires specific formatting (eg:
    python)...

    reformatting this one immediately shows the mistake...

    Python community has pretty much settled on 2 spaces as well as a large portion of the open-source JS community... I preferred real tabs, but
    have long since lost that battle.

    I've change my editor defaults to UNIX "\n" line endings and two spaces
    for indentation.
    --
    Michael J. Ryan - tracker1@roughneckbbs.com
    ---
    ï¿­ Synchronet ï¿­ Roughneck BBS - roughneckbbs.com
  • From Tracker1@VERT/TRN to DesotoFireflite on Sat Jul 16 07:20:10 2022
    On 7/16/22 03:29, DesotoFireflite wrote:

    I've put baja aside for now, and started working in js, as it seems
    to be the more prudent thing to do these days...

    100% on that.. JavaScript is a more complex language, but also much more capable than BAJA. I find my biggest hurdles is the language has
    advanced a lot since the version used in SynchroNet and the style has
    changed even more so.

    There's a few points of JS code in the SynchroNet repository that make
    even configuring code linting and formatting is the experimental syntax
    for for-of expressions and getter/setter (iirc) were standardized
    differently.

    So would love to replace some of the for-of expressions with maybe
    lodash usage in the near term, check on getter/setter use, try to get
    close to full shims for ES5 in place and working, then do a sweep with a formatting tool, then configuring linting.

    Of course would have to start with an editor that doesn't auto-format
    first. Also, would want to switch any references with raw high
    character codes in JS files with escaped characters, so everything falls
    into the 7-bit space, so UTF8 can be assumed (supported as default for
    most editors).

    There does seem to be resistance to normalizing the JS itself... so
    unsure if any such efforts are even worth the time.

    That said, getting the codebase to shimmable ES5 standards would ease at
    least that part of migrating to a new JS engine.
    --
    Michael J. Ryan - tracker1@roughneckbbs.com
    ---
    ï¿­ Synchronet ï¿­ Roughneck BBS - roughneckbbs.com
  • From MRO@VERT/BBSESINF to Tracker1 on Sat Jul 16 14:06:12 2022
    Re: Re: Help, It's my fault this time
    By: Tracker1 to DesotoFireflite on Sat Jul 16 2022 02:20 pm

    On 7/16/22 03:29, DesotoFireflite wrote:

    I've put baja aside for now, and started working in js, as it seems
    to be the more prudent thing to do these days...

    100% on that.. JavaScript is a more complex language, but also much more capable than BAJA. I find my biggest hurdles is the language has
    advanced a lot since the version used in SynchroNet and the style has changed even more so.

    There's a few points of JS code in the SynchroNet repository that make
    even configuring code linting and formatting is the experimental syntax
    for for-of expressions and getter/setter (iirc) were standardized differently.

    So would love to replace some of the for-of expressions with maybe

    In most cases with baja you can accomplish the same bbs related things a lot easier with less code that javascript. I know you didn't get into baja so you have your bias. just like i have the opposite bias. with baja you have to get creative, but i've done a lot with it over the years. i even made a (large) rpg game in baja.

    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From DesotoFireflite@VERT/VALHALLA to Tracker1 on Sun Jul 17 01:34:14 2022
    Re: Re: Help, It's my fault this time
    By: Tracker1 to DesotoFireflite on Sat Jul 16 2022 02:20 pm

    100% on that.. JavaScript is a more complex language, but also much more capable than BAJA. I find my biggest hurdles is the language has
    advanced a lot since the version used in SynchroNet and the style has changed even more so.

    For now, Synchronet JavaScript Object Model Refernce has been my best friend in working with JS. as I understand Baja more, I often open the baja Documentation along side as the js model reference and compare the two, and it seem to help me along.

    There's a few points of JS code in the SynchroNet repository that make even configuring code linting and formatting is the experimental syntax for for-of expressions and getter/setter (iirc) were standardized differently.

    So far, all my experence in JS has been with Synchronet. When I work with code thats not specificly for Synchronet, I use google to help me solve most of my problems. I'm a complete newby when it comes to js, but I find it enjoyable to learn, and make things work on my system that make it different from others. So far, Rob and Eric have been a big help to me with my attempts.

    Of course would have to start with an editor that doesn't auto-format first. Also, would want to switch any references with raw high
    character codes in JS files with escaped characters, so everything falls into the 7-bit space, so UTF8 can be assumed (supported as default for most editors).

    Well, I use Visual Studio Code on my MacBook and Notepad++ on my Win10 machine, and it seems to help me a lot, as the different colors seem to help point out my mistakes. Hopefully one day, I will get to fully understand all the nuances in the code, and do something usefull with it.

    My bigest hurdle for now is my poor spelling, which accounts for a large amounts of my errors. I'm constantly going back and correcting things to make my attempts work. all an all, I'm happy with my progress, at least I can make things work now, and that was a milestone for me.

    Thanks for all your help, and discussion on this.

    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 Tracker1@VERT/TRN to DesotoFireflite on Thu Jul 21 07:42:39 2022
    On 7/17/22 05:34, DesotoFireflite wrote:

    Well, I use Visual Studio Code on my MacBook and Notepad++ on my Win10 machine, and it seems to help me a lot, as the different colors seem
    to help point out my mistakes. Hopefully one day, I will get to fully understand all the nuances in the code, and do something useful with
    it.

    ...

    Thanks for all your help, and discussion on this.

    I use VS Code as my primary editor.. for JS/TS I use the prettier
    extension and have it auto-format on save... I would suggest anything
    you do/modify, you copy it into your mods directory, instead of under
    exec/ that way when you upgrade, you can still reference the original.

    Keeping the JS Object model docs open is also really helpful. I've been
    a bit spoiled by a lot of the auto-complete options that you get when
    working in modern JS projects though. I started down the path of
    creating typescript types for the JS DOM, but didn't even complete it..
    and things change, not sure if there's a way to generate the appropriate
    hints from JSDoc (which is what iirc is used to generate the JS Object
    model doc).
    --
    Michael J. Ryan - tracker1@roughneckbbs.com
    ---
    ï¿­ Synchronet ï¿­ Roughneck BBS - roughneckbbs.com
  • From DesotoFireflite@VERT/VALHALLA to Tracker1 on Fri Jul 22 00:13:05 2022
    Re: Re: Help, It's my fault this time
    By: Tracker1 to DesotoFireflite on Thu Jul 21 2022 02:42 pm

    Well, I use Visual Studio Code on my MacBook and Notepad++ on my Win10
    machine, and it seems to help me a lot, as the different colors seem
    to help point out my mistakes. Hopefully one day, I will get to fully
    understand all the nuances in the code, and do something useful with
    it.

    ...

    Thanks for all your help, and discussion on this.

    I use VS Code as my primary editor.. for JS/TS I use the prettier extension and have it auto-format on save... I would suggest anything
    you do/modify, you copy it into your mods directory, instead of under exec/ that way when you upgrade, you can still reference the original.

    That's a given, never fool around with the original file in the exec directory. I like the fact that that some js files now use the modopts.ini for some of the changes we used to do to the file itself, but my mods directory seems to still have a lot of files in it.

    I love VS Code, but I've found out that it does alter the code sometimes if you use Ctrl-A codes in it, so you have to watch it. Notepad ++ doesn't change the contents of the file automaticly the way VS Code has done on occasion to me.

    Keeping the JS Object model docs open is also really helpful.

    Yes, it my stage of learning, the JS Object Model is my bible.


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

    ---
    þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.net
  • From Nightfox@VERT/DIGDIST to DesotoFireflite on Fri Jul 22 02:55:04 2022
    Re: Re: Help, It's my fault this time
    By: DesotoFireflite to Tracker1 on Fri Jul 22 2022 07:13 am

    I love VS Code, but I've found out that it does alter the code sometimes if you use Ctrl-A codes in it, so you have to watch it. Notepad ++ doesn't change the contents of the file automaticly the way VS Code has done on occasion to me.

    I started getting into the habit of using \x01 in any strings rather than using literal Ctrl-A codes. That can help prevent editors from changing those characters.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From DesotoFireflite@VERT/VALHALLA to Nightfox on Fri Jul 22 07:15:58 2022
    Re: Re: Help, It's my fault this time
    By: Nightfox to DesotoFireflite on Fri Jul 22 2022 09:55 am

    I love VS Code, but I've found out that it does alter the code
    sometimes if you use Ctrl-A codes in it, so you have to watch it.
    Notepad ++ doesn't change the contents of the file automaticly the
    way VS Code has done on occasion to me.

    I started getting into the habit of using \x01 in any strings rather than using literal Ctrl-A codes. That can help prevent editors from changing those characters.

    Yes, I'm starting to do that too, but some of the older ones I've done, still have the leteral code, and I don't see it till I edit it, then I have to go back and change it :)

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

    ---
    þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.net
  • From Nightfox@VERT/DIGDIST to DesotoFireflite on Fri Jul 22 06:46:37 2022
    Re: Re: Help, It's my fault this time
    By: DesotoFireflite to Nightfox on Fri Jul 22 2022 02:15 pm

    I started getting into the habit of using \x01 in any strings
    rather than using literal Ctrl-A codes. That can help prevent
    editors from changing those characters.

    Yes, I'm starting to do that too, but some of the older ones I've done, still have the leteral code, and I don't see it till I edit it, then I have to go back and change it :)

    Why not do a search & replace in your editor?
    One caveat that I've found though is that if you're using background codes (which are numeric), I ended up splitting the string; otherwise it would interpret the nex number wrong.

    For instance, if you want to output a blue background (Ctrl-A + 4), then I'd do this in JavaScript:

    "\x01" + "4";

    Otherwise, if you have "\x014", then that would be interpreted as hex number 14, which would be interpreted as a different character.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From DesotoFireflite@VERT/VALHALLA to Nightfox on Fri Jul 22 12:14:42 2022
    Re: Re: Help, It's my fault this time
    By: Nightfox to DesotoFireflite on Fri Jul 22 2022 01:46 pm

    Re: Re: Help, It's my fault this time
    By: DesotoFireflite to Nightfox on Fri Jul 22 2022 02:15 pm

    I started getting into the habit of using \x01 in any strings
    rather than using literal Ctrl-A codes. That can help prevent
    editors from changing those characters.

    Yes, I'm starting to do that too, but some of the older ones I've
    done, still have the leteral code, and I don't see it till I edit
    it, then I have to go back and change it :)

    Why not do a search & replace in your editor?
    One caveat that I've found though is that if you're using background codes (which are numeric), I ended up splitting the string; otherwise it would interpret the nex number wrong.

    For instance, if you want to output a blue background (Ctrl-A + 4), then I'd do this in JavaScript:

    "\x01" + "4";

    Otherwise, if you have "\x014", then that would be interpreted as hex number 14, which would be interpreted as a different character.

    I might check that out this weekend, after I rebuild the brakes on the car. It Thanks for the idea. Sometimes I have so much going on, that I forget the simple stuff like search and replace.

    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 MRO@VERT/BBSESINF to DesotoFireflite on Fri Jul 22 14:40:14 2022
    Re: Re: Help, It's my fault this time
    By: DesotoFireflite to Nightfox on Fri Jul 22 2022 07:14 pm

    Otherwise, if you have "\x014", then that would be interpreted as hex number 14, which would be interpreted as a different character.

    I might check that out this weekend, after I rebuild the brakes on the

    car.
    It Thanks for the idea. Sometimes I have so much going on, that I forget the simple stuff like search and replace.

    didnt i give you and other people xchange32? http://bbses.info/mirrors/clayruth.com/index.html

    xchange32.exe /i filename.ext "old" "new"

    lets say i want to remove cr/lf
    xchange32.exe /i filename.exe "^x0d^x0a" " "

    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From DesotoFireflite@VERT/VALHALLA to MRO on Fri Jul 22 23:35:57 2022
    Re: Re: Help, It's my fault this time
    By: MRO to DesotoFireflite on Fri Jul 22 2022 09:40 pm

    Otherwise, if you have "\x014", then that would be interpreted as
    hex number 14, which would be interpreted as a different
    character.


    didnt i give you and other people xchange32? http://bbses.info/mirrors/clayruth.com/index.html

    No, that's one I've nerver heard about. I'll check it out. 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 Nightfox on Sat Jul 23 08:11:37 2022
    Re: Re: Help, It's my fault this time
    By: Nightfox to DesotoFireflite on Fri Jul 22 2022 01:46 pm

    Re: Re: Help, It's my fault this time
    By: DesotoFireflite to Nightfox on Fri Jul 22 2022 02:15 pm

    I started getting into the habit of using \x01 in any strings
    rather than using literal Ctrl-A codes. That can help prevent
    editors from changing those characters.

    Yes, I'm starting to do that too, but some of the older ones I've done, still have the leteral code, and I don't see it till I edit it, then I have to go back and change it :)

    Why not do a search & replace in your editor?
    One caveat that I've found though is that if you're using background codes (which are numeric), I ended up splitting the string; otherwise it would interpret the nex number wrong.

    For instance, if you want to output a blue background (Ctrl-A + 4), then I'd do this in JavaScript:

    "\x01" + "4";

    Otherwise, if you have "\x014", then that would be interpreted as hex number 14, which would be interpreted as a different character.

    That's true for "\x14" (hex 14), but not for "\x014" (hex 01, followed by a '4'). "\x014" works fine, you don't need to split string or any other tricks.
    --
    digital man (rob)

    This Is Spinal Tap quote #44:
    It really, it does disturb me, but i'll rise above it; I'm a professional. Norco, CA WX: 87.6øF, 48.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 Digital Man on Sat Jul 23 08:36:27 2022
    Re: Re: Help, It's my fault this time
    By: Digital Man to Nightfox on Sat Jul 23 2022 03:11 pm

    That's true for "\x14" (hex 14), but not for "\x014" (hex 01, followed by a '4'). "\x014" works fine, you don't need to split string or any other tricks.

    Ah, I didn't realize that. Thanks for the tip.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Tracker1@VERT/TRN to DesotoFireflite on Sun Jul 24 09:06:03 2022
    On 7/22/22 04:13, DesotoFireflite wrote:

    I love VS Code, but I've found out that it does alter the code
    sometimes if you use Ctrl-A codes in it, so you have to watch it.
    Notepad ++ doesn't change the contents of the file automaticly the way
    VS Code has done on occasion to me.

    This can help...

    https://gist.github.com/tracker1/ac95a8de20366e66d57801e9edc96dbe

    But CP437 support seems to be broken on non-windows... so ymmv there, I usually encode my special characters in JS anyway... "\001" inside the
    string is effectively ctrl-A (as is "\x01" or "\u0001"), though I don't
    think JS in Synchronet supports the unicode escape.

    You can change the auto-formatting behavior... I keep a different config
    in my sbbs directory, which is usually what I open in VS Code (remoting extensions are great, can edit BBS over SSH).

    Keeping the JS Object model docs open is also really helpful.

    Yes, it my stage of learning, the JS Object Model is my bible.

    For Synchronet, need to keep it open all the time... though still often
    need to dig through /exec for practical examples as it's not always clear.
    --
    Michael J. Ryan - tracker1@roughneckbbs.com
    ---
    ï¿­ Synchronet ï¿­ Roughneck BBS - roughneckbbs.com
  • From Tracker1@VERT/TRN to Nightfox on Sun Jul 24 09:08:57 2022
    On 7/22/22 13:46, Nightfox wrote:
    One caveat that I've found though is that if you're using background
    codes (which are numeric), I ended up splitting the string; otherwise
    it would interpret the nex number wrong.

    For instance, if you want to output a blue background (Ctrl-A + 4),
    then I'd do this in JavaScript:

    "\x01" + "4";

    Otherwise, if you have "\x014", then that would be interpreted as hex
    number 14, which would be interpreted as a different character.

    Have you tried using the octal escape? "\001" instead? Not sure, but I
    don't think I've seen an issue with it.
    --
    Michael J. Ryan - tracker1@roughneckbbs.com
    ---
    ï¿­ Synchronet ï¿­ Roughneck BBS - roughneckbbs.com
  • From Daryl Stout@VERT to Digital Man on Sun Jul 24 03:40:00 2022
    Rob,

    Does Synchronet have such a thing as "command stacking", such as
    where you could put several commands into one string?? Obviously,
    it wouldn't work if the hotkeys were ON, but one of my users asked
    about it...and if it's in the docs, I've overlooked it.

    Daryl

    ... A government shutdown is redundant.
    === MultiMail/Win v0.52
    --- SBBSecho 3.15-Win32
    * Origin: The Thunderbolt BBS - Little Rock, Arkansas (1:2320/33)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From MRO@VERT/BBSESINF to Daryl Stout on Sun Jul 24 19:16:43 2022
    Re: Command Stacking
    By: Daryl Stout to Digital Man on Sun Jul 24 2022 10:40 am

    Rob,

    Does Synchronet have such a thing as "command stacking", such as
    where you could put several commands into one string?? Obviously,
    it wouldn't work if the hotkeys were ON, but one of my users asked
    about it...and if it's in the docs, I've overlooked it.

    yeah.

    look at the majorbbs clone.
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From DesotoFireflite@VERT/VALHALLA to Tracker1 on Mon Jul 25 01:09:51 2022
    Re: Re: Help, It's my fault this time
    By: Tracker1 to DesotoFireflite on Sun Jul 24 2022 04:06 pm

    I love VS Code, but I've found out that it does alter the code
    sometimes if you use Ctrl-A codes in it, so you have to watch it.
    Notepad ++ doesn't change the contents of the file automaticly the way
    VS Code has done on occasion to me.

    This can help...

    https://gist.github.com/tracker1/ac95a8de20366e66d57801e9edc96dbe

    But CP437 support seems to be broken on non-windows... so ymmv there, I usually encode my special characters in JS anyway... "\001" inside the string is effectively ctrl-A (as is "\x01" or "\u0001"), though I don't think JS in Synchronet supports the unicode escape.

    You may be right. I run into most of my formatting issues, when I use my MacBook from my sofa using VS Code. I finally came up with a workable option since I use "parrells" with my mac, so I've put notepad ++ in the windows partition, then it's always available when I'm in my mac. I prefer to use VS Code when using my mac, but thats not always a workable solution.

    You can change the auto-formatting behavior... I keep a different config in my sbbs directory, which is usually what I open in VS Code (remoting extensions are great, can edit BBS over SSH).

    hmmm, hadn't thought about that

    Keeping the JS Object model docs open is also really helpful.

    Yes, it my stage of learning, the JS Object Model is my bible.

    For Synchronet, need to keep it open all the time... though still often need to dig through /exec for practical examples as it's not always clear.

    LOL, I thought I was the only one doing that.

    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 Tracker1 on Mon Jul 25 09:52:42 2022
    Re: Re: Help, It's my fault this time
    By: Tracker1 to Nightfox on Sun Jul 24 2022 04:08 pm

    Have you tried using the octal escape? "\001" instead? Not sure, but I don't think I've seen an issue with it.

    Octal values aren't allowed in "strict" mode.
    --
    digital man (rob)

    Synchronet "Real Fact" #45:
    Synchronet External "Plain Old Telephone System" support was introduced in 2007 Norco, CA WX: 83.7øF, 55.0% humidity, 16 mph E wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Daryl Stout on Mon Jul 25 09:53:59 2022
    Re: Command Stacking
    By: Daryl Stout to Digital Man on Sun Jul 24 2022 10:40 am

    Rob,

    Does Synchronet have such a thing as "command stacking", such as
    where you could put several commands into one string?? Obviously,
    it wouldn't work if the hotkeys were ON, but one of my users asked
    about it...and if it's in the docs, I've overlooked it.

    It's up to the command shell to support that. I seem to recall adding that support in the PCBoard clone command shell.
    --
    digital man (rob)

    Synchronet/BBS Terminology Definition #11:
    C64 = Commodore 64 (personal computer)
    Norco, CA WX: 83.7øF, 55.0% humidity, 16 mph E wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to Tracker1 on Tue Jul 26 10:38:35 2022
    Re: Re: Help, It's my fault this time
    By: Tracker1 to Nightfox on Sun Jul 24 2022 04:08 pm

    Have you tried using the octal escape? "\001" instead? Not sure, but I don't think I've seen an issue with it.

    I used to use \1, which I believe is considered an octal escape. Recently I started putting "use strict"; in my Synchronet JS scripts to catch issues, and one of the things it reported was that octal literals are deprecated, so I've started using the hex \x01 instead.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Daryl Stout@VERT to Digital Man on Tue Jul 26 04:39:00 2022
    Rob,

    Does Synchronet have such a thing as "command stacking", such as
    where you could put several commands into one string?? Obviously,
    it wouldn't work if the hotkeys were ON, but one of my users asked
    about it...and if it's in the docs, I've overlooked it.

    It's up to the command shell to support that. I seem to recall adding
    that support in the PCBoard clone command shell.

    OK, I'll let the user know...thanks.

    Daryl

    ... Definition of an upgrade: Take old bugs out; insert new bugs.
    === MultiMail/Win v0.52
    --- SBBSecho 3.15-Win32
    * Origin: The Thunderbolt BBS - Little Rock, Arkansas (1:2320/33)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net