Colors with telnet

Posted on 2005-04-20
Last Modified: 2008-02-01
I am using telnet from Windows but Linux puts out colors with a black background and I can't read some of the colors.

Does anyone know how to change the Linux telnet colors and background?

Question by:ESQuicksall

    Author Comment

    I found out how to do it. Here it is:

    edit /home/<user_name>/.bashrc to add the following line. This will hide the colors when you do the directory listing in a telnet session.
    alias ls="ls --color=never"
    LVL 7

    Expert Comment

    Hi Eddy,

    That would work.  Many distros will alias ls to enable colors by default.  A more direct solution is to change your TERM type so that Linux itself is aware that your session can't support colors.

    To do this, you can manually set it in .bashrc or similar with:

    export TERM

    (or export TERM="vt100")

    Rather than disable colors, if possible, I'd recommend a different terminal client.  putty (putty32.exe) is an excellent freeware client, and SecureCRT is a top-notch commercial client.

    Accepted Solution

    PAQed with points refunded (125)

    Community Support Moderator

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
    1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now