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

learn more… | top users | synonyms (1)

1
vote
0answers
37 views

Installing a light vim colorscheme on gnome-terminal

I'd like to install a light color scheme for my vim, but it never seems to work (I tried several now). What I'm trying to obtain is something like you can see in this screenshot of mayansmoke: ...
1
vote
1answer
12 views

LS_COLORS for 256-color terminal

I thought ls colors are defined as <file_type>=[<bg(40-47)>];<font_spec(0:5)>;<font_color(30-37)> but, I recently found this where there are more colors and colors are ...
5
votes
1answer
115 views

How do I store colored text in a variable and print it with color later?

If I do git status --short, git lists files that are not tracked with two red question marks in front: I'm trying to store this in a variable and print it with color later. Here's my bash script: ...
2
votes
1answer
45 views

change terminal appearance according to server

I have 2 different serves (all running Linux) to which I connect via ssh . After login all terminal background looks same. I want to have different color theme or background for different servers. For ...
0
votes
1answer
58 views

Strange output when echoing variable from a different user

$ sudo su - user1 -c 'echo $DOMAIN_HOME' /app/user1/DOMAINHOME This looks fine, right? However, let's dig a little deeper: $ sudo su - user1 -c 'echo $DOMAIN_HOME' | tee test.out $less test.out ...
2
votes
1answer
25 views

Set default color for top

How do you set the default color for top? Right now there is a red that I can barely read. You can toggle from mono to color with z or set it up more thoroughly with Z. But none of those settings ...
3
votes
2answers
116 views

Where does the TERM environment variable default get set?

When I open a terminal window with the GNOME Terminal emulator in the desktop GUI the shell TERM environment variable defaults to the value xterm. If I use CTL+ALT+F1 to switch to a console TTY ...
1
vote
2answers
61 views

Change color of input text, not output [duplicate]

