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

learn more… | top users | synonyms (1)

2
votes
1answer
279 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 ...
2
votes
1answer
267 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
2k 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 // ...
2
votes
2answers
3k views

How to use command line to change brightness and color?

Is there any way to change the brightness and color? Using any command line tools? I am trying in Fedora and Ubuntu but no luck so far. Follow up: [command] [conneccted output] [effects R:G:B, ...
2
votes
3answers
7k 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 ...
2
votes
5answers
5k 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
2answers
111 views

Getting 256 colors to work in terminal multiplexer

tmux I followed Getting 256 colors to work in tmux: I have alias tmux='TERM=xterm-256color tmux' in ~/.bashrc and also set-option -g default-terminal "screen-256color" in ~/.tmux.conf In konsole: ...
2
votes
3answers
505 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
78 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
2k 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
2answers
1k 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
259 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
1answer
983 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
1answer
31 views

vim: Use different colorscheme when connected over SSH

On my desktop I use the hbrid color scheme in vim, with the preferred colors set for my consoles 16-color palette (as described in the README). However, on my laptop, I use the solarized color ...
2
votes
1answer
54 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
241 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
482 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
231 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
688 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
3answers
749 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
1answer
39 views

Strip color on OS X with BSD sed (or any other tool)

I'm on OS X, which has a BSD version of sed (which I'm guessing is inferior to a GNU version on Linux), and all the techniques for removing color on commandlinefu.com did not work. I tried replacing ...
2
votes
1answer
61 views

Can I change tmux status bar color when I hit C-b

I use tmux on the local computer then ssh and use tmux too. I can easily use them both (C-b twice for modifying the second tmux) but for more readability I'd like to highlight the status bar of the ...
2
votes
3answers
61 views

A shell tool to “tablify” input data containing ANSI escape codes

I have input containing ANSI color codes that I'd like to tablify. I want the output to remain colored, so the tablified output should maintain the ANSI color codes. Hence, naively stripping them away ...
2
votes
1answer
84 views

Capture colors with tmux buffer copy (hardcopy)

I am using the following line in tmux for getting a "hardcopy" feature like in GNU Screen: bind H capture-pane \; save-buffer -b 0 ~/tmux.hardcopy \; delete-buffer -b 0 However, the ANSI colors are ...
2
votes
2answers
636 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
112 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 ...
2
votes
1answer
254 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
1answer
581 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 -- * ...
2
votes
1answer
215 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
1answer
745 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
586 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
412 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
1answer
1k views

How to install color schemas for Kate running on GNOME

How do I install schemas(like this one; for syntax highlighting, etc) for Kate (which is originally for KDE) running on GNOME 3? Trying to install with the install.sh script took no effect. Also, if ...
2
votes
0answers
45 views

midnight commander: settings for mcview not honored

Midnight Commander supports skins, where custom colors can be defined. I have created my own skin with custom colors. However, I am unable to change the color for the internal viewer (mcview). ...
2
votes
1answer
214 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 ...
2
votes
0answers
68 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
1answer
1k views

Change font color and shadow from titlebar in window manager

I'm trying Linux Mint Debian Edition XFCE, and want to use a specific theme; only drawback - the font color and font shadow are unreadable, how can I change them? Also the active/inactive color window ...
1
vote
4answers
194 views

How to change color of a character while tailing and tr

I regularly use this command line but I would like to change the color of the "|" to green in the output. Does anyone know how I can accomplish this? tail -f file.log | tr '\001' '|' | grep TEST
1
vote
3answers
456 views

How to turn off color with `ls`?

It is normally nice to have color output from ls, grep, etc. But when you don't want it, is there a switch that can turn it off? ls -G turns it on (with BSD-derived versions of ls) if it's not the ...
1
vote
2answers
4k 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 ...
1
vote
2answers
195 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 ...
1
vote
2answers
2k 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
3answers
54 views

colourize the first part of each line

I have some chat logs like: (15:12:56) rubo77: mist migration (15:05:22) hans: ist hugo da? (15:36:13) rubo77: test (13:30:15) rubo77: what are the access data? (15:06:38) someone@jabber.ccc.de: user ...
1
vote
3answers
86 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
687 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
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 ...
1
vote
2answers
1k 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
1answer
311 views

Echo/Printing text in the color of a given hex code (regardless of Xresources/Xdefaults)

is there any way to echo/print text in the color of a given hex code (#000000, #FFFFFF, etc.) regardless of one's own Xresources/Xdefaults color definitions? Like, if Bob had in his ...
1
vote
1answer
399 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
1answer
58 views

tmux hightlight colour setting

In tmux, the default highlight setting is a yellow background -- at least on my version and machine. This is when using the mouse on X11 but is the same with the console selection. I cannot find the ...