1
vote
0answers
31 views

How to give each virtual terminal in GNU Screen it's own background color?

I have a dream: I want each virtual terminal within GNU Screen to have it's own unique background color. I think I can fake it in an .bashrc script that emits xterm control codes to set background ...
1
vote
1answer
33 views

What's the deal with terminal colors?

There are 256 terminal color escapes available: 8 "system" colors (0 - 7) 8 "bright" system colors (8 - 15) 216, or 6*6*6 "RGB" colors (16 - 231) 24 "grayscale" colors (232 - 255) The "RGB" colors ...
1
vote
2answers
33 views

Relative bash colors that work with all schemes?

How can I have a "relative" color in bash, rather than hardcoded one? If I specify to use yellow "\033[93m" then it looks bad for those people that use white background. Is there a way to specify not ...
0
votes
0answers
21 views

Customized bash prompt (PS1) issues when text moving to next line and back.(word wrapping) [duplicate]

I'm using a customized prompt which includes and output of a "case" script and also colors it. When the text is colored I'm having line wrapping issues, when I remove the color - the issue is gone. ...
0
votes
2answers
47 views

Making PS1 prompt refreshable

I want my prompt to be changed based on an output of a certain command. and based on the command result to add a color. example: run the command: cphaprob stat | grep local | awk '{ print $NF }'` ...
1
vote
0answers
20 views

Path slashes disappear on coloured bash prompt

So in my .bashrc, I set my prompt to be colourful by setting PS1 to \[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$ For some ...
1
vote
2answers
118 views

VIM/Screen background color is inverted for non-text characters

I'm trying to use a vim while inside a screen session. For some reason, the background color for the parts of the screen without text are displaying as dark while the parts with text are displaying as ...
1
vote
1answer
25 views

`nawk` “doesn't work” with `make`? Why?

I have the following alias: alias mca_color='nawk '"'"'BEGIN { arr["Creating shared object"] = "1;31";} \ { l = $0; for (pattern in arr) \ { gsub(".*" pattern ".*", "\033[" arr[pattern] ...
1
vote
1answer
98 views

*live* vim syntax highlighting on stdout?

I want to have some program's output colorized as it apperas on terminal. I know that utility named highlight does the this. But: it has a limited set of built-in language support, and I want ...
0
votes
1answer
249 views

howto change screen hardstatus dynamically with format, from shell?

howto change screen hardstatus dynamically with format, from shell ? I successfully configured screen using 256 colors and tabs and so on, here is my .screenrc : http://pastebin.com/g8XbMWBH I use ...
2
votes
0answers
150 views

Bash: color prompt and command differently from output stream

I'd like to color the prompt and command of my shell differently from the text printed in the output stream. My current export for PS1 is as follows: export PS1="\e[0;36m\h:\e[m ...
1
vote
1answer
169 views

Is it possible to have App-distinct Color Scheme in ConEmu?

I am presently using Bash (with Cygwin), as well as Powershell, both using ConEmu. I'm using bash.exe and powershell.exe via tasks. I'd like to use different colour schemes for the different ...
0
votes
1answer
366 views

ls not using the LS_COLORS environment variable

I am using the configuration below for ls. I have changed the $LS_COLORS variable to display directories as cyan colored using di=01;36. However, when I run ls, directories show in purple. If I run ...
2
votes
1answer
326 views

gnome-terminal - color palette

I'm trying to assign color palette on my gnome-terminal but it doesn't change at all... any clue? Screenshot > http://i.imgur.com/MXXhoOo.jpg Aditional info: Fedora 18 64bits (shiny new) GNOME ...
0
votes
2answers
92 views

Sending special bash characters to a custom function

I read this great article on customizing the bash prompt: http://blog.superuser.com/2011/09/21/customizing-your-bash-command-prompt/ I also read about using 256 colors in bash: ...
0
votes
1answer
66 views

Colorize ls-output by filetype [duplicate]

Every once in a while I have to list some files (~20-50) in Bash on Linux || Mac. These files are from four different file types. ls nand2tetris/myChips/ And16.**hdl** And16.**cmp** ...
1
vote
1answer
146 views

Bash colorless on Plesk machine (debian)

Somehow from one day to the other, on my plesk server, the bash/terminal was colorless. A friend of mine managed to get it coming back to life (color, that is) by making some changes to the bash ...
0
votes
1answer
97 views

Fork processes in a script using different colors for each process output

I have a script that operates on 4 folders. Because they are completely independent, I'm passing in the folder path to a function and then forking that function. It works, but the output to the ...
1
vote
2answers
223 views

How do I change foreground color based on which command line program is running? (Bash and PowerShell)

I'd like to change the foreground color based on which program is running. Is this possible in either Bash or PowerShell?
8
votes
3answers
809 views

bash: colorized man page

Where do I have to take a look at in the system to colorize the man pages? The man pages are viewed with less, so I tried adding the following lines to my .bashrc to change the colors: (Which works ...
2
votes
1answer
650 views

colorized bash prompt overwrites previous command's output if the output doesn't end with a newline

On my system, when using a colorized prompt, the last line of the previous command's output gets overwritten if the last character of the output isn't a newline. Ex: Using the default, non-colored ...
0
votes
3answers
576 views

Customizing BASH output colors?

How do I customize bash colors for command output? For example; I run ls and want directories and files to be a different color. How do I accomplish this? I see that distro's are doing this but I ...
3
votes
1answer
542 views

How to set the command prompt's color in Bash?

Browsing the last command's results in Bash is a bit hard because the command prompt and results are the same color. This makes it hard to separate the results of consecutive commands. How do I ...
1
vote
1answer
1k views

Configure GNU Screen's colors?

GNU Screen gives my bash prompt nice colors, though the dark blue is hard to read on a black background. I can change the ls colors using /etc/DIR_COLORS but the bash prompt in screen doesn't get ...
1
vote
4answers
1k views

less emulate a TTY to preserve piped color output

When you pipe something through less, the program usually discards color codes because it's not outputting to a TTY. So you have to add --color=always to the options for it to work. ls -l ...
1
vote
2answers
1k views

Arch Linux: colors from terminal in bash script?

In addition to ArchLinux - yaourt: save updatelog? With tee I am able to get the output at a file and at the terminal at the same time. But when I execute yaourt -Syu | tee yaourt.log in a bash file ...
0
votes
2answers
1k views

How to check terminal color capability from command line?

I write: $ infocmp -1 xterm ... colors#8, bold=\E[1m, blink=\E[5m, ... $ tput -Txterm colors && echo OK || echo err 8 OK $ tput -Txterm blink && echo OK || echo err ...
0
votes
1answer
2k views

“Reset” colors of terminal after ssh exit/logout

When I ssh into a remote server, I like the colors of the terminal to change. I use setterm on my remote ~/.bashrc file to get this done. However, when I exit, the terminal colors are not reset to the ...
2
votes
1answer
243 views

How to get Bash colours in a Word or PDF document

I've got a Bash script that outputs results with pretty Bash colours, and I need to include the output with colors in a Word document. I would like to avoid putting a screenshot as the ouput is ...
3
votes
1answer
476 views

Custom syntax highlighting in Bash shell (using keywords)

I know it's possible to change the $ user@hostname colors, but is it possible to color different things? Could I make all numbers/integers a certain color. Or set certain keywords to be bold?
5
votes
3answers
13k views

Disable color in shell/terminal

I want to disable all color in my shell. Not ls, not nano, not vi, nothing. What's the best way to achieve this?
7
votes
3answers
1k views

futurama bash scheme

Is there a color scheme for the BASH shell that matches the blackboard colors on futurama? (If it matters, I'm on OSX.)
1
vote
2answers
1k views

emacs, colors in term-mode

I use Emacs and I run bash with M-x term command. There is a problem: colors in the *terminal* buffer aren't the same as in Gnome Terminal, and they are worse (do you need a screen shot?). How can I ...
3
votes
1answer
664 views

How can I change the color of xterm titlebar?

I want to automatically change the color of my xterm titlebar. I would like to put code into my .bashrc so that the color changes automatically (say depending on the directory I am in). I know how to ...
1
vote
1answer
350 views

How do I change the color of binaries listed by 'ls'?

In Mac OS X, when I do ls the binary files have red color, how change this color to green? Similar to other Unix.
3
votes
3answers
1k views

Custom colors for shell

How do you customise the default colours in the shell? Say I want to make the standard cyan, magenta and yellow slightly lighter. There is a method shown here for OS X Terminal using drag and drop ...
6
votes
6answers
2k views

Immediately tell which output was sent to stderr

When automating a task, it is sensible to test it first manually. It would be helpful, though, if any data going to stderr was immediately recognizeable as such, and distinguishable from the data ...
6
votes
2answers
8k views

Colors in ssh connection

I have a colorful bash terminal (e.g. ls and vim show colors when configured to do so). How can I have these colors when connecting to a remote server via ssh?