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

learn more… | top users | synonyms (1)

0
votes
1answer
16 views

Highlight Vim escape characters e.g. \n

I'm using the Jellybeans vim colorscheme but it doesn't highlight any escape characters. For example if I'm using C++ and have the following... std::string word = "hello\n"; ... the whole string ...
1
vote
0answers
11 views

How to fix Eclipse and Caja color in Linux Mint Mate?

I started using Eclipse IDE with Linux Mint. I have darkened Ambiance theme and Eclipse looks extremely ugly and painful to eyes. And it seems I cannot change that white color of file browser ...
0
votes
2answers
21 views

Changing the color of only one directory in ls

Is there a way to change the color of only one of the listed directories in the ls command? I have researched the LS_COLORS variable, but this doesn't solve the issue because you cannot list specific ...
1
vote
1answer
985 views

Terminal colors putty raspbian

I'm connecting to my Raspberry Pi from my Windows Machine using putty. I already adjusted the colors for bold blue in putty to be more readable (using this guide). But I still have problems with the ...
2
votes
2answers
103 views

sed - find correct color sequence for ANSI extended 256 colors

I am currently using the following command to use the standard ANSI colors with the tail command: tail -f syslogfile | sed -e 's/\(.*MAJOR.*\)/\o033[93m\1\o033[39m/' This is bright yellow however I ...
1
vote
1answer
20 views

Lynx colors not applied

I have a lynx configuration file in ~/.lynx.cfg. To make lynx use it, I have in my environment $LYNX_CFG pointing at that file. Content: # Default COLOR:0:black:white # Hyperlinks COLOR:1:black:...
1
vote
1answer
905 views

Colors not rendered correctly in oh-my-zsh themes

I'm trying to use colors in oh-my-zsh themes. It works fine on my home computer (ubuntu), but in a work computer (Scientific Linux i.e. Enterprise linux) the prompt colors are actually spelled out. ...
8
votes
2answers
2k views

Colored man pages not working on gentoo

I have a problem using these methods to get colors in my man pages in gentoo. I've asked already in the gentoo forums but it still doesn't work, and the comments in a bug report (Bug 184604) don't ...
17
votes
1answer
9k views

How can I simply adjust monitor color temperture in X?

I have a new 27" iMac, on which I run Fedora 15 (with no Apple OS) — just boot straight to Linux. The colors are basically accurate to my eye, but the white point is much higher than I'd like (that ...
1
vote
1answer
52 views

Vim color scheme not being applied

I am installing this theme using these instructions. $ vim --version VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 08 2016 11:38:28) Included patches: 1-1689 Here is my ~/.vim/colors: xxx@xxx:~/...
10
votes
3answers
10k views

Colored Prompt in KornShell

According to this StackOverflow post, it is possible have a colored prompt in KornShell. I have not been able to figure out how to do this. I am able to use color: echo -e "\033[34mLinux\033[00m" ...
152
votes
18answers
85k views

How to have tail -f show colored output

I'd like to be able to tail the output of a server log file that has messages like: INFO SEVERE etc, and if it's SEVERE, show the line in red; if it's INFO, in green. What kind of alias can I ...
0
votes
1answer
38 views

How to change the color of boot logs in Debian?

OS: Debian Jessie (8) How can I change the color of all the logs and text during the initial boot (and also the final shutdown) to black? (including the login user/password prompt) !? My goal is to ...
3
votes
2answers
229 views

How to clean stdout/stderr color output

I have a program that would output something like this: ^[0;33m"2015-02-09 11:42:36 +0700 114.125.x.x access"^[0m Is there built in linux program that could clean that output up into something like ...
1
vote
1answer
4k views

Terminal colors for Vim Airline and Tmux Tmuxline

When using Vim on its own with Vundle and Airline the theme appears normally: When I have loaded it up in Tmuxline, the theme uses different colors and even Vim looks different: Here's my Tmux ...
2
votes
1answer
44 views

Different vim colors and styles in Tmux and Gnome

I am using tmux, and recently found out that the same vim colorshemes inside and outside of tmux have different colors Left is tmux in gnome-terminal, right is plain gnome-terminal, gnome-terminal ...
2
votes
1answer
144 views

Disable colours at runtime in xterm

I would like to disable colours in my xterm at runtime. Reason being that some programs lack the sanity to use them in proper way. For example: $ sane-program color output $ disable-color $ less-...
38
votes
4answers
30k views

What color codes can I use in my PS1 prompt?

I used several colors in my PS1 prompt such as \033]01;31\] # pink \033]00m\] # white \033]01;36\] # bold green \033]02;36\] # green \033]01;34\] # blue \033]01;33\] # bold yellow Where can I ...
3
votes
4answers
129 views

