Define color codes in rxvt-unicode


Sahinism

Using some node.jstools like mochain my urxvtterminal, I have some problems with colored output. As you can see here , some text with color code 90 will disappear in the terminal.

tput colorsThe output is: 256

and use the following command:

(x=`tput op` y=`printf %76s`;for i in {0..256};do o=00$i;echo -e ${o:${#o}-3:3} `tput setaf $i;tput setab $i`${y// /=}(x=`tput op` y=`printf %76s`;for i in {0..256};do o=00$i;echo -e ${o:${#o}-3:3} `tput setaf $i;tput setab $i`${y// /=}$x;done)$x;done)

It seems that I have all the colors available.

However, when I try to echo something like this:

echo '\e[0;90m shahin \e[m '

will just print a blank line! Is there anyway to manually define this color code?

thank you all!

Update: I think some pictures will better describe the situation. Here is an image of the echo command in the finaltermterminal :

enter image description here

Here I convert the result from urxvt:

enter image description here

Here is the result of running this perl script on the same script urxvt:

enter image description here

Volker Siegel

The problem is not that the color is not visible,
but the same as the terminal background, such as dark gray.

The color is transparent in nature, showing the terminal default color below. But that doesn't guarantee that this color will be used - it could just be that the "black" color used for the background is actually the same color used for the foreground.

If possible, open up a terminal that allows for easy experimentation with color settings using a gui (like konsoleor ) gnome-terminaland clearly shows what you can change. Or just try rxvt-unicodeit out to see if it fits.

I think you'll at least have some clues, if not, what's wrong.

If it still doesn't work, show your new info here and research it in detail.



Side note:

I didn't get your long command to work with copy and paste, but it might be something like
colortest-256

from packages in colortestUbuntu etc.

colortest-16Also try , it might help explain your problem.
If not, please post a screenshot!

Related


How to define BGR color range? Map color codes to color names

waste I want to create a colormap, define some color names and bounds, the colors should be in their range. For example (BGR format), colors = { 'red': ((0, 0, 255), (125, 125, 255)), 'blue': ((255, 0, 0), (255, 125, 125)), 'yellow' .... } So if I

How to define BGR color range? Map color codes to color names

waste I want to create a colormap, define some color names and bounds, the colors should be in their range. For example (BGR format), colors = { 'red': ((0, 0, 255), (125, 125, 255)), 'blue': ((255, 0, 0), (255, 125, 125)), 'yellow' .... } So if I

How to define BGR color range? Map color codes to color names

waste I want to create a colormap, define some color names and bounds, the colors should be in their range. For example (BGR format), colors = { 'red': ((0, 0, 255), (125, 125, 255)), 'blue': ((255, 0, 0), (255, 125, 125)), 'yellow' .... } So if I

Is there a (lightweight) alternative to `rxvt-unicode`?

Buffalo I am currently rxvt-unicodeusing as a terminal emulator. Since I also like the configurability of GNOME and KDE's terminal emulators, I'm wondering if there is some sort of alternative that can replace GNOME or KDE Terminal, but rxvt-unicodewith more f

Is there a (lightweight) alternative to `rxvt-unicode`?

Buffalo I am currently rxvt-unicodeusing as a terminal emulator. Since I also like the configurability of GNOME and KDE's terminal emulators, I'm wondering if there is some sort of alternative that can replace GNOME or KDE Terminal, but rxvt-unicodewith more f

Is there a (lightweight) alternative to `rxvt-unicode`?

Buffalo I am currently rxvt-unicodeusing as a terminal emulator. Since I also like the configurability of GNOME and KDE's terminal emulators, I'm wondering if there is some sort of alternative that would replace GNOME or KDE Terminal, but rxvt-unicodewith more

rxvt-unicode does not display unicode characters

random document I don't understand why rxvt-unicodesome unicode characters are not displayed correctly, like ☁or ☂both ⚡. As shown in the screenshot, these symbols are replaced by a small box: Here is my locale: LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_CTYPE=

rxvt-unicode does not display unicode characters

random document I don't understand why rxvt-unicodesome unicode characters are not displayed correctly, like ☁or ☂both ⚡. As shown in the screenshot, these symbols are replaced by a small box: Here is my locale: LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_CTYPE=

rxvt-unicode does not display unicode characters

random document I don't understand why rxvt-unicodesome unicode characters are not displayed correctly, like ☁or ☂both ⚡. As shown in the screenshot, these symbols are replaced by a small box: Here is my locale: LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_CTYPE=

Set new icon for rxvt-unicode

Charles S I am trying to use numix icons for rxvt-unicode. I didn't find an up-to-date discussion on this topic, but the ones I'm following are: https://bbs.archlinux.org/viewtopic.php?id=166210 My /.Xdefaults looks like: URxvt*iconFile: /usr/share/icons/Numix

Italics in Emacs on text terminal (rxvt-unicode)

Igor I'm using Emacs running in urxvt and I can't get italics to work in Emacs despite terminal support. Here is my current setup: I haven't set it yet $TERM, so it's the default rxvt-unicode-256color. Mine is ~/.Xdefaultsdefined URxvt.font: xft:Inconsolata:si

Map-Shift-Tab in rxvt-unicode

Mark I want to map keybindings Ctrl++ to Shift. I managed to map + as follows. The corresponding entry isTabrxvt-unicodeCtrlTab.Xresources URxvt.keysym.Control-Tab: \033[27;5;9~ Confirm that this mapping is valid using :cat -v $ cat -v ^[[27;5;9~ ^[[27;5;9~T

rxvt-unicode-make fails with missing dependencies

Sebastian I'm trying to learn more about linux by exploring r/unixporn. I'm running on Debian Jessie Xfce and have the following: apt-get install libperl-dev git clone https://github.com/exg/rxvt-unicode.git ./configure --prefix=/usr --enable-everything && mak

Set new icon for rxvt-unicode

Charles S I am trying to use numix icons for rxvt-unicode. I didn't find an up-to-date discussion on this topic, but the ones I'm following are: https://bbs.archlinux.org/viewtopic.php?id=166210 My /.Xdefaults looks like: URxvt*iconFile: /usr/share/icons/Numix

Italics in Emacs on text terminal (rxvt-unicode)

Igor I'm using Emacs running in urxvt and I can't get italics to work in Emacs despite terminal support. Here is my current setup: I haven't set it yet $TERM, so it's the default rxvt-unicode-256color. Mine is ~/.Xdefaultsdefined URxvt.font: xft:Inconsolata:si

Map-Shift-Tab in rxvt-unicode

Mark I want to map keybindings Ctrl++ to Shift. I managed to map + as follows. The corresponding entry isTabrxvt-unicodeCtrlTab.Xresources URxvt.keysym.Control-Tab: \033[27;5;9~ Confirm that this mapping is valid using :cat -v $ cat -v ^[[27;5;9~ ^[[27;5;9~T

rxvt-unicode-make fails with missing dependencies

Sebastian I'm trying to learn more about linux by exploring r/unixporn. I'm running on Debian Jessie Xfce and have the following: apt-get install libperl-dev git clone https://github.com/exg/rxvt-unicode.git ./configure --prefix=/usr --enable-everything && mak

Set new icon for rxvt-unicode

Charles S I am trying to use numix icons for rxvt-unicode. I didn't find an up-to-date discussion on this topic, but the ones I'm following are: https://bbs.archlinux.org/viewtopic.php?id=166210 My /.Xdefaults looks like: URxvt*iconFile: /usr/share/icons/Numix

How to change rxvt color to white on black?

Nickolai Leschov By default, on Ubuntu, the rxvt terminal is black on white. How can I change it to white on black? I am running Lubuntu 16.04 LTS Terence Note: Updated answer to include desktops that are not loaded .Xresourcesor archived by default , like GNO

How to change rxvt color to white on black?

Nickolai Leschov By default, on Ubuntu, the rxvt terminal is black on white. How can I change it to white on black? I am running Lubuntu 16.04 LTS Terence Note: Updated answer to include desktops that are not loaded .Xresourcesor archived by default , like GNO

Select text in tmux under rxvt-unicode (urxvt)

Brian I've only recently started experimenting with a urxvtterminal emulator instead xterm. I'm a heavy tmuxuser so had to get the two to work together seamlessly. I've noticed that when running tmuxinternally urxvt, there is some strange behavior when selecti

Select text in tmux under rxvt-unicode (urxvt)

Brian I've only recently started experimenting with a urxvtterminal emulator instead xterm. I'm a heavy tmuxuser so had to get the two to work together seamlessly. I've noticed that when running tmuxinternally urxvt, there is some strange behavior when selecti

Increase font size in rxvt-unicode without editing ~/.Xdefaults

g33kz0r I'm a big Linux fan and have been spending a lot of time using iTerm on my Mac lately. One thing I really like about Mac and iTerm is especially the ability to use keyboard shortcuts to increase/decrease font size. I believe to do this is apple+ and ap

Select text in tmux under rxvt-unicode (urxvt)

Brian I've only recently started experimenting with a urxvtterminal emulator instead xterm. I'm a heavy tmuxuser so had to get the two to work together seamlessly. I've noticed that when running tmuxinternally urxvt, there is some strange behavior when selecti

Select text in tmux under rxvt-unicode (urxvt)

Brian I've only recently started experimenting with a urxvtterminal emulator instead xterm. I'm a heavy tmuxuser so had to get the two to work together seamlessly. I've noticed that when running tmuxinternally urxvt, there is some strange behavior when selecti

Increase font size in rxvt-unicode without editing ~/.Xdefaults

g33kz0r I'm a big Linux fan and have been spending a lot of time using iTerm on my Mac lately. One thing I really like about Mac and iTerm is especially the ability to use keyboard shortcuts to increase/decrease font size. I believe to do this is apple+ and ap

Convert unicode symbols to their codes

Hello and goodbye I have the following XML file containing emoji : http://pastebin.com/8f0GeE96 Now, what I want is to convert each unicode character to its code (as a string). For this, I wrote the following code. The problem is that I get a lot of dup (ie d8

Convert unicode symbols to their codes

Hello and goodbye I have the following XML file containing emoji : http://pastebin.com/8f0GeE96 Now, what I want is to convert each unicode character to its code (as a string). For this reason, I wrote the following code. The problem is that I get a lot of dup

Convert unicode symbols to their codes

Hello and goodbye I have the following XML file containing emoji : http://pastebin.com/8f0GeE96 Now, what I want is to convert each unicode character to its code (as a string). For this reason, I wrote the following code. The problem is that I get a lot of dup