• Re: How to setup the bash shell for ANSI

    From Paradigms Shifting@21:1/101 to gcubebuddy on Tuesday, April 19, 2022 12:41:52
    On 27 Apr 2021 at 12:06p, gcubebuddy pondered and said...

    Hi y'all, i was wondering if anyone knew how to set up the default bash shell in Ubuntu, to be able to see ANSI art / menus for when you use syncterm at the command line, or if your using simple telnet?
    i was just curios if anyone had been successful at it?

    Thats been on my "Linux Wish List" forever!

    --- Mystic BBS v1.12 A47 2021/12/24 (Linux/64)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Paradigms Shifting@21:1/101 to fusion on Tuesday, April 19, 2022 12:43:28
    On 27 Apr 2021 at 08:12a, fusion pondered and said...

    On 27 Apr 2021, gcubebuddy said the following...

    Hi y'all, i was wondering if anyone knew how to set up the default ba shell in Ubuntu, to be able to see ANSI art / menus for when you use syncterm at the command line, or if your using simple telnet?
    i was just curios if anyone had been successful at it?

    telnet bbs | iconv -f cp437

    no downloads, and a handful of characters might not work if the default unicode

    I wonder if there is a way to get the Linux terminal prompt to support it, whether you're telnetting, or not. Just like how the MS-DOS Prompt will support it, as long as ANSI.SYS is loaded.

    --- Mystic BBS v1.12 A47 2021/12/24 (Linux/64)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From boraxman@21:1/101 to Paradigms Shifting on Tuesday, April 19, 2022 22:13:23

    Hi y'all, i was wondering if anyone knew how to set up the default ba shell in Ubuntu, to be able to see ANSI art / menus for when you use syncterm at the command line, or if your using simple telnet?
    i was just curios if anyone had been successful at it?

    Thats been on my "Linux Wish List" forever!

    Not sure about Ubuntu, but you can get ansi to work on the Terminal. I use urxvt, but I've also tested this using xterm and it works there too. Should work with the Gnome Terminal, but I don't have this installed, so I didn't test with the Gnome Terminal.

    You need to do two things, first set a font that supports it (if the one you are using doesn't), and change the terminal mode.

    For the font, I use the "9x15" vga font, which is part of the xfonts-base package in Debian, and should be available in Ubuntu. If not, a web search for a vga font will reveal. For xterm, I use the Hack font, and that works as well.

    Next, use this program
    https://github.com/keaston/cp437

    Just run the program with cp437 as a prefix to the command you want to run (telnet or ssh)

    What you will want to do is something like
    cp437 telnet bbs.mybbs.com
    or
    cp437 ssh user@bbs.mybbs.com

    This sets the terminal to display the code and colours correctly . Works for me! If it doesn't work for you, try some different fonts. As I said, I know the 9x15 font and Hack work, others should too.

    Another option is to use Qodem. There is a terminal version "qodem" and an X11 version "qodem-x11"

    Run Qodem in a terminal, and it should work. You don't need the cp437 for qodem.

    Not sure if it is available in the Ubuntu repositories, it is for Fedora but not Debian, Qodem is a pretty good terminal program, and runs fine within a Terminal window. I prefer to slightly over Syncterm because you can use for the GUI version a larger font.

    If not available, install from source
    http://qodem.sourceforge.net/

    One other option, is to start Syncterm in a terminal with the -iC option. This uses the "curses" mode, so will run within the Terminal, but I find the results here weren't as good as with Qodem or the cp437 program and ssh.

    --- Mystic BBS v1.12 A47 2021/12/24 (Linux/64)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From boraxman@21:1/101 to Paradigms Shifting on Tuesday, April 19, 2022 22:26:42
    I wonder if there is a way to get the Linux terminal prompt to support
    it, whether you're telnetting, or not. Just like how the MS-DOS Prompt will support it, as long as ANSI.SYS is loaded.

    --- Mystic BBS v1.12 A47 2021/12/24 (Linux/64)

    I just wanted to add, in addition to the cp437 program I use, there is also ztelnet and zssh, which allow file transfers when you connect to a BBS (actually, to any system which has zmodem functionality)

    zssh you use in place of ssh, but it can capture and recognise zmodem escape sequences, so using zssh you can drop to the ssh command mode (Ctrl - Space) and use the sz and rz linux utilities to do a send or recieve.

    So when the BBS sends the control commands to start a transfer, you press CTRL-Space and at the command line run "rz" to receive or "sz filename" to send.

    You can at this command prompt, list files and navigate the directory hierarchy.

    Zssh should be part of the Ubuntu repo

    ztelnet works the same, and is part of the zssh package, but its telnet.


    Another option is to use GNU Screen with regular ssh and ztelnet. I can explain how this works too, if people are interested.

    --- Mystic BBS v1.12 A47 2021/12/24 (Linux/64)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Zip@21:1/202 to boraxman on Tuesday, April 19, 2022 20:02:15
    Hello boraxman!

    On 19 Apr 2022, boraxman said the following...
    Next, use this program
    https://github.com/keaston/cp437

    Thanks! Installed here now. :)

    Another option is to use Qodem. There is a terminal version "qodem" and an X11 version "qodem-x11"

    I tried qodem earlier, but on my Debian box (and with my USB-to-serial adapter), I got failed assertions during runtime which kind of ruined the fun... :-O

    Best regards
    Zip

    --- Mystic BBS v1.12 A48 2022/04/03 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (21:1/202)
  • From boraxman@21:1/101 to Zip on Wednesday, April 20, 2022 19:39:17
    Next, use this program
    https://github.com/keaston/cp437

    Thanks! Installed here now. :)

    Another option is to use Qodem. There is a terminal version "qodem" an X11 version "qodem-x11"

    I tried qodem earlier, but on my Debian box (and with my USB-to-serial adapter), I got failed assertions during runtime which kind of ruined the fun... :-O


    I've only used it over TCP connections, for serial, it may be different. You may want Minicom for serial connections.

    --- Mystic BBS v1.12 A47 2021/12/24 (Linux/64)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From claw@21:1/210 to Paradigms Shifting on Tuesday, April 19, 2022 22:52:51
    I wonder if there is a way to get the Linux terminal prompt to support
    it, whether you're telnetting, or not. Just like how the MS-DOS Prompt will support it, as long as ANSI.SYS is loaded.


    this is somethimg im looking in to. cp437 and utf8 just dont like each other g00r00 might be working on a new netrunner wirh arm compatibikity

    DrClaw
    Sysop Noverdu BBS (Noverdu.com)
    BBS Specs 64 CORE/192G Ram/Dell Server

    --- Mystic BBS v1.12 A47 2021/12/24 (Linux/64)
    * Origin: Noverdu BBS (21:1/210)
  • From Zip@21:1/202 to boraxman on Wednesday, April 20, 2022 17:11:05
    Hello boraxman!

    On 20 Apr 2022, boraxman said the following...
    I've only used it over TCP connections, for serial, it may be different. You may want Minicom for serial connections.

    Yep (that's the one I'm normally using). =)

    Best regards
    Zip

    --- Mystic BBS v1.12 A48 2022/04/03 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (21:1/202)