Questions tagged [colors]

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

Filter by
Sorted by
Tagged with
3 votes
1 answer
182 views

journalctl output disable colorization

I have a dark background for my console so there's quite a bit of journalctl output that is unreadable. I see lots of information about how to add color! But how do I completely disable it?
user avatar
-2 votes
0 answers
30 views

How can I make dircolors configuration work in emacs shell?

In emacs shell (opened by M-x shell), I have problem with the coloring of the files listed by ls. I want to change the coloring to dircolors.ansi-dark, so I added TERM dumb to the file dircolors.ansi-...
user avatar
  • 89.7k
0 votes
1 answer
23 views

stdin/stderr redirection, piping and color

I've seen a zillion permutations on this question but I think none is an exact duplicate. Can I copy only stderr (or eventually stderr and stdin) to a file, while keeping the colorized output on the ...
user avatar
0 votes
0 answers
10 views

Color management / profiles in a virtual machine under Linux

I have some photo editing software that I intend to run on a Windows VM, with the host being Ubuntu. I already read about color management for the Ubuntu OS itself and I think I managed to set up the ...
user avatar
0 votes
2 answers
26 views

Kubuntu: how to disable color in output of 'watch' command

I am runnung Kubuntu 20.04. Command watch is from package procps. dpkg -l procps shows the version: 2:3.3.16-1ubuntu2 I am redirecting the output of warch to a file, like watch -t "date" &...
user avatar
0 votes
0 answers
25 views

xterm ignores xrdb state unless loaded twice

When I boot up i3, my xterm will be colored and configured as though my Xresources haven't been loaded yet, with default values for everything, but when I query the resource database, all my values ...
user avatar
  • 11
0 votes
1 answer
48 views

how to modify the color of fields of ls -la?

I recently found an example of colored output when using ls: AFAIK that is on MacOS with the BSD implementation of ls. I know how I can change the color of the filenames via LS_COLOR, but I would ...
user avatar
  • 1,066
-1 votes
0 answers
33 views

How can I make autocompletion in bash follow `dircolors`?

Does coloring in autocompletion by readline of bash follow the same dircolors configurations as the output of ls? It does not in my case. See dircolor doesn't work What can I do to make it ...
user avatar
  • 89.7k
0 votes
0 answers
24 views

Retain colors from nodejs script after pipeing with sed

I want to include the contents of one JS file inside a nodejs file, so I've done it like so: NodeJS file: let requireJsBundleConfig = REQUIREJS_BUNDLE_CONFIG_CONTENTS ; // ...do stuff Bash ...
user avatar
  • 109
0 votes
1 answer
23 views

Changed default user and now colors don't work Ubuntu

Working in Ubuntu, windows terminal, WSL, using Linux: So I recently asked two questions: How to bring the colors back to the terminal for a new user How to change the default user I solved the ...
user avatar
  • 11
-2 votes
1 answer
125 views

How does the command created by dircolors work?

dircolors on a dircolors configuration file creates bash commands that, when run, can set up environment variable LS_COLORS. What uses the environment variable? A terminal emulator? If so, why isn't ...
user avatar
  • 89.7k
0 votes
2 answers
19 views

How do I preserve vimcat colors in a pipe?

For example, this will preserve ls's coloring / syntax highlighting: ls -la --color=always | egrep --color=always -i "(foobar|$)" But this will not (so I know it's not a grep issue): vimcat ...
user avatar
0 votes
1 answer
44 views

Display Ansi colors from log

On a linux terminal I have logs with ANSII colors like this 03-25 21:01:19.451 8067 8138 I ReactNativeJS: '\u001b[34m', '================================', '\u001b[0m' and I would like to be able ...
user avatar
  • 172
-1 votes
1 answer
134 views

dircolor doesn't work

I was using bash's autocompletion by pressing TAB key at the end of a pathname. I was also using ls (alias ls='ls --color=auto' in ~/.bashrc). I had trouble recognizing the filenames in the color. (Is ...
user avatar
  • 89.7k
0 votes
1 answer
42 views

New user created in linux terminal and the colors don't work?

I've been working with Linux for a couple years as a CS graduate, but I've been using the root node the entire time. I know that isn't a good idea, so I finally added a user. But the terminal's colors ...
user avatar
  • 11
2 votes
2 answers
65 views

leave color in stdout but remove from tee

I want to see color output when in stdout to the console, but I want to remove it in a captured copy of the output from the tee command.  In my case, command_that_writes_color_to_stdout | tee file I'd ...
user avatar
  • 143
1 vote
3 answers
74 views

Display a message in color by a conventional color name such as Red, Green, Blue, etc

WSL with Ubuntu 18.04 and GNU bash, version 4.4.20(1)-release (x86_64-pc). I wish to display a message with a conventionally named color via argument such as -red, or -green, or -blue or anything like ...
user avatar
  • 115
