Tagged Questions

It is possible to use colors on the Unix command-line interface.

learn more… | top users | synonyms (1)

18
votes
5answers
5k views

vim - better colors so comments aren't dark blue?

Mostly I edit ruby files, although shell script file comments are also # Currently my comments show as dark blue on black which is really hard to read. See screenshot. How can I change their color? ...
2
votes
2answers
856 views

Color scheme is lost on shell change

My default login shell is ksh which shows my default color scheme which i set via putty. But when i change my shell to bash my color scheme is lost. Is there a way to retain the color scheme? EDIT: ...
2
votes
1answer
141 views

Emacs Key-binding and the TERM variable

I changed the value of TERM to screen-256color from xterm and it effects the key-bindings in Emacs. Mainly the bindings that use the arrow keys now inserts A,B,C,D instead of running backward-word and ...
5
votes
3answers
144 views

Getting unexpected colorized output on several commands

I just added this to my .bashrc to get colorized output with less: # Colorize less man pages. export LESS_TERMCAP_md=$'\e[01;34m' export LESS_TERMCAP_us=$'\e[01;33m' export ...
2
votes
1answer
405 views

Why doesn't terminal show color schema once logged as root?

I'm currently using Debian 7 Wheezy, and I've noticed that the colors palette on terminal (which might be useful to identify among a large set of files and folders) are not enabled once I log as root. ...
2
votes
0answers
276 views

How to change colors of all running urxvt instances?

I'm used to black background and light green text when working on my urxvt terminals. But sometimes, when I take my laptop outside, it becomes hard to read and I'd like to change the colors of all my ...
3
votes
1answer
229 views

How to disable flashing file names in rlogin

I have a strange problem with my rhel 6.4 system. If I do a rlogin to any of my machines, all the files in the remore machine will be flashing and it is so annoying. Can somebody please tell me how ...
3
votes
1answer
825 views

Visualizing ansi color escape codes in log files correctly in Emacs [duplicate]

I have some log files that have ansi-color codes in them. When I open them in Emacs I see garbage:           As an example, I run the following: ls --color=yes -ald -- * ...
5
votes
1answer
223 views

Linux VT Emacs in tmux, breaks color and cursor

TERM is set to screen. I tried with screen-256color, but then the colors went really nuts. I also tried xterm, linux, and some others (that I could think of, not really thinking) but screen is the ...
1
vote
2answers
471 views

Change the color of tcsh output for any command

I want a different color for terminal returns: Example: $ pwd //when return key is hit $ /home/user/tools //return value printed in different color, say: grey color This ...
2
votes
1answer
265 views

How can I reproduce solarized theme colors with xcalib for reading pdf's

How can I reproduce solarized theme colors with xcalib for reading pdf's? I want to use xcalib such that I can read (black and white) pdf's with evince such that the background is like that one I am ...
1
vote
2answers
285 views

How can I print text using any one of the 256 colors that the terminal allows?

I would like to write a program that utilizes all 256 of the Linux terminal's text colors. To date, however, I have only found a handful of color codes, which are in the format ...
4
votes
2answers
1k views

Convert PDF from sRGB color space to CMYK

Does anyone know how I can convert a PDF (or EPS) file from sRGB color space to CMYK color space? My workflow is currently the following: Draw an image with Powerpoint Print via postscript printer ...
5
votes
2answers
434 views

bash: colorize second column of output

let's say, I have following output from ls: $ ls -lAhF /bin -rwxr-xr-x 1 root root 905K Apr 10 2010 bash* -rwxr-xr-x 3 root root 31K Dec 26 2011 bunzip2* -rwxr-xr-x 1 root root 505K Nov 15 2010 ...
2
votes
1answer
263 views

Web navigation with dark color schemes

I use KDE with a dark color scheme so the text main color is white. Unfortunately this causes many websites to be unusable because text inside combobox, checkbox, and similar inherits the white color ...
2
votes
2answers
2k views

How do I pipe colored diff output to less?

I've been using git diff, which produces colored output. However, I now find I need to use ordinary diff for something, and it's producing a lot of output that is hard to read because of the lack of ...
1
vote
2answers
6k views

Colorful ssh banner

