It is possible to use colors on the Unix command-line interface.
2
votes
2answers
581 views
Setting up LS colors with a human-readable script in tcsh
I have a shell script (set_up_my_ls_colors.sh) that, if I call from my shell, it configures my color scheme for ls. The nice thing about the script is that it allows me to configure colors in a ...
2
votes
1answer
335 views
grep --color adds ANSI code ESC[K - This can change displayed text
Why does grep add ANSI code \e[K to its colored output? I can't see the point of it, but obviously the developers can. It is an ANSI/VT100 Terminal code which is used to "Clear line from current ...
2
votes
1answer
171 views
Coloring line numbers in less?
Please consider the following example:
$ grep --color=always -n 'Format\|Files' /usr/share/doc-base/doc-base | less -R
Here, grep will color also the line numbers of the matches, and less will ...
2
votes
5answers
2k views
In bash how can I change the color of my command prompt? [duplicate]
Possible Duplicate:
How to customize .bashrc to configure command prompt?
When I run a command, I often times have trouble finding the beginning of the command output. An easy fix to this ...
2
votes
1answer
756 views
LS_COLORS settings for specific types of files
I'm trying to set up my color scheme for ls, and I'm having trouble finding information about exactly what parameters I have to work with, or where those come from. And especially setting colors for ...
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:
...
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?
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 ...
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 ...
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 ...
2
votes
3answers
179 views
How do I get non-anemic colours? [closed]
I've searched high and low for an answer to this. What I find odd is that the only person on the internet who seems to have had a similar issue (or even recognised this as an issue) was one ...
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 ...
2
votes
1answer
258 views
watch command not showing colors for 'git status'
I'm trying to get watch to display colors from 'git status'.
I've tried running watch with the --color option, as suggested elsewhere here, but, still, watch --color 'git status' doesn't display ...
2
votes
1answer
371 views
ls in glorious 256 colours [closed]
Apart from the ls colors solarized theme, is there any other ls colour themes out there that you would recommend for a dark background with a urxvt terminal?
2
votes
1answer
156 views
Setting only of background or text color back to default
Is it possible to only reset the background color or text color back to default (not both!)
Example:
echo -e "\033[32;41mFoo bar\033[30m baz" # Doesn't reset background color
echo -e "\033[32;41mFoo ...
2
votes
2answers
449 views
Overriding the shade of color displayed
I have to work on systems which display some colors that are hard to read. I ssh into these systems, but don't have management permission to change the colors they display. Is there any way I can ...
2
votes
3answers
1k views
Make terminal text color different when in ssh session
Is there a way to make my terminal (konsole) display different text colors when I'm in an ssh session WITHOUT modifying the remote host's color configuration? Like, maybe automatically switching to a ...
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 ...
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
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 ...
2
votes
2answers
491 views
Configure MC and aptitude color schemes
I'm using Ubuntu, and I'm having trouble reading text in MC and Aptitude because of the color scheme. Is there any way to change it?
1
vote
2answers
70 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 ...
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
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 ...
1
vote
2answers
977 views
Why the differences in color between SSH terminal sessions in OSX?
I'm trying to get the colors in an SSH terminal session with a CentOS machine to look the same as it does when I'm SSH'd into my Ubuntu server. If I run echo $TERM in both I get xterm-color as ...
1
vote
1answer
834 views
Terminal does not source .zshrc with custom colors for ls and cd command
I customized the directory and file colors for ls and cd + TAB. Here is my configuration.
My configuration
My system environment.
Ubuntu 10.10
zsh 4.3.10 (x86_64-unknown-linux-gnu)
oh-my-zsh // ...
1
vote
2answers
702 views
How to find out what color I gave to xsetroot?
I used xsetroot -solid "#xxxxxx" to set a background color. I like this color, but did not record the command and it's long gone from the bash shell history. How can I find out what the color was?
...
1
vote
2answers
50 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
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 ...
1
vote
1answer
244 views
Unwanted text highlighting in Vim latex-suite
I have installed vim latex-suite. Whenever I type$$ to get inside math mode, as a side effect, it also highlights the last search term using /exp. What has caused this and how can I avoid this ...
1
vote
2answers
3k views
How do you display xterm colors with putty/bash?
Putty has this "allow terminal use xterm 256 colour mode" that I'd like to use, but I don't know how. I've been using a color.sh script to output echo statements and commands with colors, and I want ...
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
1answer
69 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
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?
1
vote
1answer
215 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 ...
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 ...
1
vote
1answer
226 views
colorizing ls output based on filename
i'm on freeBSD and trying to colorize ls output, so i've added
alias ls ls -lhG
setenv LSCOLORS gxfxcxdxbxegedabagacad
to my .cshrc
and it works. but what i really want to - is to be able ...
1
vote
1answer
652 views
Understanding colors in zsh
In this thread, yoda suggests the following solution for using colors in zsh
#load colors
autoload colors && colors
for COLOR in RED GREEN YELLOW BLUE MAGENTA CYAN BLACK WHITE; do
eval ...
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 ...
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 ...
1
vote
1answer
277 views
M-x ansi-term colors in Emacs 24.x
I have noticed that some colors in LS_COLORS don't work when running a shell inside M-x-ansi-term in Emacs.
For exmaple;
di 00 94
is supposed to turn on bold on light blue on directories on ...
1
vote
1answer
262 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. ...
1
vote
2answers
387 views
dircolors “missing second token”
I'd like to customize the colors of ls and as far as I understand the way to go is with dircolors.
I did:
dircolors > ~/.dircolors
Immediately after this I launch a terminal and get this error:
...
1
vote
1answer
286 views
Pipe Python Shell to source-highlight
When I try to make the Python shell get color:
python 2>&1 | source-highlight --failsafe -f esc -s python
the >>> prompt seems to be always delayed by 1 command.
Why is this ...
1
vote
1answer
2k views
How to change background color of side pane of Kate and Kile?
I am trying to customize the color scheme of Kile/Kate. I could do it, except I could not find any way to change the color of the side pane such as files, etc.
I prefer dark background, and having ...
1
vote
0answers
58 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 ...
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 ...
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
104 views
Is it possible to uncolor STDIN before writing it to file? [duplicate]
Possible Duplicate:
Removing control chars (including console codes / colours) from script output
Is there a utility which uncolors colored output? Something like the uncolor utility in the ...