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

learn more… | top users | synonyms (1)

1
vote
0answers
9 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 ...
0
votes
0answers
11 views

Convert rgba color value to a Terminal supported color

Randomly I will take the following example: rgba(122, 143, 186, 0.54) How can I convert this color to the closest Terminal supported color?
4
votes
3answers
192 views

What are the color codes that I can use in my PS1 prompt?

I used several colors in my PS1 prompt such as \033]01;31\] # pink \033]00m\] # white \033]01;36\] # bold green \033]02;36\] # green \033]01;34\] # blue \033]01;33\] # bold yellow Where can I ...
2
votes
0answers
19 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 ...
1
vote
0answers
42 views

how to edit and color bash's tab completion list

Following is what i would like to have. When the tab completion is ambiguous, and bash prints the list of possibilities. I would like it to colour the next character I should press inside every word ...
3
votes
1answer
54 views

Set tmux status line color based on hostname

I'd like tmux to pick a color dynamically based on the hostname of the machine. Since I share my tmux.conf across several machines, assigning an unique color for each of those hosts would be handy ...
4
votes
1answer
141 views

How can I get less or cat to use color in the output from .cat of my .bashrc, similar to vi 'ing it?

When I vi my .bashrc file it is colorized, i.e. but when I cat or less the file I get all white, i.e. How can I get cat (and less) to have color? cat does have color for my ruby .rb files but ...
2
votes
3answers
45 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 ...
1
vote
0answers
41 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
1answer
45 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
2answers
50 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, ...
5
votes
1answer
175 views

tmux, Vim and Solarized

Premises Browsing around tmux, Vim and Solarized I can find lots of complains about 256 colours and "user experience". Well, I'm having the opposite "problem", i.e. Vim works well with a full ...
6
votes
2answers
171 views

tmux, TERM and 256 colours support

Introduction My question arises from the necessity of understanding why I have now (after multiple trials) Terminal and tmux which support 256 colours even with tput colors that tells me they are ...
1
vote
1answer
20 views

How to run man with formatting in not interactive shell

I have webpage that process ANSI codes and output from man command (underline A as A\x08_) and I call php shell that execute bash -c "<command>" and print the output on the webpage. On the ...
0
votes
1answer
18 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
42 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) ...
1
vote
0answers
8 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
0answers
57 views

How to change a font/background color in transparent windows?

When you select something, the color of the selection usually changes to the font color, and the font color is being set to backgroud color. So, if you have a black background in a terminal, and the ...
0
votes
0answers
24 views

How to add color to my command prompt? [duplicate]