1 vote
1 answer
72 views

Configure zsh to display my stdin in green

I wanted a simple way of displaying errors in red, and inputs in green in zsh. I found this response, that works well, but it doesn't implement the input color. I'm not really a unix developper, so I ...
user avatar
  • 21
6 votes
1 answer
173 views

How to tell if an image contains a specific color?

Is there a command line tool to tell me if an image contains a specific color? For example, if it contains #ff0000?
user avatar
1 vote
1 answer
29 views

Can ls show read-only files in a specific color?

I like using ls --color=auto and I know how to use dircolors to change the colors of ls's output. I want ls to display read-only files in a color different than "normal" files but don't see ...
user avatar
0 votes
1 answer
25 views

Is there a way to do a custom color remapping of everything shown on the screen in linux?

So I've developed this strange issue recently, which is that I feel headache-y when I read red text (though not for text of other colors, or for larger red objects). I was wondering if there was a way ...
user avatar
  • 159
-1 votes
2 answers
56 views

terminal-emulator settings controlling the rendering of bold typeface

The effect of bold typeface (ANSI: CSI 1 m) seems to depend on the terminal emulator. For example, running the following script on different terminal emulators #!/bin/sh echo "TERM = $TERM" ...
user avatar
  • 3,530
0 votes
1 answer
38 views

terminfo/termcap `tput bold`/`tput md`: portability of bold text

Suppose I have the following color support in one of my portable shell scripts: #!/bin/sh set -o nounset tput_init_linux () { set_fg_color='tput setaf'; reset_color=$(tput sgr0 2>/dev/null); } ...
user avatar
1 vote
0 answers
57 views

Ubuntu: vim gruvbox looks like completely different in tmux

I am a beginner of using tmux and am trying to get vim and tmux working together properly. I am using Ubuntu 20.04 LTS, vim 8.1.3741, tmux 3.0a. All was well until I entered vim inside of a tmux ...
user avatar
2 votes
0 answers
56 views

Not able to invert colors | xcalib -a -i stopped working

I used the command xcalib to invert the colors on my screen and it was working fine for a long time till suddenly somehow it stopped working.I am unable to diagnose as to what has caused this. Now ...
user avatar
  • 143
0 votes
1 answer
69 views

Colour codes for 88 colours

