Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [colors]

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

0
votes
1answer
47 views

Changing the color of colored outputs

My terminal has a white background. When commands print yellow text to the terminal, I can't see the text clearly (due to low contrast). I thought: wouldn't it be great if all the yellow text that ...
0
votes
1answer
23 views

sct (setcolortemperature) segfaults with cron

Debian stretch user here. I wanted a screen flash every ten minutes. After trying a couple of alternatives (includeing xrefresh) I decided to use sct. It works in shell but does not work with cron. ...
0
votes
0answers
28 views

Weird colors with vim on xfce-terminal

The situation is when I pick any theme or colorscheme for VIM is impossible set correctly on terminal. The background is inconsistent, even the colors changing with regard to gVim. Look: Inconsistent ...
1
vote
1answer
32 views

grep breaks formatting of systemctl

If I call command systemctl without grep, then formatting looks correctly: Now I want to filter only lines with 'yarn', but this time line is broken into two parts: same happens when console is two ...
-1
votes
0answers
20 views

Can gvim be restricted to 16 colors?

I am trying to match gvim's color scheme to my gnome-terminal, which currently uses the dark theme, as described in this question. I have found a set of scripts, base16-vim which has a theme ...
0
votes
0answers
65 views

How to display bash prompt colors in tmux? [duplicate]

I'm using ubuntu 18.04 and tmux 2.6 echo $TERM in bash returns xterm-256color. In tmux it returns screen-256color On my terminal it looks like this: But when switching to tmux it looks like this ...
0
votes
0answers
10 views

Tmux: change color of separated line and spaces between two panes [duplicate]

I'd like to change green color to something else, and spaces between two panes to other value, how could I achieve this?
1
vote
2answers
38 views

Changing the color of git branch output?

In my .bash_profile I have a parse_git_branch function from the internet, and a PS1 to color some of my output. If possible, I would like to make my git branch name colored red, instead of white. ...
1
vote
2answers
64 views

How can I use “source-highlight” with “git show”?

Using source-highlight in conjunction with less works really well, but I'm struggling to see how I can use it with git show because there's no file extension to clue source-highlight about the ...
1
vote
1answer
30 views

tree(1) colours not properly interpeted by watch(1) even with --color option

I am using a simple combination of commands to "monitor" a bit of my filesystem change: watch and tree. Except I want colours and can't get it. Here's what I thought should work: watch --color 'tree -...
0
votes
1answer
32 views

Can I configure my .bashrc to highlight the fact that I'm in a Prod directory?

