• Re: Help, It's my fault this time

    From DesotoFireflite@VERT/VALHALLA to MRO on Sat Jul 23 06: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 15: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 15: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 16: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 16: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 10: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 Mon Jul 25 02: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 08: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 16: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 16: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 17: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 11: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