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

learn more… | top users | synonyms (1)

1
vote
2answers
236 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
3k 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
59 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
87 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
778 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 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
398 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
419 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
64 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 ...
1
vote
1answer
162 views

How to change the output color of ls comman in terminal in OS X and iTerm2?

I know that a similar question has been as in: How to colorize output of ls ? Though, I didn't really understand the answer and couldn't really make it work. However, I have tried something ...
1
vote
2answers
385 views

Change the color of tcsh output for any command

I want a different color for terminal returns: Example: $ pwd //when return key is hit $ /home/user/tools //return value printed in different color, say: grey color This ...
1
vote
2answers
113 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
176 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
1answer
450 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
3answers
752 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
328 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
2k 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
45 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
1answer
54 views

Emacs, complete list of color “keys”

If you want to customize the colors in Emacs, specifying them in the .emacs init file, without installing any extra package, and without using a pre-made theme, something like this seems to work: ...
1
vote
2answers
70 views

Command working from CLI but not from script

I have a command that I use from the CLI to properly color files, folders, executables, etc. The command that I'm executing looks like this: test -r ~/.dircolors && eval "$(dircolors -b ...
1
vote
1answer
103 views

mc: customizig colors with skins

I am editing the default skin for midnight commander and I would like to add some more rules for file highlighting. In the filehighlight section, there are several categories, for example archive=red; ...
1
vote
1answer
771 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
2answers
647 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
445 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
495 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
1answer
370 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
55 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 ...
1
vote
1answer
32 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 ...
1
vote
0answers
51 views

Why does vim color this .bashrc line incorrectly? Fixable?

I have the following line in my .bashrc that allows me to use rlwrap with sqlplus. Why does vim seem to color this wrong? alias sqlplus='rlwrap -c -f /usr/bin/rlwrap -b ...
1
vote
0answers
51 views

tmux color theme in emacs gtk

When I use emacs -nw I always use it in tmux 256-color mode. tmux applies its default color theme to emacs so it looks like this: For some reason I like that color theme far better than any other ...
1
vote
1answer
209 views

Video colors reversed (negative) in Ubuntu 12.04 LTS

What's the fix for negative colors in videos (Ubuntu 12.04 LTS)? Pictures or thumbnails are not effected, only videos. It does not seem to be a browser problem as videos viewed offline exhibit the ...
1
vote
0answers
9 views

Bash in php exec don't color png and mp3 files on Linux [duplicate]

I have code like this: header("Content-Type: text/plain"); exec("/bin/bash -c 'ls --color=always'", $result); echo implode("\n", $result); and I've got result: Makefile README Yann Tiersen - ...
1
vote
1answer
147 views

cp /etc/DIR_COLORS ~/.dir_colors not responding

I'm using CentOS 6.5 and Putty. My problem is that directory file names are shown in dark blue color which is hard to read. I google searched and found this link; basically it's copying the DIR_COLORS ...
1
vote
1answer
136 views

set tab color in a tabbed terminal emulator

I would like to set in my terminal emulator (i.e. gnome-terminal) the color of the tabs like in the osx's terminal emulator. Is there this feature in any of the linux terminal emulator plethora? ...
1
vote
0answers
35 views

How to get 256 color support in a login shell TTY? [duplicate]

I want to experiment with a fully text-based environment, however, the only thing that is stopping me - is getting 256 colors so my Vim color schemes could work perfectly. When I enter a TTY by ...
1
vote
0answers
242 views

How to change colors of all running urxvt instances?

I'm used to black background and light green text when working on my urxvt terminals. But sometimes, when I take my laptop outside, it becomes hard to read and I'd like to change the colors of all my ...
1
vote
0answers
141 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
145 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
237 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
145 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 ...
1
vote
2answers
92 views

How to colorize `gcal`

I'm using gcal. http://www.gnu.org/software/gcal/manual/gcal.html Is there easy way to make Saturday blue and Sunday red? If there is another CLI program that provides the same functionality in OSX, ...
0
votes
1answer
56 views

How to get the same ls with colors working on both OSX and Ubuntu?

When I want color in Ubuntu I do alias ls='ls --color=always' but on OSX this gives an error ls: illegal option -- - and I need to do alias ls ='ls -G' How can I create an alias with the same ...
0
votes
1answer
39 views

Less command change color of “~” and “(END)”?

How do I change the color of the "~" characters that go along the edge of a Less command output. And how to change the color "(END)" at the bottom?
0
votes
1answer
29 views

Why dircolors don't return enything for bash called from php

I have this code in php: header("Content-Type: text/plain"); exec("/bin/bash -c 'dircolors -b'", $result); echo implode("\n", $result); but it return LS_COLORS=''; export LS_COLORS Why I'm not ...
0
votes
3answers
155 views

Bash in php exec in webpage don't colors for png and mp3 files on Linux

I have code like this in php: header("Content-Type: text/plain"); exec("/bin/bash -c 'ls --color=always'", $result); echo implode("\n", $result); and I've got result (escape is not visible) ...
0
votes
2answers
155 views

mc: edit skin color

I am trying to edit color skins for midnight commander. When using 256 color palette, the colors are called color1 to color255. I am looking for particular tone of blue. Is there a palette of all 256 ...
0
votes
1answer
656 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 ...
0
votes
1answer
97 views

dir-color failure in html and css files in several terminals

I use several types of terminals in my Slackware 13 distribution: xterm, rxvt, Konsole, and xfce's terminal emulator (Terminal 0.4.6). All of them read my .dir_colors file and, for the most part ...
0
votes
0answers
12 views

Determin if the currnet terminal has a dark or light theme [duplicate]

I have several (Bash) scripts that uses ASCII color codes. They look good on my dark themed terminal, however on my colleagues light themed terminal the colors I selected don't look that good. Is ...