It is possible to use colors on the Unix command-line interface.
2
votes
1answer
23 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
47 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 ...
3
votes
2answers
57 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 ...
4
votes
2answers
91 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
42 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 ...
1
vote
2answers
64 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
130 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
86 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
101 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
195 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
181 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
158 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
49 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
56 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
74 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
104 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
119 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
76 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
62 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
106 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
46 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
325 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
2k 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
49 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
113 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
101 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
245 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
132 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
198 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
174 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
115 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
450 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
124 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
455 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 ...
6
votes
1answer
799 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
370 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
200 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
479 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
378 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
103 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
88 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
256 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
171 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
171 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
321 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 ...
5
votes
3answers
452 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
288 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
145 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?