I would like to colorize my ssh banner. I know I can perform it like so: In /etc/profile I can put: echo -e "\e[1;31m Colorful text" echo -e "\e[0m Reset" But I have some ASCII art in the banner ...
4
votes
1answer
967 views

How can I keep color codes with grep input?

It I grep something twice: ... | grep foo | grep bar It seems foo is not highlighted. Infact, it seems grep removes colorcodes from its input; Any way to prevent this?
2
votes
3answers
565 views

Colorize Bash Console Color

I need to be able to set my CentOS 6.4 bash prompt color to yellow. I've managed to find where to set this (.bashrc) and the ANSI color for yellow (\e[0;33m). I've setup my prompt as follows: ...
5
votes
2answers
3k views

Change colors in console/virtual terminal

Is there a way to alter all the available colors in console / virtual terminal? By console, I mean what you get after pressing CTRL + ALT + F1 and not anything like xterm or urxvt. So, I guess that ...
6
votes
1answer
532 views

What are the origins of rgb.txt?

Where did the list of X11 color names come from? Every resource I've found online claims the origin is unknown, but it must be recorded somewhere. The best information I've found was in an archived ...
4
votes
1answer
892 views

Pass colors from ls through pipe to awk 'print' statement

This is a follow-up to my question from yesterday, Show sum of file sizes in directory listing. Thanks to Zero Piraeus and a point in the right direction by Mauritz Hansen, I now have function ...
0
votes
1answer
750 views

How to highlight the whole log-line in color with multitail

I'm trying to use multitail to tail logs with color highlights. I defined a custom color scheme in multitail.conf, something like this: colorscheme:my-color cs_re:red:^\[E cs_re:yellow:^\[W ...
1
vote
2answers
119 views

text color settings in emacs

I just switched to emacs from Vim today so I have no idea what I am doing. How do I change the syntax coloring in Emacs? Everything is green or light green. As you can see, latex tex is dark green ...
1
vote
0answers
142 views

How can i change the color in the panel when a program needs attention?

I'm running Linux Mint 14. I want to change the color in the panel when a program requires your attention (like when you receive a chat message). Not the color of the entire panel, but only the box ...
2
votes
1answer
850 views

dircolors on zsh: Unrecognized keywords: MULTIHARDLINK, RESET & CAPABILITY

