Questions tagged [colors]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
41 views

Commands don't turn blue/green in terminal

Recently i switched from kali live to a external drive and installed kali with the installer. I updated everything but since the switch my terminal commands do not turn blue anymore. I have searched ...
2
votes
0answers
24 views

Is it possible to access the “frame buffer” so I can change the properties of each pixel?

I don't know if my question is technically correct. Here is what I want to do, I'm running linux with xorg. The colors on my screen is way too dull. Its not my hardware because when I had windows my ...
0
votes
0answers
10 views

Why is unix.stackexchange.com not using dark mode? [migrated]

StackExchange has had an option for a while now that allows users to use the dark mode theme on the website. I've noticed that all the stack exchange sites I use, are in dark mode, yet this one is not....
1
vote
0answers
15 views

Capture colors with GNU screen hardcopy

Using GNU Screen (Screen version 4.06.02 (GNU) 23-Oct-17), I want to use hardcopy to save the colors of a specific screen. When I run screen -x nameofmyscreen -X hardcopy /tmp/hardcopy, the resulting ...
1
vote
1answer
26 views

Bright colors do not display in watch --color

Given the following python script to print colored text: for i in range(30, 100): print(f'\033[{i}m{i}\033[0m', end=' ') print() Running on bash displays bright ...
0
votes
0answers
26 views

What do the different colors in ls output mean? [duplicate]

What do the different colors in the Linux ls command mean?
0
votes
1answer
51 views

ls --color=auto, why they offer such an option since there is --color=always by default?

From man ls: With --color=auto, ls emits color codes only when standard output is connected to a terminal. Just being curious. What would hurt if I emits color when standard output is not ...
0
votes
1answer
25 views

Discord shows wrong colors in Unity

I'm using Linux Mint 20 XFCE if that helps (I've used a Ubuntu 16.04 system before with Unity and the same happened) Discord is showing odd colors on text/images etc... Here's an example https://imgur....
0
votes
2answers
38 views

sourcing in bash doesn't mimic sourcing in tcsh

The file below, which I've called /tmp/ltSortedList, when sourced in tcsh, outputs lines in different colors: echo "\033[0;34m R:0 2020 12 10 18:53 regularFile "\\e[0m echo &...
0
votes
0answers
17 views

Unable to get output of watch --color 'make -j8' in color

I have a question about coloring the output of make while running watch on it. All I want to do is get the errors and warnings of the output of make in color at regular intervals, while I keep ...
1
vote
0answers
63 views

How do I adjust the display color whitout any hardware (e.g. spectrometer)?

I recently replaced my laptop screen, and when it was first installed, its color was too greenish. I go into Windows 10 and use dccw.exe(a windows built-in color calibration tool) adjust the gamma and ...
-10
votes
2answers
112 views

How to change dmesg output colors in terminal? [closed]

There are some nasty colors in dmesg output. How to change this? Looked into .Xresources and .bashrc, no colors defined there matched what I was searching for.
0
votes
1answer
114 views

zsh: How to set LS_COLOR to show any tar file as different color than white?

I am using zsh When I do ls: for any compressed file type such as .tar.gz, .tbz2, .zip I get them as white and not bold.On the other hand, in bash its color is red and in bold. Is it possible to give ...
0
votes
1answer
57 views

How to set $LS_COLORS variable in TTY

I'm trying to make my console gorgeous with setting custom dircolors. For that I'm doing eval $(dircolors "dircolors.ansi.dark") where dircolors.ansi.dark is my custom file with preffered ...
1
vote
1answer
50 views

How can I keep the color output of git status when piping it through grep?

I'm trying to compress the output of git status a bit, for a "system status" script that runs whenever I log in to an ssh session. I'm hoping it'll nag at me and encourage me to commit more ...
1
vote
0answers
28 views

How do I get “other” colours in my bash prompt? [duplicate]

I've never coloured my bash prompt before, but after a quick googling I'm running: PS1='\[\033[0;31m\]\u@\H:\[\033[0;33m\]\w\$\[\033[00m\] ' giving me red username/host followed by yellow working ...
0
votes
1answer
35 views

How to set background color of $PAGER?

I usually set my terminal with transparent background. But, when I need to read a lot of text such as man, less, cat, etc., I want my background color to be solid black. I can change the backgrounds ...
1
vote
1answer
41 views