Where should I save color codes for the PS1 command line / terminal? [closed]

This question is about best practices. I know logging in over secure shell or switching users su, and su -l have different effects. Also, in the event you make a typo in the configuration, you still ...
6
votes
1answer
1k views

Program similar to xcalib to invert desktop colors

I'm using xcalib to invert colors on my computer at home. I have two monitors at work, and unfortunately the xcalib -i -a inverts only one of them (the one I don't want to invert). I haven't found any ...
2
votes
0answers
39 views

Portable color codes with printf? [duplicate]

There is a color codes script on GitHub suitable for sourcing, which I am modifying for my own purposes. Background I have an odd mix of environments to work in, from a Mac OS terminal, to various ...
14
votes
2answers
828 views

Colored output?

When I execute a command from a terminal that prints coloured output (such as ls or gcc), the coloured output is printed. From my understanding, the process is actually outputting ANSI escape codes, ...
0
votes
1answer
28 views

how to color specific strings in standard output and standard error [duplicate]

How do you color specific strings in standard output and standard error? For example: gpg --verify Outputs either a good signature or a bad signature string. How can I color the good one, green; ...
2
votes
1answer
30 views

In the SGR number 38 and 48, where do the 2 and 5 numbers come from?

In multi-color-compatible terminals, one can set a color from a 256-color palette by using ESC[38;5;Nm, and any RGB color using ESC[38;2;R;G;Bm. I've been wondering though, where do the "2" and "5" ...
3
votes
2answers
491 views

Defining color codes in rxvt-unicode

Using some of node.js tools like mocha in my urxvt terminal, I have some problems with coloured output. Some of the text that are using colour code 90 as you can see here will be disappeared in ...
1
vote
3answers
41 views

Unable to use a escape sequences in a variable in a sed command

I'm using sed to highlight a column in the output of a ps command, and it works fine if I hard code the color code. However, the color needs to be dynamic, so I tried moving it to a variable, and ...
2
votes
1answer
45 views

Highlight nth column of ps output

I'm trying to find the best way to highlight a specific column of some output. Specifically, I'm trying to highlight the 9th column (which is %cpu of the command: ps -eo pid,ppid,time,user,tty,%cpu,%...
-1
votes
1answer
31 views

tmux not printing ANSI colors in status bar

I'm using Mac OSX Yosemite, and I use istats to get CPU temperatures: I wanted to put my CPU temperature in my tmux status bar, so I made my tmux config the following: As you can see, when I ran :...
9
votes
3answers
4k views

How to colorize text in emacs?

I want to view (and/or edit) colorized text in emacs, such as is output by ls -l --color=always, tree..., or whatever. The text I refer to exists in a file. When I open that file in emacs, I want to ...
0
votes
1answer
11 views

Display RGB database foreground/background combinations

I'm trying to adjust color in X. I seem to recall that there are a couple of utilities available to experiment with foreground/background combination while displaying all the colors. Anybody know ...
1
vote
2answers
45 views

Diff patch output saved to a file. How to see it syntax-colored?

I have a folder with subfolders that contains text files. Every now and then I run a script that makes a copy of that folder tree and then creates a new one with fresh info. After that, having the ...
1
vote
0answers
29 views

Paging with follow less +F and colorize with awk

I would like to paginate a file with follow, i.e. $less +F and also colorize the output on the screen. I want to use less because I can leave the follow mode, browse the file and then re-enter the ...
0
votes
0answers
19 views

grep, assigning colour per string match? [duplicate]

Is it possible to set the colour of a Grep result per search. I have searched and cannot find a definitive answer Am scanning through some large Error Logs and ideally looking for the output of ...
33
votes
2answers
25k views

tmux bottom bar color change

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

Getting 256 colors to work in tmux

I have 256 colors working just fine in konsole,. I thought I'd give tmux a try because, unlike screen, it seems to support vi mode. However I find that the colors of my prompt show up and this is ...
12
votes
2answers
3k views

is there a way to set coloring for cd tab complete?

I use ubuntu 11.04. Is there a way to set coloring for output after tab completion listing of a cd, ls, or etc. ? i.e. myshell@root$ cd ~/user/files/ I hit tab... myfile myfoo mybar <-- this ...
1
vote
1answer
60 views

Terminal color usage does not stay

I was wondering if any of you knew why doesn't my terminal keep displaying stuff colored, after I use the command ls -l -a --color=always I would like it to stay colored, so when the next time I type ...
1
vote
2answers
35 views

How to color some strings in a file

I prepare a file Hello.txt as follows. 1253125213 213532135 23513125215 Then, I want to color each line blue except "2", and color the "2" red. At first, I wrote BLUE='\033[0;34m' RED='\033[0;31m'...
0
votes
0answers
18 views

Possibility to write some words in different color in log file [duplicate]

Is there a possibility to colorize words in a log file? I want to have the word ERROR in my logfile always in red, to see it more easily. I watch it with the tail function: tail -f -n 500 catalina....
5
votes
2answers
864 views

Set tmux status line color based on hostname

I'd like tmux to pick a color dynamically based on the hostname of the machine. Since I share my tmux.conf across several machines, assigning an unique color for each of those hosts would be handy ...
1
vote
0answers
27 views

Do light color codes work across all distros and terminals? [duplicate]

I use \033[1;34m for light blue. I am using Debian and Putty and it works for me. However, I've heard that it may not work for all users (using different distros and terminals). Is that true? Do they ...
9
votes
3answers
639 views

Piping a command through a color filter

Does something like this exist in Unix? $ echo "this should show in red" | red $ echo "this should show in green" | green $ echo "this should show in blue" | blue Here I don't mean for literal ...
15
votes
2answers
565 views

How do I use grep while keeping the original text color? [duplicate]

For example, I have a output: Hello, this is the output. (let's say that for example hello is colored red, and the is colored green, and output is colored purple). Now, let's say that this is the ...
0
votes
2answers
43 views

How do I create a dark blue text on a bright white background in MOTD in Debian?

This is what I currently have. It displays black on bright white. However, I want to have blue (0;34m) on bright white. ^[[0;7;34;37;5mWelcome!^[[0m I used this website as a reference, but I did ...
0
votes
2answers
46 views

How do I make the terminal background bright white?

I am using: setterm --foreground blue --background white --blink on The result is that the text is blue on bright white. However, the background around the text is grey. How can I make the entire ...
2
votes
1answer
25 views

make ls gray out files that end with tilde (`~`) using `LS_COLOR`

Problem: I am trying to modify LS_COLORS to gray out all files ending with the tilde character. Question: Can anybody spot my mistake? Here is what I did: # write dircolors file: dircolors -p > ...
1
vote
1answer
47 views

set color of conky

I want to set the color of a line to a specific shade of yellow (but not just yellow). I set it like this: ${font LCDMono:bold:size=20}${color yellow}Uptime:$color $uptime Where all the line has ...
0
votes
0answers
16 views

colours specified in terminal emulator? [duplicate]

In terminal editors one can specify a set of colors - a theme - which should be used. In konsole and x-terminal-editor one can set up 16 colors, they seem not to be named, rather only numbered. ...
3
votes
1answer
62 views

Filtering the colored output of grep

I'm on OSX, but I suspect this doesn't make a big difference for this question. In my .bash_profile, I aliased grep to get color outputs by default: alias grep='grep --color=always' I commonly run ...
5
votes
5answers
6k views

How do you colorize only some keywords for a bash script?

I am running some unit test code. The unit test code outputs regular text. There is a lot of the text so I want to highlight for the user important keywords. In this case the keywords are "PASS" and "...