It is possible to use colors on the Unix command-line interface.
1
vote
2answers
51 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
71 views
Colorful ssh banner
I would like to colorize my ssh banner. I now 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 an ASCII art in the banner ...
3
votes
1answer
74 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
68 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:
...
3
votes
2answers
138 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 ...
5
votes
1answer
165 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 ...
3
votes
1answer
118 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
38 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
55 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
59 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
74 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
110 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
70 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
60 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
2answers
71 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
42 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(%) ...
1
vote
1answer
216 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 ...
2
votes
1answer
1k 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
46 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
39 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 ...
2
votes
1answer
93 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
94 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
219 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
125 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 ...
2
votes
1answer
183 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
152 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
92 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 ...
6
votes
1answer
364 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
113 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 ...
1
vote
2answers
421 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 ...
5
votes
1answer
630 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?
1
vote
3answers
313 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
185 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, ...
6
votes
4answers
416 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 ...
2
votes
0answers
365 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 ...
4
votes
3answers
95 views
Coloring output of forked processes
I have a runscript that starts some processes and sends them to the background
mongod & pid_mongo=$!
redis-server & pid_redis=$!
# etc.
All these processes then output concurrently to ...
1
vote
1answer
83 views
How can one provide colour to tab completion in tcsh?
(Crossposted from StackOverflow.com)
This question and the answer teach us how to introduce colour into tcsh prompts.
This webpage explains nicely how to get colour into any output of the echo ...
1
vote
1answer
228 views
Loading a color scheme has no effect in Vim
I had selected some really smart looking color schemes for Vim here
Following the instruction inside those files I've copied them in my $VIMRUNTIME/colors directory.
When Vim is launched in normal ...
2
votes
1answer
161 views
Coloring shell command and output differrently [duplicate]
Possible Duplicate:
Customizing bash shell: Bold/color the command
bash $ cat what-i-want
"I want the output be in a different color."
I'd like my commands stand out among the output, ...
2
votes
1answer
167 views
Is there a way of color-highlighting paired brackets in shell (bash)?
Does anyone know if there is a way reproducing the same behaviour many text editors provide for colour-highlighting the syntax operators such as brackets or curly brackets. It would be very useful for ...
5
votes
6answers
294 views
Colourful terminal or console?
I love colors in my console, and I wonder if there is any way to get a terminal (I guess only a software is able to do that) printing almost everything in colors.
Of course there is the --color=auto ...
2
votes
0answers
62 views
Is it possible to modify the colors in bash? [duplicate]
Possible Duplicate:
Is it possible to configure Bash so that STDERR can be a different color than STDOUT?
In bash, the only color I know how to modify is the prompt, using \[ and \]. From ...
4
votes
3answers
395 views
Mark occurrences of keyword with a different color
I have a program which spits out an output to stdout like:
[OK] Something is ok
[OK] Something else is also ok
[FAIL] This does not look good
[FAIL] Neither does this
[OK] At ...
5
votes
2answers
273 views
emacs colors based on $TERM environment variable
I want to know if it is possible to make emacs, when running in a gnu screen or tmux session, use the same colors as when TERM=xterm. In a gnu screen or tmux session, TERM=screen and emacs uses a ...
2
votes
1answer
141 views
How to capture text formatting in bash?
The following shell script works but removes colored formatting generated by rspec:
#!/bin/bash
OUTPUT=`rspec`
echo "$OUTPUT"
How to preserve the colors?
2
votes
1answer
311 views
Solarized color definitions in vimrc file
The solarized theme defines some base colors and assigns those to variables, as seen here.
I would like to know how I can use these color definitions in my .vimrc file.
Currently, I use pathogen to ...
1
vote
1answer
217 views
How can I list LS_COLORS in colour?
I recall that eval "dircolors -b" used to display the colours that LS_COLORS was using, based on the file types or extensions. It was not simply the colour values that were displayed but the colours ...
2
votes
2answers
110 views
How do I extract the colours from a PDF?
I have a PDF and I want to verify the colours being used (check that they match our corporate colour scheme for instance). Specifically, I want to check that the correct CMYK colours are being used.
...
2
votes
3answers
459 views
Solarized colors in st (simple terminal)
I want to use st with solarized colors like I can with urxvt (of course this is done via .Xresources, in st the colors are defined in a header file). I've tried to put the colors in st's config file ...
3
votes
2answers
228 views
How to prevent a Qt/GTK app (Calibre) from using colors defined in .Xresources?
I have colors defined in .Xresources. They look lovely on urxvt, and utterly ghastly on Calibre.
Calibre does not appear to have any way to disable or override those colors, so is there any way I can ...
