Getting Colour ANSI Emulation to Work Properly When Connecting to a BBS With Telnet Under Linux
Written by Lawrence Woodman on 14th February 2010     [2 Comments]
Tags: ANSI, BBS, Linux, Retro, Telnet, Text Mode

A BBS Splash Screen I have noticed that the number of people interested in using telnet to access BBSs seems to be growing, which I'm really pleased to see.  However lots of people seem to be having trouble getting colour ANSI emulation working properly with telnet under Linux.  I have therefore put this tutorial together to show just how easy it is.
The process of getting colour ANSI emulation working properly in telnet is quite simple.  All you need is the correct font and be using the correct terminal emulation mode.  This is easily done as follows:

Installing the Correct Fonts

  1. Download the correct fonts from here, so that you can display the ANSI block characters properly.
  2. Check where your X fonts are stored, under Debian Lenny I would use /usr/share/fonts/X11/misc.
  3. As root extract the archive downloaded above to the font directory using:
    $ tar -xvzf ansifonts.tar.gz -C /usr/share/fonts/X11/misc
  4. Ensure that X knows about the fonts:
    $ mkfontdir /usr/share/fonts/X11/misc/
    $ xset fp rehash
  5. Check that X now knows about the fonts (Should return at least one line with the text 'vga11x19'):
    $ xlsfonts | grep vga11x19

Setting Up Your Terminal Emulator

The only terminal emulator I could found that does ANSI colour emulation properly is rxvt, if you haven't already got this installed then now is the time to do that.  You now need to make sure that your terminal emulator is using one of the correct fonts.  To start rxvt with the vga11x19 font, a black background and white foreground, type:
$ rxvt -fn vga11x19 -bg black -fg white &

Now you need to make sure that rxvt is emulating an ANSI display.  To do this you need to set the TERM and COLORTERM environmental variables to 'ansi'.  If you are using the bash shell type the following from within the rxvt window:
$ export TERM=ansi
$ export COLORTERM=ansi

Connecting to BBSs with Telnet

Now you can just telnet as normal to the BBS you are interested in.  If you wanted to connect to a made-up BBS called somebbs.com:
$ telnet somebbs.com

There is quite a lot of information on the internet about telnet BBSs, some of the best sites are: BBS Corner, BBS Finder, The Telnet BBS Guide and BBS Scene.  Have fun, and I hope we can expand the use of BBSs, as I still believe they have a lot to give.




Creative Commons License
Getting Colour ANSI Emulation to Work Properly When Connecting to a BBS With Telnet Under Linux
by TechTinkering is licensed under a Creative Commons Attribution 2.0 UK: England & Wales License.
Comments


Sam Alex   (27 July 2010 12:50)
Exactly what I've been needing!  Thanks -- worked like a champ under 64-bit Ubuntu 10.04 Desktop.



Gerry S.   (06 September 2010 20:14)
In Ubuntu I installed xfonts-dosemu.  Then I ran 
xset +fp /usr/share/fonts/X11/misc/dosemu 
and 
xset fp rehash.
Then 
xlsfonts | grep vga11
gave me what I needed. It's likely that I did not have to do the xset steps. Logging in and logging out should have restarted X with the newly installed fonts properly working.

The rest of the instructions work great. Thanks for posting this.


Add a Comment

Please leave a comment.  I would love to hear what you think.
All comments are checked before displaying to prevent SPAM.

Your Name (Optional)

Your Email (Optional)
Not displayed, just used to pickup a Gravatar

Your Website (Optional)

Comment

All comments preformatted i.e. newlines and spaces display properly.
All HTML will be displayed literally e.g. <br /> will not create a line break.
URLs beginning with http:// or ftp:// will be converted to links.

        Privacy Policy

Contact Details

I would love to hear from you and welcome your feedback on the site.

You can keep in contact with me through the following services:
Click to get email address
GitHub
Linkedin
Twitter
Delicious
StumbleUpon
YouTube
Technorati
FriendFeed
MyBlogLog