Change terminal color set

I have a Raspberry Pi hooked up to an E-Ink screen. To make it more readable, I'd like to basically invert all the colors (it is currently white text on black background, I'd like black text on white ...
0
votes
0answers
47 views

ls colors don't match LS_COLORS variable

I am running Konsole on a SLED (v11.4) Linux installation. I have a ~/.dircolors file to set the LS_COLORS evaluated in my ~/.bashrc. After sourcing the ~/.bashrc file if I echo $LS_COLORS it shows ...
3
votes
1answer
92 views

Run X programs in different color depths individually?

I am trying to run various programs on xorg in different color depth modes. For example, I want to run my wm in 8 bit, but I want to run browsers in 16bit. Is this possible? Many browsers do not work ...
1
vote
1answer
76 views

How to make grep to blink the matched pattern?

What color-schemas should I set to grep's GREP_COLORS ENV-Variable to enable the blinking mode on matched pattern?
0
votes
0answers
44 views

Firefox 78: change bookmark bar color in userChrome.css

I have this in my userChrome.css: #main-window #PersonalToolbar { background-color: green !important; color: white !important; } After upgrade from Firefox 68.x to 78.3, this no longer has ...
0
votes
1answer
42 views

What is causing corrupted symbols in prompt? Suspect I'm missing an escape somewhere

I am getting some "corrupted" symbols diplaying both in my terminal prompt and also in the lowest portion of my vim instance. These seem to be some sort of color code reference, but I can't ...
1
vote
2answers
265 views

Wrong colors in xterm