I am looking at the colour codes Have seen the 88 colour, any idea what bit length is used for 88 colours? 3-Bit (2^3) | 8 | 8 (Primary) (000 to 111) 4-Bit (2^4) | 16 | 16 (Basic) (0000 ...
user avatar
  • 13
1 vote
1 answer
39 views

grep of text behind colored input

I have a command which generates colored output. I wish to grep the plain text of that command (while still preserving the color) for brackets. If I grep -F '[', every line matches, due to the color ...
user avatar
1 vote
0 answers
40 views

Hard to read and non visible UI elements under XFCE with dark themes

I am using XUbuntu 20.04 (XFCE 4.14) and have selected Greybird-dark style and theme which are in tune with my low light environment setup that I have found to be easier on my eyes. However, some UI ...
user avatar
  • 11
2 votes
1 answer
257 views

Zsh can't find terminal definitions on Mac

Perhaps it's from updating Brew (I use Homebrew Bash and Zsh on Mac), but Zsh can no longer find xterm definitions. For instance, in my .zshrc file I have the following: export TERM=xterm-256color ...
user avatar
0 votes
1 answer
126 views

How to change the font COLOR for Linux Mint XFCE desktop

Using Linux Mint XFCE 20.2 and a while back I installed a KDE Plasma desktop to try it out. Ended up not liking it and just stuck with this one. For some reason, while I was switching between KDE and ...
user avatar
1 vote
0 answers
63 views

How can I disable coloring of bash autocompletion of `cd` in bash?

In NixOS, both ls and bash autocompletion of cd color their results in a way that makes reading the names of writable directories very difficult (is it just me?). I don't find a default ~/.bashrc that ...
user avatar
  • 81
1 vote
0 answers
39 views

Color escape codes showing up instead of colors in PS1 prompt [duplicate]

I'm trying to set up my prompt to conditionally display whether I am in a git repo, and if so, to display the branch. And I want it color coded, so I have it use some color escape sequences to make it ...
user avatar
  • 111
0 votes
1 answer
80 views

eval command giving error in WSL Ubuntu

I am trying to use the solarized color scheme on wsltty using this tutorial and everything else worked except for the part where I need to copy these commands: source ~/.mintty-colors-solarized/mintty-...
user avatar
1 vote
1 answer
117 views

Setting LESS_TERMCAP_* variables with $(tput ...) in ~/.profile not working

This is my ~/.bashrc: # ...unnecessary lines skipped... # man colors LESS_TERMCAP_mb=$(tput blink) # start bold LESS_TERMCAP_md=$(tput setaf 2 ; tput bold) # start bold LESS_TERMCAP_me=$(tput sgr0) # ...
user avatar
0 votes
0 answers
23 views

In `less`, how to get search patterns to match ignoring any colors/highlighting/ansi-raw-stuff? (like the default when looking at a man page)

eg, in the man page for less itself, there's a bit like "less does", with the word "less" in green and the word "does" in default formatting, but nevertheless, when I hit ...
user avatar
  • 176
0 votes
1 answer
99 views

How to dynamically switch terminal colors for all open terminals?

I use gnome-terminal on Ubuntu / Fedora. For color schemes I use base16-shell, along with its corresponding settings for my editor vi. I have configured my .bashrc to set the base16 theme on start up. ...
user avatar
-1 votes
3 answers
56 views

How to turn off the color in my $PS1?

The output in my terminal contains many colors,i want to show all characters only in white color on my black background . echo "$PS1" \[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\...
user avatar
  • 35
0 votes
1 answer
136 views

Which $TERM renders bold text in vim as well as display status line?

I am looking for a $TERM which displays bold text in vim and display airline statusline too. To know what I mean,I have screenshot of two identical files opened by vim but using different terms by ...
user avatar
  • 113
0 votes
0 answers
62 views

GStreamer incorrectly believes capture card is outputting BT.601-525 video

I've been trying to get GStreamer to work with my Hauppauge ImpactVCB-e so I can capture some VHS tapes. I've followed the linuxtv guide on how to make in-sync analogue captures with GStreamer here ...
user avatar
  • 1
0 votes
1 answer
153 views

Confused On Colors Xterm Vs Zsh - How to set Xterm without breaking Zsh colors?

I am confused by the color settings for xterm (or uxvt in my case but uses the same) verus the zsh PROMPT colors. If I change the xterm colors then it changes the zsh prompt colors and I think it ...
user avatar
  • 507
0 votes
0 answers
16 views

How do I swap blue and yellow in X11/Mate?

I use postmarketOS with Mate DE, I noticed my wallpaper was blue where it was supposed to be yellow so how could I fix this?
user avatar
  • 1
0 votes
1 answer
161 views

Problem with vim colorscheme st terminal

I'm using hybrid_material colorscheme for vim. When I open my terminal (st) and type st -e vim, my colorscheme doesn't preserve (I have everything in black). Here are some screenshots: Black vim is ...
user avatar
  • 113
0 votes
2 answers
45 views

Colouring arguments based on a numeric value

I have a number of string arguments passed to a bash function, each one to be printed on a separate line. Would like to modify the code in such a way that the numeric value of warn is the number of ...
user avatar
  • 317
1 vote
0 answers
143 views

How to fix vim color scheme in other terminals?

The problem I'm dealing with right now is I don't like gnome-terminal. I've tried alacritty, konsole, st (currently in use), and they're all having the same issue – they break my vim color scheme. ...
user avatar
0 votes
1 answer
23 views

changing colour of results from terminal commands

When I call commands in a terminal the results are shown in grey. How can I change the colour to white? With dircolors on some other easy way.
user avatar
  • 317
0 votes
0 answers
25 views

Display file names produced by head to show in red

I am using find together with head to print the first n lines in the terminal. Would like to show the lines containing the filenames in red. Have done an attempt with sed, but having problem with \e. ...
user avatar
  • 317
0 votes
0 answers
51 views

Global dark mode switch in arch [duplicate]

I am looking for a way to have a shortcut to toggle from light/dark mode on my Arch (Artix) system ,with just a window manager. The only thing that comes to mind is to grep the configs of every ...
user avatar
  • 23
1 vote
1 answer
81 views

How to get the on-screen width of the prompt produced by PS1 (with or without @P)?

Suppose, for example, that PS1 has the value shown below: '\w (\[\e[32m\]${__git_ps1_branch_name}\[\e[0m\] \[\e[31m\]*\[\e[31m\]%\[\e[0m\]>)\$ ' ...where __git_ps1_branch_name is some string, like ...
user avatar
  • 12.7k
3 votes
1 answer
154 views

awk color output

I am trying to find duplicates on a disk containing all my pictures. for this purpose I created a file containing potential duplicates (using some exif and check sum properties but this is not the ...
user avatar
  • 83
0 votes
1 answer
98 views

Trouble with customizing my PS1, or generally Bash prompt [duplicate]

I'm in Linux Mint 20.1 Cinnamon, not that it matters this time, I have trouble with customizing my PS1, or generally Bash prompt to colorize the last char $ (user); # (root). Current PS1 code in ....
user avatar

1
2 3 4 5
17