I am trying to get the solarized color theme to work in my terminal. I read the instructions here but I get the following dircolors error: dircolors: `/home/avazquez/.dircolors_zsh':90: unrecognized ...
3
votes
4answers
535 views

Colored output in less when tailing a logfile

I am in dire need of a way to color my less output while reading a file that is constantly being appended. The file in questions is a Resin servlet container log. My current "implementation" of the ...
1
vote
1answer
185 views

bash prompt - long command circle back to same line after adding color

Note: I am using Putty and my TERM is set to XTERM. I have added the color to my bash prompt as PS1="\[\033[0;32m\]\d \t \u\e[1;33m@\H /\W $ \[\033[1;37m\]" just to simplify PS1 in English - ...
1
vote
3answers
89 views

How can i check for existence of color in my linux box?

I want to do something like this in my linux box: if [[ colors exist ]];then echo "some text in colors" fi my doubt is : i am using sed to put colors in log file for some text but if the linux box ...
1
vote
3answers
886 views

How to force lp from CUPS to print in grayscale?

I want to print an image from a command line: lp -o scaling=//100// image.jpg How can I force it to be printed in grayscale?
2
votes
1answer
80 views

How do I change the colour of all lines to red begining with a % symbol?

When I use sed -i "s,.*%.*,$(tput setaf 1)&$(tput sgr0),g" A.log the whole line vanishes and when I use sed -i "s,^%.*,$(tput setaf 1)&$(tput sgr0),g" A.log only the first character(%) ...
2
votes
1answer
3k views

How to colorize “root” in red in CentOS?

This is the content of /etc/bashrc, I would like to modify it for show "root" as red but don't know where to add the color code. # /etc/bashrc # System wide functions and aliases # Environment stuff ...
15
votes
2answers
13k views

How do I get the solarized colour scheme working with gnome-terminal, tmux and vim?

There's a lot of questions around this, but it's because there are so many variables. I had to piece together instructions from many sites before I got this working. First, I could not easily set up ...
2
votes
1answer
56 views

Manipulate color in VIM

In hlsearch mode, seems that you can set only one color. Now I want to use a script to get multiple colors for multiple keywords, is that possible?
1
vote
0answers
152 views

Low color depth while using X11 on a monitor

I am running Mint on a Late 2012 Mac Mini. While running X (KDE, LMDE or openbox) I notice a low color depth on My Dell S2209W monitor. I believe that the depth is not actually low as I can change ...
13
votes
1answer
2k views

git diff displays colors incorrectly

In order to get coloured output from all git commands, I set the following: git config --global color.ui true However, this produces an output like this for git diff, git log whereas commands ...
3
votes
2answers
132 views

customise ls color for directories contain specified file/s

How can I colorize directories contain files with word INCORRECT inside? Example: I have 3 directories which contain log file. dir_a/log dir_b/log dir_c/log The file log in dir_c contain word ...
3
votes
0answers
889 views

ls and vim color on SunOS 5.8/Solaris 8

I want to use ls and vim with color on Sunos 5.8 SunOS 5.8 Generic_117350-11 sun4u sparc SUNW,Sun-Blade-2500 I have installed ls (GNU coreutils) 6.9 and vim 7.2 In ~/.cshrc: setenv TERM sun-color ...
3
votes
2answers
181 views

Delete duplicate images. Need Software for computing average color of an image

I want to delete duplicates in a massive bunch of images. Well as I have dups of the same picture in a different resolution I will make the deletion myself. BUT I want to do this in linear time. So I ...
4
votes
1answer
618 views

Is there a way to temporarily change the terminal colour?

I use the gnome-terminal and most of my editors with a white on black theme as I find its easier on the eyes. One of my labs requires screenshots of the terminal (with the process) to be submitted ...
0
votes
1answer
654 views

No wallpaper colors in Xfce 4.10

I'm in Linux Mint 14, updated to Xfce 4.10. Wallpapers are black & white only. I think that happened after I moved the scrolls for brightness and saturation. After putting them back to zero, no ...
1
vote
1answer
865 views

Sorting by one column then the

Say i have a output file with following: 010513 08:04 ROUTER1 192.168.1.1 68.130.5.10 HIT(1) 010513 08:04 ROUTER1 172.168.1.1 28.130.5.10 HIT(1) 010513 08:04 ROUTER1 122.168.1.1 ...
8
votes
1answer
1k views

How can I change screen's hardstatus color based on the logged in user?

I haven't edited/created a .screenrc file in a while, but this is what I'm currently using: # Turn off the screen startup message startup_message off # Define format of bottom ...
2
votes
1answer
283 views

How to copy the output of pacman-color into a file and to display the output with the colors in the terminal

Originally I used pacman, not pacman-color and I copied the output into a file and I displayed the output in the terminal with the following command : pacman -Syu | tee file.log Unfortunately, it ...
2
votes
2answers
1k views

How to change variable color in vim solarized theme?

I have just installed solarized theme for vim from https://github.com/altercation/vim-colors-solarized But the problem for me is that the background stays black and I have the variable names in ...
13
votes
2answers
8k views

tmux bottom bar color change

I recently started to use tmux and like it much, but it's green bottom bar is a bit distracting, is there a way to change its color? or a way to hide it?
5
votes
4answers
2k views

vimdiff disable/enable color coding

Is there any way to quickly disable/enable color coding in vimdiff ? The problem is, I have colored text in vim and the text is invisible is the text-color is Red, and the vimdiff too tries to put a ...
3
votes
1answer
407 views

Color script output only when invoked from interactive shell

I made a bash script producing colored output. The colors are fine when the script is called from an interactive shell. However, if the output is processed in another script, or passed through a pipe, ...
7
votes
3answers
4k views

Disable colours on terminal and SSH

My local Linux machine has coloured terminal output like this; When I SSH to a pfSense/BSD box it changes the colours like this; Even when I SSH from to a machine that doesn't have a coloured ...
4
votes
2answers
856 views

Xresources color settings

I'm using Gentoo with XMonad and set all the colors in .Xresources file. The problem is that for some apps setting *.background and *.foreground is not enough since they override the settings for some ...