I don't quite understand XTerm's (UXTerm's in this case) behaviour regarding colors. I'm using Solarized Light color theme for Alacritty and UXTerm. They're more or less identical: ~/.alacritty.yml: # ...
9
votes
3answers
2k views

how to use 256 colors for background color in terminal

I know how to use 256 colors for text in terminal: printf "\033[38;5;196mhello\n" But for background color, I seem to be limited to the basic 8 colors only, ie: printf "\033[41mhello\n&...
1
vote
1answer
616 views

Overwrite bg color of zsh prompt

I'm using zsh with prompt fade, I do not have oh-my-zsh installed. My terminal background is dark blue, not black, but the prompt is being printed on a black background. How can I overwrite this so ...
0
votes
0answers
40 views

Tmux colors lost

I've got two very similar Linux installations (Manjaro). On one of them the basic output is colored out of the box (no ~/.tmux.conf yet). On another it's black an white. Adding ~/.tmux.conf: set -g ...
1
vote
1answer
21 views

Why does setting 'mi' in LS_COLORS effect postgresql and python tab completion?

So I have a custom LS_COLORS setup, and in that I have the following: mi=05;01;33: or=05;01;33: mi is for missing files on the right column when in ls's list view, and or is for a missing files in ...
1
vote
1answer
44 views

Custom colors for ls are correctly applied for some categories, but ignored for others

With the help of dircolors, I changed ls colors. My .dircolors file is FILE 00;97 DIR 00;96 LINK 00;95 MULTIHARDLINK 00;34 ORPHAN ...
0
votes
1answer
41 views

BSD (& Linux) tput - basic interoperable color setup

Can anyone on *BSD with GUI please confirm, that the below works on a BSD system correctly or not? I was trying to create a virtual *BSD test box, but ended up unsuccessful. So, I drained some ...
2
votes
1answer
1k views

How toggle alacritty terminal colorscheme with a keystroke?

There is an explanation on how to do that in a section in the alacritty's git-hub wiki, but I didn't get that. I experimented with it for example for solarized's light and dark version, but I failed. ...
0
votes
2answers
62 views

How can I test if the output of my program contains color (codes)?

The program I'm working on has an option to enable/disable the color codes in it's output. I want to test if this feature works as expected. This is what I tried: $ myprogram | grep -q '\e[32m' # ...
0
votes
0answers
45 views

How can I export the theme of gnome-terminal on Debian including “colors from system theme”?

I'd like to export the default themes of gnome-terminal on Debian including the "colors from system theme". Without the special "colors from system theme", I'd copy the individual ...
0
votes
2answers
82 views

Prevent 256 colors in terminal

There is a bunch of questions about how to enable 256 colors in various environments. I want to do the opposite: Restrict all applications to my carefully handpicked 16 color palette. The reason is ...
1
vote
1answer
63 views

Mutt: how to color the first message of the thread?

How to color the first message of an email thread in mutt?
0
votes
2answers
161 views

How to make the toolbar and tabs-bar of qterminal dark?

It looks ugly. How can i fix it.Terminal has good dark style. Also , ubuntu regular font is not available in preferences of terminal but its installed. Any idea how to fix qterminal along with this?
0
votes
1answer
90 views

How to show bash set -x commands in colors?

I have a bash script which throws 100s of lines. I can see which command doing this using set -x but it's difficult to find it on terminal. If set -x option shows in color I can find it faster. Is ...
0
votes
3answers
139 views

Creating vimrc breaks vim

I'm currently logged into a server via ssh with ssh -Y and running a tmux session. If I start vim and run :colorscheme elflord the color scheme is changed. (Although the colors are not exactly what I ...
1
vote
1answer
469 views

what is different between red file and green file in Terminal (macOS)

I have 2 backup files but they have 2 different colors? So what is different between red file and green file in Terminal (macOS)
0
votes
1answer
45 views

Setting command color?

I'd like to set my command line colors in a way that the command I type is in different color than everything else. This is my current PS1 setup: PS1="\n\[\e[1;33m\]\w\[\e[1;30m\] \D{%F %T}\[\e[0m\]\...
0
votes
1answer
34 views

script -c '…' does NOT print colors

edit: I was in EternalTerminal session, and that was the source of the difference. In a regular ssh, it works. I need to get commands in a pipe to believe they are in a PTY and emit colorized output. ...
2
votes
2answers
306 views

Asterisk: how to change the CLI color prompt?

The Asterisk wiki says that the color of the CLI prompt can be changed with %Cn[;n]. ie: export ASTERISK_PROMPT="%C31[%H]: " but when I use the export above, I get broken prompt [1;31m[voip]...
4
votes
1answer
50 views

How to sort a column that also has color data?

I have a log file and I'm looking to sort according to response time, 4th field: GET /api/user/john 200 0.194 ms - 7307 But it contains color tags, here's the output from vi: ^[[0mGET /api/user/...
0
votes
1answer
53 views

less -R (-r) doesn't produce colored output

I'm trying to get colored less output in my terminal. Below is how I expect the output to look, and underneath that what "less -r" or "less -R" actually produces. I'm using a build of suckless st ...
0
votes
1answer
27 views

Bright Color Escape Sequences not saved in Tmux capture-pane?

I'm trying to use tmux to create a pty for me that I can read the contents of, including color. I'm using tmux capture-pane -e -t paneName and tmux save-buffer tmuxbuffer.txt and I get normal colors, ...
0
votes
0answers
68 views

zsh colors get messed up when exiting some programs or resizing window

I face this issue with some programs that take over the full terminal, like ncmpcpp, weechat, cava, pipes.sh, and nvtop. If I resize the window after loading these programs, the color scheme changes ...
0
votes
1answer
251 views

how to reverse console colours, to have black letters on white screen?

How to reverse console colours, to have black letters on white screen? tput rev kind of works, but only the background where some characters are is white, the rest of the screen remains black, which ...
0
votes
0answers
64 views

How to keep mac prompt customization when sshing into aws ec2 instances whose ip addresses change when I stop and restart the instance?

Summary: my goal is to have a prompt that's got a different color so I can easily distinguish between command line and output at a glance. Details: I have configured my mac terminal to show the ...
-1
votes
1answer
80 views

How to draw bright color background in linux tty?

I'm using ubuntu18.04 /dev/tty3(ctrl-alt-f3). tput colors -------- 8 I can draw bright foreground red: tput bold; tput setaf 1; echo 'xxxxxx' echo -e '\e[91mxxxxxx' But it doesn't work for ...
0
votes
0answers
31 views

Limit output in bash to be certain number of characters not including invisible characters [duplicate]

git log --oneline | cut -c-20 outputs git log and limits the output of lines to 20 characters each. But with git log --oneline --color | cut -c-20 the output is only 10 characters per line, because ...

1
2 3 4 5
16