I need to capture screenshots of the terminal where the typed commands visually "stand out" from the rest. Right now I'm using this to make my typed commands "red": PS1='\[\e[0;31m\]\u\[\e[m\] ...
1
vote
1answer
54 views

Background color mismatch in vim and tmux

I'm having trouble getting the full range of colors to work in vim when I'm running through tmux. I belive that it's some sort of trouble with TERM variables or 256colors, but I've done everything I ...
0
votes
1answer
19 views

Where to set Vim colouring when logged into a remote machine

I do most of my development on a desktop, using Eclipse, but occasionally I have to log into the production machine to look at or edit files. Usually I use vi - which is an alias to Vim 7.2. The ...
2
votes
2answers
291 views

Set urxvt to work with 256 colors

I had spent so much time to try to get urxvt to work with 256 colors. I am using Ubuntu. I have followed a part of this post cd ~ infocmp -L rxvt-unicode > rxvt-unicode.terminfo vi ...
0
votes
0answers
12 views

linux mint toolbar applet color

I have problem with linux mint 17.1 ,the color of wifi ,sound,bluetooth and battery applets has changed like the picture and I don't think it is related to the theme it's look like inactive
1
vote
1answer
71 views

Why are files and directories colored in different ways? [duplicate]

On Ubuntu 14.04, in bash under gnome terminal, Why are files especially directories colored in different ways? The green colors hide the text to me (How about to you?). Is it done by terminal or ...
3
votes
2answers
80 views

Yellow appears as brown in konsole

For some reason, the yellow color color (ANSI Esc. code 33), appears for normal fonts as orange/brownish in my terminal (yakuake, konsole). For example, the command echo -e "\\033[33mhello ...
1
vote
1answer
40 views

Saving colored output regardless of the source

How can I save colored output to a file regardless of the source when the sources turn coloring off if they detect their stdout isn't a terminal?
3
votes
1answer
72 views

rlwrap -z pipeto: piping output through pagers

I am using rlwrap to colorize prompt in asterisk CLI: rlwrap -s 99999 -a -pRED /usr/sbin/asterisk -r I read in man rlwrap that I can also use rlwrap -z pipeto to pipe output through a ...
0
votes
1answer
48 views

Colorize line number in grep

Is there a way to colorize line numbers when using grep with the -n option? For example, echo "hello" | grep -n lo outputs 1:hello where lo is colorized in red (being the match). Can I configure ...
1
vote
1answer
58 views

using ansi escape codes to change the background color in xfce4-terminal

This works to change the background color for the entire terminal with xterm: printf '\033]10;%s\a\033]11;%s\a' Blue Red It doesn't work in xfce4-terminal, tho. Is there something that will work? ...
12
votes
3answers
540 views

No colored output in less for the ls command

If I run ls I get colored output which I find pretty handy for quickly getting a glance of the kind of file. When I try to pipe it to less even with the -r and -R flags the coloring always get lost. I ...
2
votes
1answer
83 views

Diff tool with nice output like kdiff3

I like kdiff3 very much due to the way it displays the result. It can compare more than two versions of a file or directory and displays the differences in columns: For directories, it displays ...
2
votes
1answer
40 views

Is it possible to make VIM emphasize found text?

As vim wiki's stated we can look up strings by using *. But by default, looked up string is not being emphasized. Is it possible to configure vim that the strings will be emphasized when looked up ...
3
votes
1answer
109 views

How to clean stdout/stderr color output

I have a program that would output something like this: ^[0;33m"2015-02-09 11:42:36 +0700 114.125.x.x access"^[0m Is there built in linux program that could clean that output up into something like ...
0
votes
1answer
47 views

Change the way folders are displayed in terminal [duplicate]

I moved over from Xubuntu to Fedora. In a colored Xubuntu terminal the folders appear in bold blue wheras in Fedora they appear as normal blue. I'm familiar with ANSI codes for colors and style but ...
0
votes
0answers
56 views

wrong MC colors when launched via xterm -e mc

I use ini-customized color theme in Midnight Commander 4.8. [Colors] base_color=linux:normal=cyan,rgb002:input=white,cyan:inputunchanged=black,cyan:dhotnormal=red When I launch xterm and then ...
0
votes
1answer
312 views

Solarized theme in both mc and Terminator

I have configured Terminator to use Solarized color theme. I did the same for MC. However, the problem I have is that I don't get actual Solarized color scheme in MC (as there already is one below ...
2
votes
0answers
46 views

Disable colours at runtime in xterm

I would like to disable colours in my xterm at runtime. Reason being that some programs lack the sanity to use them in proper way. For example: $ sane-program color output $ disable-color $ ...
2
votes
1answer
38 views

Disable of coloring for ls on NTFS filesystems

I like to have the output of ls colored so I quickly can spot files of specific types, however I have a separate disk in my computer which uses a ntfs-3g filesystem, this means that everything has ...
1
vote
1answer
85 views

preserving colors when piping yaourt through sort

Can sort preserve piped in colors? I'm trying to modify yaourt -Qu | sort so I get color output. Tried googling this but I couldn't find a general way nor a special way to do this for sort.
1
vote
1answer
112 views

zsh colored prompt

this is my PROMPT PROMPT='%{$fg[green]%}%n%{$reset_color%}@%{$fg[white]%}%m%{$reset_color%}:%{$fg[yellow]%}%~%{$reset_color%} $(git_super_status) %{$fg[white]%}\$%{$reset_color%}' Yes, the new line ...
2
votes
3answers
58 views

Is there some built-in (bash/gentoo) function to provide well-readable output to the user?

I am using the following simple function to provide some well readable output to the user. Now I am wondering if there is some kind of (gentoo-/bash-) built-in function to accomplish this task, as ...
13
votes
1answer
243 views

What is the name of this terminal window graphical trick, which shows accented edges around highlighted text?

I've noticed a few screenshots of terminal windows online which show thin highlighted edges around status bars or highlighted lines. In the following example, note the light grey edging around lines ...
6
votes
2answers
132 views

How to determine the current color of the console output?

I know that, if a coloured terminal is available, one can colour the output of it using escape characters. But is there a possibility to find out, which colour the output is currently being displayed ...
0
votes
1answer
38 views

Video-inverting my bash prompt

This is my prompt, as specified in ~/.bashrc: export PS1="${debian_chroot:+($debian_chroot)}\[\033[01;35m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ " ...that yields something like: I ...
3
votes
2answers
134 views

Man page highlight color

To colorize my man pages, I put this code from archlinux.org into .bashrc: man() { env LESS_TERMCAP_mb=$'\E[01;31m' \ LESS_TERMCAP_md=$'\E[01;38;5;74m' \ LESS_TERMCAP_me=$'\E[0m' \ ...
1
vote
0answers
29 views

How can I get red letters with tput when I seem to get yellow?

I was using #!/bin/sh if [ $TERM=screen ] then pass_color=' \033[01;32m' fail_color=' \033[01;31m' fi echo "$pass_color green $fail_color red" as in but I was advised to use tput instead, so ...
1
vote
0answers
43 views

grc: Highlight capture groups only?

Recently I came across grc and I find it really simple. However, I would like to highlight some chunks of regex-matched text. For example, svn status properties conflict highlight I hoped to work: ...
2
votes
1answer
79 views

Printing filled shapes in terminal

I'd like to print some shapes filled with the current color or a selected one (e.g. \e[31m) My aim is to print a filled circle (letter o) on the screen but the background will stay as it is. finally ...
2
votes
1answer
437 views

Terminator custom colors overriden by KDE

I've been working on Solarized theme in Terminator (http://gnometerminator.blogspot.fr/p/introduction.html) for about a year on Gnome and have been very satisfied. Yesterday I switched to KDE and the ...
2
votes
2answers
261 views

Format terminal output to show apt-get upgrade errors in RED

I have a very simple bash script written for my Kali Linux distro so I don't have to run apt-get update, apt-get upgrade, apt-get dist-upgrade, apt-get autoclean, and apt-get autoremove every time I ...
0
votes
0answers
24 views

acoc: availability, similar projects and problems?

I am trying to work on a Linux project out of Linux From Scratch. The outcome is a Linux with dull command line and console. I tried to bring color to terminal and I hit some bits and pieces like ...
1
vote
0answers
115 views

Powerline bash prompt not colorized in tmux

The bash/zsh commandline prompt is not displaying colors in tmux, even though I managed to get the powerline itself working (with colors). The prompt works fine in pure bash/zsh. I am getting the ...
1
vote
0answers
70 views

How to force custom color scheme when using Inverted Colors in Evince?

As pointed out in Software to read PDFs with inverted colors (Windows), instead of having a very white on very black color scheme (which induces a very nasty contrast) it is often preferable to use a ...
6
votes
1answer
184 views

How to change background color of a pane in tmux?

I would like to change the background color of the inactive panes in tmux to better distinguish between the active pane and inactive panes. Something just a few shades different than the default. How ...
2
votes
1answer
103 views

Red and blue are switched in xfce

I have a BeagleBone Black, wich is connected to a TV via HDMI. When I boot up the BeagleBone Black using a minimal Ubuntu image, I can see Tux greeting me in all his three-color glory, yellow feet and ...
18
votes
2answers
1k views

Are the terminal color escape sequences defined anywhere for bash?

I've used every so often colors in Bash scripting (mostly on CentOS), but to make their usage more convinient I end up redefining variables to color values: local GRAY="\[\033[1;30m\]" local ...
0
votes
1answer
143 views

Using Grep Colour to look in a file, and output with a coloured answer in amongst the file contents

I am currently in the process of writing a program in raspberry pi that will allow me to look inside files and have what I entered displayed in colour I think I need to do something to do with ...
4
votes
2answers
97 views

Sorting strings with ANSI escape codes

I am trying to print a sorted list of all zsh options, with set options colored green and unset options colored red. I cannot get sort to work properly with on the colored lines though.The below ...
2
votes
2answers
137 views

Non-printing escape sequence: when?

Recently, I have been playing around a lot with color in the terminal and, therefore, with escape sequences, too. I've read the relevant parts of the Bash manpage along with numerous helpful pages on ...
0
votes
1answer
72 views

colors not being expanded in zsh print -P

I have a zsh prompt script that uses print -P to perform prompt expansion. The script does not work properly on a particular remote system that I ssh into. The color directives in the prompt print ...
5
votes
1answer
195 views

How to colourise hidden files in `ls` file listings?

LS_COLORS environmental variable lets you decide on colours for different file types for ls command, such as, directories, regular files, links etc. I suppose that dot files are considered a variation ...