Currently, I'm using the following: export CLICOLOR=1 export PROMPT_DIRTRIM=6 PS1='${debian_chroot:+($debian_chroot)}\[\e[0;31m\]\u\[\e[m\]@\ [\033[01;32m\]\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\...
-1
votes
1answer
27 views

Why does the Solarized colorscheme look different in vim than it does in iTerm2?

In iTerm2, the background color looks like this: While in Vim, the color looks like this (I'm using https://github.com/altercation/solarized): I'd like the first version everywhere. Now, I've never ...
0
votes
1answer
57 views

Neovim colour scheme in Urxvt not rendering correctly

I'm trying to use a 256 color theme in Neovim (this one: https://github.com/ayu-theme/ayu-vim), but can't get it to render correctly on Urxvt, even though it seems to support 256 colors: Here is the ...
0
votes
1answer
36 views

What's the difference between ZSH themes, prompts, and terminal based themes?

I perhaps may have started overthinking this, but I also couldn't find a suitable explanation for it. I recently installed oh-my-zsh and it comes with several themes that change the way the "prompt" ...
1
vote
1answer
104 views

Can the Linux console display 16 colors?

I'm reading the manual page terminfo and I wonder if the Linux console may use the terminal type linux-16color instead of the terminal type linux. prompt% infocmp linux linux-16color comparing linux ...
-1
votes
2answers
39 views

Why is tput failing silently on TERM=vt100

I'm using zsh with iTerm as my terminal emulator on macOS and my environment has TERM=xterm-256color by default. If I run tput setaf 3 it exits with code 0. If I set TERM=vt100 and run tput setaf 3 ...
-2
votes
2answers
49 views

LS_COLORS how persist after sudo su

I have a username created on my machine and the username is added to sudoers file to have root access. My .bashrc file also contains a script which is saying to change the colors for the PS1 and the ...
0
votes
0answers
28 views

Colors in Terminal and VIM with Windows Subsystem

I'm running Debian GNU/Linux through the Windows Subsystem, and I thought it was pretty cool. However, I'm having issues setting up colors in my terminal and VIM. I used to use Ubuntu as a thing to ...
0
votes
0answers
39 views

Print PDF from command line: choose colour profile for pages

I have one network printer setup on my Fedora 28 system as two different printers: Printer-BW is set-up to print in BW Printer-colour is set-up to print in colour all other settings are the same. I ...
0
votes
1answer
80 views

Bash and Ksh background color - PS1

To change the back color my command is : PS1='\[\033[46m\]' This works fine for bash but in ksh it will but a [] in front of my server. Example : Bash : [USER@SERVER] (in color) Ksh : [][USER@...
-1
votes
1answer
58 views

Linux VT supports 8 colors but there are actual 16 distict ones. Why is so that?

According to Wiki's https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit article there are 8 "Standard colors" and 8 "High-intensity colors". When I checked terminal capability of the Linux' virtual ...
-1
votes
2answers
77 views

Unable to set LS_COLORS in bash using script

I am trying to set the LS_COLORS environment variable using a launcher script. However this variable is not being set. Steps Downloaded LS_COLORS to ~/.dircolors Added TERM=xterm-newTerminalEmulator ...
0
votes
1answer
53 views

Git status: Coloring deleted files

I'm running git 2.17.0 on Cygwin. Doing a git config --get-regexp color shows me .... color.status.added bold yellow color.status.changed red color.status.untracked white color.status.branch bold ...
0
votes
0answers
90 views

Vim color scheme in bash and byobu

I have a problem with the vim color scheme installation. I did the following: 1) a folder was created ~/.vimrc/colors 2) I put the color definition monokai_pro.vim there 3) I edited the file .vimrc ...
0
votes
2answers
30 views

Linux: Create new type in $LS_COLORS

My distro is RHEL. The LS_COLORS variable is made up of things like rs, di, *.tzo, etc. I was wondering how I could add a new extension type. Similarly in what order are the extensions processed. If ...
1
vote
1answer
49 views

Shell: Changing ls color output if folder is Git repo

My distro is RHEL so I have a DIR_COLORS folder and an LS_COLORS variable. I know how to modify the colors. I also know how to check if a folder is a git repo. What I don't know is how to have ls ...
1
vote
2answers
26 views

Process prompt directives inside $psvar without PROMPT_SUBST

I'm using precmd to generate a coloured git status in my prompt. I generate a sting like %F{green}master%f%F{red}%f, and assign it to $psvar[1]. My prompt includes %1v to display the text. However, ...
0
votes
1answer
334 views

Check if terminal supports 24-bit / true color

In a shell script, how can I test whether or not the terminal supports 24-bit or true color? Related: This question is about printing a 24-bit / truecolor test pattern for eyeball verification
2
votes
2answers
89 views

Alternate prompt, command, and output color

I would like to make my terminal more readable by having commands alternate the default text color. Ideally, this would only affect uncolored text. I'm rather new to linux, so any hints to point me in ...
0
votes
1answer
68 views

How to change ls color for entries with extended ACL?

On my system, directories and files with extended ACL's are printed like this: which is very difficult to read when it's printed in a 10pt font like I like my console. My LS_COLORS variable is ...
0
votes
1answer
107 views

remove colors from zsh tab-completion

I don't want to see colors in the suggestions of zsh tab-completion. They make the reading harder for me. How can I do that? Here is my .zshrc: # _ # _______| |__ # |_ / __| _ \ # / ...
0
votes
0answers
101 views

terminal in Tmux is 256color but vim isn't

I am a new Ubuntu user. Recently I installed tmux on my Ubuntu 16.04. The terminal screen in tmux shows 256 color correctly however when I opened vim within tmux, the color was different from what ...
0
votes
0answers
186 views

How to customize the color scheme in Uxrvt?

Different colors are assigned to different text. For instance, in the default Ubuntu color scheme, directories are blue, regular text is gray-white, executable files are green and so on. How to ...
0
votes
1answer
76 views

How to get background and foreground color values from xrdb in shell script?

As in how can I get the *.foreground color value obtained with xrdb -query assigned to a variable in the script. I'm trying to get both background and foreground colors into two variables that will ...
0
votes
0answers
55 views

How to change color of any IP address in iterm?

How can I change the color of any IP address displayed on the iterm2 (CentOS)?
1
vote
1answer
381 views

Color Variables on figlet!

I'm Creating a Login Screen when I start my CLI Arch Linux and I build a script on the file /etc/bash.bashrc Like as it follows below: #COMMANDS CREATED INSIDE /ETC/BASH.BASHRC FILE # USING ANSI ...
-1
votes
1answer
37 views

Losing color when starting screen session

I have a RHEL 6.9 host that loses its color when starting a screen session. Vim colors and directory colors exist before starting the screen session. Here are a few settings to help troubleshoot: $...
2
votes
1answer
52 views

colorize hostname in command line prompt [duplicate]

I wish to set a custom color for the hostname portion of my command line prompt (in bash). In my .bashrc file, the default command line prompt is: PS1='[\u@\h \W]\$ ' To colorize the hostname only, ...
0
votes
0answers
21 views

change the VI color settings for my session via a shell script

I need to change the VI color settings for my session via a shell script. I do not want to edit the .vimrc file because that will affect everyone who logs in as the ORACLE user. I need the syntax to ...
2
votes
0answers
37 views

Highlight matched character foreground color?

I have setup Vim to highlight trailing whitespace: set listchars=eol:↵,nbsp:◦,tab:―→,trail:⮿,extends:⮚,precedes:⮘ set list " Show problematic characters. " Also highlight all tabs and trailing ...
0
votes
0answers
107 views

Help! Google Chrome on Linux Ubuntu shows weird Color/Gradient Banding

Chrome on Linux Ubuntu shows these weird Color/Gradient Banding, "mostly on darker images". Mozilla Firefox shows perfect. (some say it uses dithering). I reinstalled Ubuntu (several versions), ...
0
votes
2answers
67 views

How can I color every output on a linux shell

I often use a colorizer "ccze" which is pretty cool, - it colors text on my shell. I just pipe any output through it. cat /etc/nginx.nginx.conf | ccze -A How can I do this with all commands by ...
1
vote
1answer
55 views

How to change color settings in DrJava ? (error)

As said in the title: when I click "Apply" in settings of DrJava, it says: Could not save changes to your ".drjava" file in your home directory. java.io.IOException: Permission denied ...
1
vote
1answer
36 views

colourise grep output

I have defined grep as alias grep="grep --colour -iTHn" So, the output is: <filename> <lineno> <line with matching word> Now, with my dark terminal, the filename color is ...
0
votes
1answer
197 views

dialogrc file doesn't change coloring of menu boxes and text

I am using the dialog tool (based on ncurses) to create small windows for a limited UI. However, I can't get colors. Whate ever I do doesn't change the default colors of the terminal. I create after ...
0
votes
0answers
177 views

256 colors on tmux not working properly

I have this vim theme: and enabling 256 colors on tmux, looks different: Keywords highlighting is working fine but the background color changes... How can I fix this?
0
votes
1answer
43 views

How to enable automatically colorize the output of tree without using -C flag in bash all the time?

I am tired of using the -C with the tree all the time. I would like to tweak the tree to colorize files and directories to its automatic behavior so that I don't have to type the -C flag all the time. ...
0
votes
0answers
77 views

Tilda terminal color settings revert back to original once restarted

I just installed Arch with gnome and so far I'm mostly happy about it, but there are a few things I just can't get to work. One issue I'm having is Tilda doesn't remember color settings. All other ...
0
votes
1answer
51 views

xterm cursor hides character in reverse video mode

How can I prevent xterm version 327-2 (on Debian testing) from hiding the character in reverse video mode? For example, if I run xterm -geometry 20x2 -e /bin/sh -c "echo -ne '\033[0;7mtesting\033[0m\...
1
vote
0answers
41 views

Show colors from child shell in parent shell

I solved this once, but I cannot remember how I did! In my child process, I have this: echo -e "some control chars" In my parent process, it will show the plain string, without any terminal styling....