LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-24-2013, 01:56 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
How do I get rid of colour in a text console?


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).
 
Old 03-24-2013, 02:17 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
If you're concerned about colors of files or directories in terminal, then you can turn it off. Just follow this.
 
Old 03-24-2013, 02:43 AM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
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!

Last edited by stf92; 03-24-2013 at 03:43 AM.
 
Old 03-24-2013, 07:48 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
This http://vim.wikia.com/wiki/How_to_turn_off_all_colors

PS I am curious as to why you'd want to though ...

Last edited by chrism01; 03-24-2013 at 07:49 PM.
 
Old 03-24-2013, 10:06 PM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
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.
 
Old 03-26-2013, 02:33 PM   #6
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
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.

http://www.sbf5.com/~cduan/technical/vi/vi-4.shtml

As for customizing the parentheses matching see here:
http://design.liberta.co.za/articles...-highlighting/

I've personally changed mine to an easy-on-the-eye bold white with this:
Code:
hi MatchParen cterm=bold ctermbg=none ctermfg=white
Of course you can also just disable parentheses matching completely if you don't like it.

http://vimrc-dissection.blogspot.jp/...hesiswhat.html


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.
 
Old 03-28-2013, 03:32 AM   #7
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
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.

Last edited by stf92; 03-28-2013 at 03:37 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Text Colour s.satyapal Linux - Networking 1 05-18-2012 08:13 AM
Text Colour cornish Programming 1 11-16-2007 08:24 AM
How can I get rid of the Brown colour scheme? MurX Ubuntu 2 02-21-2006 05:50 AM
How to Change Console Text Colour flamesrock Linux - Software 3 05-10-2005 07:49 PM
Aterm Text Colour cclavey Linux - Software 5 07-28-2003 10:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration