[SOLVED] How do I get rid of colour in a text console?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi: by text console I mean /dev/tty1, ... , /dev/tty6. OK. Now suppose I do not want neither the cli nor any appl to use colour at all. What would a system wide command or setting be? (GNU Linux 3.2.29).
Oh yes, but let's not enter into an interminable thread if I mention certain program. I want the CONSOLE (virtual console, /dev/ttyN,N some number), to disable colour. I think terminfo is the answer.
EDIT: the program is vim. Though set for no syntax checking (:syntax off) it still uses colour when matching parenthesis. However, TERM=linux-m in /etc/profile has just eliminated color in this feature too!
Did you think how many colors LQ pages have? Only one, in fact: blue, in two or three shades. That is to say, it is monochrome (save for some tiny icons visible when you compose)! Why would that be! It's a matter of taste, good taste. And comfort to the eye, in the long run. Plus:
With 'syntax off' you disable color in vim. But not parenthesis matching: it will still use color (in my box at least). And the particular color it uses makes the cursor almost invisible when matching a parenthesis, square bracket or curly one.
syntax highlighting isn't just about adding colors, it's for making specific patterns of text more visible. It's generally designed for program code, but can really be used with almost any text.
vim's syntax patterns are loaded from external files. You can personalize the foreground color, the background color, and/or the font style for any syntax setting in them. You can also create your own, or just override individual settings in your vimrc.
I really suggest that you search vim's help and/or google any time you find something about it that you want to change. Chances are good that you can make it do what you want with just a bit of configuration tweaking.
I have programmed for nearly 20 years now, and never used color. As for help, I always try to go to vim's help and, sometimes, to that of vi, it being less dense.
But don't know if you read post #3. I quote myself:
Quote:
EDIT: the program is vim. Though set for no syntax checking (:syntax off) it still uses colour when matching parenthesis. However, TERM=linux-m in /etc/profile has just eliminated color in this feature too!
TERM=linux-m has done away with color all through the user interface, to my utmost satisfaction.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.