• CP437 display in door via stdout

    From Alpha@21:4/158 to all on Tue Jan 5 09:52:00 2021
    Very niche question, but I'm working on my first door game -- using Go
    (Golang) and utilizing stdin/stdout -- which makes it relatively easy to
    handle the comms part.

    BUT I'm trying to display an ansi file (e.g. IBM cp437 encoding) and it displays the colors properly, but not the extended characters.

    I'm using an encoding function on each byte to translate, but when running
    from the BBS it's gibberish. However, when I run via console locally --
    it's perfect.

    (for the encoding part, it's a simple conversion to the actual escape
    character sequence, e.g. '\u006A')

    Not sure if any door authors here have any tips, but thought I'd ask :)

    Cheers,


    --- Talisman v0.9-dev (Linux/x86_64)
    * Origin: Corporation X BBS (21:4/158)
  • From NuSkooler@21:1/121 to Alpha on Tue Jan 5 15:24:51 2021

    On Tuesday, January 5th Alpha said...
    I'm using an encoding function on each byte to translate, but when running from the BBS it's gibberish. However, when I run via console locally -- it's perfect.

    Encding to CP437 or from CP437? If *to* and e.g. from UTF-8, and if when you say "character" you mean "byte", it may not work since a given character may be more than one byte.



    --
    |08 ■ |12NuSkooler |06// |12Xibalba |08- |07"|06The place of fear|07"
    |08 ■ |03xibalba|08.|03l33t|08.|03codes |08(|0344510|08/|03telnet|08, |0344511|08/|03ssh|08)
    |08 ■ |03ENiGMA 1/2 WHQ |08| |03Phenom |08| |0367 |08| |03iMPURE |08| |03ACiDic
    --- ENiGMA 1/2 v0.0.12-beta (linux; x64; 12.13.1)
    * Origin: Xibalba -+- xibalba.l33t.codes:44510 (21:1/121)
  • From Alpha@21:4/158 to NuSkooler on Wed Jan 6 08:27:52 2021
    Very niche question, but I'm working on my first door game -- using Go (Golang) and utilizing stdin/stdout -- which makes it relatively easy
    to
    handle the comms part.

    BUT I'm trying to display an ansi file (e.g. IBM cp437 encoding) and
    it
    displays the colors properly, but not the extended characters.

    Hey NuSkooler, thanks for your reply. I was using my dev BBS (enigma!)
    when your message came in and didn't realize it was polling my fsxNet hub
    -- that's why I can't quote it here :)

    I experimented a bit with encoding/decoding--GO has a built-in module for encoding/decoding for basically anything, including CP437--but still the
    same result. ANSI displays perfect when running in console, but garbage
    when displaying extended characters when run as a door over an existing
    tcp connection. Escape sequences for color, cursor, clearing screen, etc.
    all work, however. Odd.

    I can't even directly print out glyphs to the screen when I print out the escape sequence or the glyph itself... I have a test function for that.

    I must be doing something GO-related wrong, I'll have to keep digging...
    If anyone is into Go, I can share the github repo.

    I'm rolling a little homage to the seminal Flash game "Don't Shit Your
    Pants." I have the main input loop working and the sqlite database for
    scores. That's it :)

    Cheers,

    Alpha

    --- Talisman v0.9-dev (Linux/x86_64)
    * Origin: Corporation X BBS (21:4/158)
  • From Avon@21:1/101 to Alpha on Thu Jan 7 15:15:33 2021
    On 06 Jan 2021 at 08:27a, Alpha pondered and said...

    Hey NuSkooler, thanks for your reply. I was using my dev BBS (enigma!)

    Hey Alpha :)

    Did you get the netmail I sent you the other day?

    Just checking.

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Alpha@21:4/158 to Avon on Thu Jan 7 07:37:20 2021
    Did you get the netmail I sent you the other day?

    Just checking.

    I did -- and I replied... twice! Must be something messed up,
    netmail-wise, probably on my end... Going to take it over to internet
    email to follow up for now :)

    Cheers,


    --- Talisman v0.9-dev (Linux/x86_64)
    * Origin: Corporation X BBS (21:4/158)
  • From Avon@21:1/101 to Alpha on Fri Jan 8 09:40:21 2021
    On 07 Jan 2021 at 07:37a, Alpha pondered and said...

    I did -- and I replied... twice! Must be something messed up, netmail-wise, probably on my end... Going to take it over to internet email to follow up for now :)

    Thanks, got the emails, will be in touch. Yep didn't get any netmails... not sure why.

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)