• Long shot... tmux with ANSI/CP437

    From hyjinx@1337:2/104 to All on Sun Aug 29 12:45:36 2021
    Hi - anyone here a fan of tmux, like I am (or screen for that matter?)

    I use my IBM PC to telnet to a raspberrypi to connect to BBSes using Michael Brutman's (brutman.com) MTelnet. It works great.

    I'd like to be able to task-switch though. So one moment, work on the bbs,
    the next, read my email with mutt. Unfortunately, when using tmux, ANSI is
    all fubar. Is there a patch that can be applied that fixes this, or even some sort of flag at runtime? I've tried the usual TERM=pcansi etc but no dice.

    Cheers,
    Al


    hyjinx // Alistair Ross
    Author of 'Back to the BBS' Documentary: https://bit.ly/3tRINeL (YouTube) alsgeeklab.com

    --- Mystic BBS v1.12 A46 2020/08/26 (Linux/64)
    * Origin: Sent from Al's Geek Lab 1337:2/104 (1337:2/104)
  • From deon@1337:2/101 to hyjinx on Sun Aug 29 11:26:50 2021
    Re: Long shot... tmux with ANSI/CP437
    By: hyjinx to All on Sun Aug 29 2021 12:45 pm

    Howdy,

    Hi - anyone here a fan of tmux, like I am (or screen for that matter?)

    Me :) I'm a long time screen user, but recently changed to using tmux. Like vi, I'm probably only using 10% of it, but I use it because I switch between my laptop and imac and I can continue on where I left off :)

    I'd like to be able to task-switch though. So one moment, work on the bbs, the next, read my email with mutt. Unfortunately, when using tmux, ANSI is all fubar. Is there a patch that can be applied that fixes this, or even some sort of flag at runtime? I've tried the usual TERM=pcansi
    etc but no dice.

    So ANSI works OK over tmux - it would depend on your terminal program that you are using, and whether it can understand the ANSI.

    I'm on a MAC, and pretty much use iTerm2 exclusively (to connect to the BBS as well) - and ANSI is fine. I also get the benefit of an ultra wide, super long screen :)



    ...δεσ∩
    --- SBBSecho 3.14-Linux
    * Origin: I'm playing with ANSI+videotex - wanna play too? (1337:2/101)
  • From hyjinx@1337:2/104 to deon on Sun Aug 29 17:25:04 2021
    So ANSI works OK over tmux - it would depend on your terminal program
    that you are using, and whether it can understand the ANSI.

    I'm on a MAC, and pretty much use iTerm2 exclusively (to connect to the BBS as well) - and ANSI is fine. I also get the benefit of an ultra
    wide, super long screen :)

    Have a look at how it behaves on my IBM PC (screenshot) https://www.reddit.com/r/tmux/comments/pdl100/using_ansi_on_a_real_cp437_machin e_doesnt_work/

    When I use iTerm2 on the mac, it still doesn't work, although it is a little more favourable than spewing ANSI escape codes everywhere, so perhaps you
    have some terminal settings that are different to mine....

    Cheers,
    Al


    hyjinx // Alistair Ross
    Author of 'Back to the BBS' Documentary: https://bit.ly/3tRINeL (YouTube) alsgeeklab.com

    --- Mystic BBS v1.12 A46 2020/08/26 (Linux/64)
    * Origin: Sent from Al's Geek Lab 1337:2/104 (1337:2/104)
  • From deon@1337:2/101 to hyjinx on Sun Aug 29 17:37:00 2021
    Re: Re: Long shot... tmux with ANSI/CP437
    By: hyjinx to deon on Sun Aug 29 2021 05:25 pm

    Howdy,

    Have a look at how it behaves on my IBM PC (screenshot) https://www.reddit.com/r/tmux/comments/pdl100/using_ansi_on_a_real_cp437_machin
    e_doesnt_work/

    Yup, that might be your TERM isnt set right?

    When I use iTerm2 on the mac, it still doesn't work, although it is a little more favourable than spewing ANSI escape codes everywhere,
    so perhaps you have some terminal settings that are different to mine....

    Ahh, you are using Mystic.

    iTerm works well with processing the ANSI escape sequences - but is still a UTF-8 terminal.

    Since I use Synchronet, it detects me as a UTF-8 terminal and is doing some translation, so the graphics are "better" (but not perfect). Telnet to my BBS (alterant.bbs.leenooks.net) and you'll see what I mean.



    ...δεσ∩
    --- SBBSecho 3.14-Linux
    * Origin: I'm playing with ANSI+videotex - wanna play too? (1337:2/101)
  • From acn@1337:1/108.1 to hyjinx on Sun Aug 29 16:45:00 2021
    Am 29.08.21 schrieb hyjinx@1337:2/104 in TQW_LINUX:

    Hallo hyjinx,

    I'd like to be able to task-switch though. So one moment, work on the
    bbs, the next, read my email with mutt. Unfortunately, when using tmux,
    ANSI is all fubar. Is there a patch that can be applied that fixes
    this, or even some sort of flag at runtime? I've tried the usual
    TERM=pcansi etc but no dice.

    If your problem is the codepage, have a look at this tool, maybe it helps:

    https://github.com/keaston/cp437

    Regards,
    Anna

    --- OpenXP 5.0.50
    * Origin: Imzadi Box Point (1337:1/108.1)
  • From MeaTLoTioN@1337:1/101 to hyjinx on Mon Aug 30 12:23:48 2021
    On 29 Aug 2021, hyjinx said the following...

    Hi - anyone here a fan of tmux, like I am (or screen for that matter?)

    I use my IBM PC to telnet to a raspberrypi to connect to BBSes using Michael Brutman's (brutman.com) MTelnet. It works great.

    I'd like to be able to task-switch though. So one moment, work on the
    bbs, the next, read my email with mutt. Unfortunately, when using tmux, ANSI is all fubar. Is there a patch that can be applied that fixes this, or even some sort of flag at runtime? I've tried the usual TERM=pcansi
    etc but no dice.


    whenever you log into a BBS, if it gives you the option, choose UTF-8 so it will display right.

    In your Mystic CFG you can set your BBS to use UTF-8 and/or CP437, I set it to Ask the user on login, which is safest as when set to detect it doesn't always get it right.

    Hope that helps you out. UTF-8 allows me to use any terminal with or without screen/tmux and see it just right.

    ---
    |14Best regards,
    |11Ch|03rist|11ia|15n |11a|03ka |11Me|03aTLoT|11io|15N

    |07── |08[|10eml|08] |15ml@erb.pw |07── |08[|10web|08] |15www.erb.pw |07───┐ |07── |08[|09fsx|08] |1521:1/158 |07── |08[|11tqw|08] |151337:1/101 |07┬──┘ |07── |08[|12rtn|08] |1580:774/81 |07─┬ |08[|14fdn|08] |152:250/5 |07───┘
    |07── |08[|10ark|08] |1510:104/2 |07─┘

    ... Evil triumphs when good people do nothing. - Einstein

    --- Mystic BBS v1.12 A47 2021/08/10 (Linux/64)
    * Origin: thE qUAntUm wOrmhOlE, rAmsgAtE, uK. bbs.erb.pw (1337:1/101)
  • From hyjinx@1337:2/104 to acn on Tue Aug 31 12:56:02 2021
    On 29 Aug 2021, acn said the following...

    Am 29.08.21 schrieb hyjinx@1337:2/104 in TQW_LINUX:

    Hallo hyjinx,

    Hey Anna, how are you doing?

    If your problem is the codepage, have a look at this tool, maybe it
    helps:

    https://github.com/keaston/cp437

    Thanks, I actually have that already installed but I've never figured out a
    use for it, but perhaps running cp437 tmux will fix the problem! Thank you
    for that suggestion, I'll give it a shot!

    Cheers,
    Al


    hyjinx // Alistair Ross
    Author of 'Back to the BBS' Documentary: https://bit.ly/3tRINeL (YouTube) alsgeeklab.com

    --- Mystic BBS v1.12 A46 2020/08/26 (Linux/64)
    * Origin: Sent from Al's Geek Lab 1337:2/104 (1337:2/104)
  • From acn@1337:1/108.1 to hyjinx on Tue Aug 31 15:39:00 2021
    Am 31.08.21 schrieb hyjinx@1337:2/104 in TQW_LINUX:

    Hallo hyjinx,

    Hey Anna, how are you doing?

    Quite well, thank you. The next two weeks, I'm on holidays :)

    https://github.com/keaston/cp437

    Thanks, I actually have that already installed but I've never figured out a use for it, but perhaps running cp437 tmux will fix the problem! Thank you for that suggestion, I'll give it a shot!

    Did it help?

    Regards,
    Anna

    --- OpenXP 5.0.50
    * Origin: Imzadi Box Point (1337:1/108.1)
  • From hyjinx@1337:2/104 to acn on Thu Sep 2 14:53:22 2021
    Thanks, I actually have that already installed but I've never figured o use for it, but perhaps running cp437 tmux will fix the problem! Thank for that suggestion, I'll give it a shot!

    Did it help?
    running $cp437 tmux didn't seem to make any difference ;( I raised a bug at tmux github and they suggested using luit, so I'll look into that.

    Cheers,
    Al


    hyjinx // Alistair Ross
    Author of 'Back to the BBS' Documentary: https://bit.ly/3tRINeL (YouTube) alsgeeklab.com

    --- Mystic BBS v1.12 A46 2020/08/26 (Linux/64)
    * Origin: Sent from Al's Geek Lab 1337:2/104 (1337:2/104)
  • From MeaTLoTioN@1337:1/101 to hyjinx on Thu Sep 2 09:11:30 2021
    running $cp437 tmux didn't seem to make any difference ;( I raised a bug at tmux github and they suggested using luit, so I'll look into that.


    you don't need to use cp437, use UTF-8 instead, it works fine for me
    you just need to adjust your mystic config to allow using utf-8 like this;

    Open ./mystic -cfg
    Configuration -> Login/Matrix -> Ask Codepage: ASK

    Now whenever you log into your BBS, if you are in tmux, choose UTF-8 and it will work like SyncTERM does with CP437.

    Simples.

    ---
    |14Best regards,
    |11Ch|03rist|11ia|15n |11a|03ka |11Me|03aTLoT|11io|15N

    |07── |08[|10eml|08] |15ml@erb.pw |07── |08[|10web|08] |15www.erb.pw |07───┐ |07── |08[|09fsx|08] |1521:1/158 |07── |08[|11tqw|08] |151337:1/101 |07┬──┘ |07── |08[|12rtn|08] |1580:774/81 |07─┬ |08[|14fdn|08] |152:250/5 |07───┘
    |07── |08[|10ark|08] |1510:104/2 |07─┘

    ... A black cat crossing your path signifies that the animal is going somewhere

    --- Mystic BBS v1.12 A47 2021/08/10 (Linux/64)
    * Origin: thE qUAntUm wOrmhOlE, rAmsgAtE, uK. bbs.erb.pw (1337:1/101)