On my system: echo $PS1 prints: \[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$ I followed this tutorial here to modify it: PS1="\e[0;38m \u@\h: ...
3
votes
1answer
54 views

What's the problem with terminals vs colors?

I'm a long time linux/unix user, as almost anyone working with this kind of OSs I use the terminal or a terminal emulator a lot, but I never understood why it's so hard for any GNU/Linux distribution ...
3
votes
1answer
46 views

Customizing less colors

When using less in OS X, how can I customize the colors with with things are displayed? When I run less within an ansi-term in Emacs the colors don't come out nicely. $ less --version less 418 ...
0
votes
1answer
61 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? ...
7
votes
2answers
91 views

Using empty line as context “group-separator” for grep

I need grep output with context, in color, and blank lines as group separator. In this question, I learned how to define custom group-separator, and I have constructed my grep command like this: grep ...
10
votes
1answer
136 views

colorize bash_completion

When I type grep and then press TAB twice, bash_completion will list files and directories in current directory. It will also complete filenames when I type initial letter. That is all very nice, the ...
3
votes
2answers
63 views

Why does the Linux virtual terminal support only 16 colors, by default?

Why does the Linux virtual terminal support only 16 colors, by default? Is there a particular reason for this?
0
votes
1answer
99 views

Linux TTY Colours

I've had this issue for a little while now on a few machines, but never thought to ask anyone. Upon installing a new laptop the other day, and using the virtual terminal for a bit, I noticed that ...
2
votes
3answers
110 views

Preserving color output with cut

Using bash interactively I am trying to use cut to prevent the lines from going longer than my terminal width. But when using a command with colorized output all the color gets removed by cut. For ...
5
votes
1answer
171 views

Non-printable-ASCII characters in sshd banner

It's possible to configure a banner for sshd that is to be displayed as a connection is opened, via Banner /etc/motd.ssh in sshd_config. Note that this is displayed before the authentication occurs, ...
6
votes
1answer
86 views

How to highlight logs with bash coloring on vim?

I have some nicely colored logs from some tools with bash color codes. When I view them through less or similar tools it get color rendered by bash (obviously). However it is pain to watch and edit ...
5
votes
1answer
159 views

Documentation on LESS_TERMCAP_* variables?

I see these pretty colors in manpages viewed with less when setting a bunch of these variables. What do they mean, where is the documentation? Is this interpreted by less or termcap? screenshot
0
votes
2answers
84 views

How to change background and text colors in Yakuake?

I like Yakuake, but I don't like the grey background color. I want to change the background and text colors of the Yakuake terminal. I checked the options, but the background color option is only ...
4
votes
1answer
262 views

tmux copy mode search highlight

Is there any way to highlight the searched term in tmux copy mode? Below is my tmux config: # remap prefix to Control + a set -g prefix C-a unbind C-b bind C-a send-prefix bind a send-prefix # ...
0
votes
0answers
83 views

Unable to change xterm colors from .Xresources

I'm configuring the look of xterm modifying the .Xresources but I'm having some trouble changing the colors. I tried with XTerm*vt100.background: #000000 XTerm*vt100.foreground: ...
1
vote
3answers
122 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 ...
3
votes
1answer
70 views

Use a custom colourscheme in Vim

I have customized a color profile for Vim (toto.vim) in the colors folder at : /usr/share/vim/vim74/colors Now, to use it, I am obliged to call it each time I start vim, using the command : ...
6
votes
1answer
199 views

How can I list the available color names?

I'm trying to add some color to my git configuration and I want to know what color names are available on the terminal. I only want to use colors by name so it's easier for others to understand I ...
11
votes
2answers
374 views

Can the empty spaces/background in a terminal be replaced with a random(but pretty) pattern of ASCII characters?

Context and Question There are many ways to colorize the terminal and shell environment. The output of individual commands, such as ls and grep, can also be colorized. Not directly related but ...
3
votes
1answer
58 views

How to show console color in Emacs shell

When I run a command by smart-compile, I get string like this. [32mYour bundle is complete![0m [32mIt was installed into ./vendor/bundle[0m I think [32m and [0m represent color in console. Is ...
1
vote
2answers
58 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
135 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 ...
0
votes
0answers
44 views

Screen caption custom colors

I am having trouble customizing the color of my caption in screen. I can use the 8 standard colors supported (as well as their brighter versions), but I am unable to define a custom color. The docs ...
2
votes
1answer
60 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 ...
5
votes
1answer
90 views

bold text when using 256 colors

I am configuring colors in Mutt, but I think my problem is general to linux terminal. For the 16 predefined colors (such as red) I can make it bold, by specifying brightred However, when using 256 ...
2
votes
3answers
116 views

How can I tell echo/printf in Bash to swallow escape codes, based on a condition?

I have a Bash script that is being run interactively and as a cron job. When run interactively it outputs colored text on the terminal. However, when run in cron it doesn't have a terminal and ...
4
votes
1answer
127 views

How can I colorize head, tail and less, same as I've done with cat?

I've got 'color cat' working nicely, thanks to others (see How can i colorize cat output including unknown filetypes in b&w?). In my .bashrc: cdc() { for fn in "$@"; do source-highlight ...
3
votes
1answer
89 views

How can i colorize cat output including unknown filetypes in b&w?

I like the colors I have in vim. Can I get my output similarly colorized when I do a cat? I like that I can use the colorize tool as in Colorized `cat` for source and script files?. I would like that ...
3
votes
1answer
52 views

How to set light colors instead of bold in PS (shell prompt)

I have an Archlinux installed on headless RaspberryPi. I'm using SSH to connect to it. I've added some colors to bash with editing sudo nano /home/pi/.bashrc and adding: ...
3
votes
2answers
73 views

dircolors: rules for _ext (rather than .ext)

In UNIX, many file extensions do not contain the dot in front, as in bashrc rather than bash.rc or ssh_config rather than ssh.config I would like to add dircolor rules for _config as well. However, ...
5
votes
2answers
2k views

What causes this green background in ls output?

There are two directories shown by 'ls'. Normally directories anywhere are blue on black background. But the first one is blue on green and impossible to read. Why is this? How to make it blue ...
6
votes
3answers
2k views

dircolors: modify color settings globaly

I understand ls uses dircolors to display colored output. dircolors has default database of colors associated with file extensions, which can be printed wiht the command dircolors --print-database ...