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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [colors]

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

-2
votes
2answers
37 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
12 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
30 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
27 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
39 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
48 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
25 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
30 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
23 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
40 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
17 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
127 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
80 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
60 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
53 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
47 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
84 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
52 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
51 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
135 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
35 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
42 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
19 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
26 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
86 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
58 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
41 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
33 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
113 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
113 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
41 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
56 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
39 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
36 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....
0
votes
0answers
95 views

How to Change Color schemes in QT5 applications?

I'm using Majaro for two days. I've found awesome themes, but the default qt applcations color schemes have a boring green background I wanted to change. Themes and no other configurations affects qt ...
0
votes
1answer
445 views

How to permanently set default color of feh's background to black?

Whenever I open an image in feh, the background is set to the standard, dark gray and gray checkboard pattern like this: As you can see, it's the checkboard background. How do I permanently change ...
3
votes
2answers
209 views

How to grep MATCH colored input?

Say I have output from a command that is colorized for the terminal. I want to match any line that contains the color yellow. How can I do this in grep, eg: mycommand -...
0
votes
1answer
67 views

Differentiate/decorate the command line input and output (with color or indentation)

In a CentOS bash, (or, if there is a general way in other bashes, like Ubuntu, better), how can I differentiate commands typed by me with the output of the commands? I ask this because when I use a ...
2
votes
1answer
43 views

Wrap text accounting for non-printing characters

This question asks about wrapping text at a certain column, and people suggest using fold or fmt but as far as I can see, these simply count characters and don't allow for non-printing characters. ...
1
vote
2answers
286 views

How to get colored output with tail command [duplicate]

Below is the tail statement: tail -4 FDECMP1_$$.log I need to print the last 4 lines of file FDECMP1_$$.log in Red.
2
votes
1answer
158 views

Prevent tput escape sequences when redirecting script output to a file

I have a shell function that colorizes a filename using tput. color=$( tput setaf 1 ) normal=$( tput sgr0 ) colorize() { echo "${color}$1$(normal)" } When I call the function, the terminal ...
0
votes
0answers
31 views

What is the meaning of “#nnnnnnnnnnnn” in GNOME terminal configuration file?

The file ~/.gconf/apps/gnome-terminal/profiles/Default/%gconf.xml contains: <?xml version="1.0"?> <gconf> <entry name="use_theme_colors" mtime="1517920383" type="bool" value="...
2
votes
1answer
260 views

Add color to specific lines of a bash script

I'm trying to make a "Cryptocurrency news" script using curl and so far it works, but not completely the way I intended. Here is the code for the main part of the script: curl -s https://www....
1
vote
1answer
159 views

emacs: background color doesn't change when I load different themes

I'm using GUI Emacs. My background color remains the same no matter which custom theme I load. It may not matter, but when I load a different theme, I always get the message: message [sml] sml/theme ...
0
votes
1answer
238 views

linux + tput: No value for $TERM and no -T specified

I use in my bash script the tput command in order to colored the text as tput setaf 2 when I run the script from putty or console every thing is ok but when I run some external WIN application ...
2
votes
0answers
168 views

Change Search Highlight Color In Less

I am a bit lost here on customizing the search/find highlight color or font format if you will. I understand that using LESS_TERMCAP_* we can alter the font format of less display. Full capabilities ...
2
votes
2answers
199 views

Colors are different when SSHing onto a Linux machine from iTerm2. How can I standardize them?

Originally posted this on the apple stackexchange, but I suspect the solution may be Linux-ey, e.g. adding something to my .bashrc. Currently, when I SSH onto a Linux machine, the ls output colors ...
0
votes
0answers
56 views

How to automatically reset ICC color profile after running Firefox

I am running Linux Mint 18.1 Serena on an HP EliteBook 8460p. Whenever I run Firefox (Mozilla Firefox 50.0.2) and then sleep the computer, when I wake it up again I find that the colors are all wonky. ...
3
votes
1answer
178 views

How can I color specific parts of the rsync output?

I run this command to rsync some files from Windows (Cygwin) to my local NAS: rsync -PaSq --delete -e "/cygdrive/C/cygwin64/bin/ssh -i keyfile -p XXXX" "/source/" admin@192.168.1.1:/destination/ I ...
1
vote
1answer
517 views

how to disable color in output of 'top' command?

I'm trying to process 'top' output to set CPU performance data. When I just grep the output it is colorized: or The numbers are bold, and it adds a lot of unnecessary data to the output: I tried to ...