You are not logged in.

#1 2018-10-27 16:10:38

ArchFen1x
Member
Registered: 2018-08-19
Posts: 6

[Solved] URxvt color issue

I added colors to my .Xresources file and neofetch shows them when I run it and vim respects the colors too. At least I know they're being detected. (of course I know to run xrdb ~/.Xresources when I modify it ).

The problem is that certain commands/programs don't respect the colors. Instead of variety, I'll just see standard white text. This is very bothersome with the top command. It doesn't work in pacman either even though I enabled colors in pacman.conf

Here is my .Xresources file: https://pastebin.com/zEgwE4Xd

Any help would be great.

Last edited by ArchFen1x (2018-10-27 17:42:36)

Offline

#2 2018-10-27 16:34:40

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,534
Website

Re: [Solved] URxvt color issue

Commands like top and pacman do not use Xresources in any way.  They may or may not send color codes to the terminal which in turn renders the text with the colors you specify.

Top, by default, does not send any color codes, but it can be configured to do so.  For example, here is my ~/.toprc which specifies the use of color:

top's Config File (Linux processes with windows)
Id:i, Mode_altscr=1, Mode_irixps=1, Delay_time=1.500, Curwin=0
Def     fieldscur=&K;=@56DF')*+,-./0128<>?ABCGHIJLMNOPQRSTUVWXYZ[\]^_`abcdefghij
        winflags=671028, sortindx=18, maxtasks=8, graph_cpus=1, graph_mems=0
        summclr=6, msgsclr=2, headclr=7, taskclr=6
Job     fieldscur=&D;=@<')*+,-./012568>?ABCFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij
        winflags=146868, sortindx=21, maxtasks=8, graph_cpus=1, graph_mems=0
        summclr=7, msgsclr=6, headclr=7, taskclr=7
Mem     fieldscur=;<=>?@AMBNCD&')*+,-./0125689FGHIJKLOPQRSTUVWXYZ[\]^_`abcdefghij
        winflags=146738, sortindx=20, maxtasks=18, graph_cpus=1, graph_mems=0
        summclr=4, msgsclr=2, headclr=7, taskclr=4
Usr     fieldscur=)+,-./1234568;<=>?@ABCFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij
        winflags=146708, sortindx=3, maxtasks=0, graph_cpus=1, graph_mems=0
        summclr=1, msgsclr=3, headclr=7, taskclr=1
Fixed_widest=0, Summ_mscale=2, Task_mscale=1, Zero_suppress=0

Pacman will use color if configured in pacman.conf, but only if it is printing to the stdout.

In any case, this has nothing to do with urxvt - please edit your title to specify which programs you are actually having problems with.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2018-10-27 17:34:32

ArchFen1x
Member
Registered: 2018-08-19
Posts: 6

Re: [Solved] URxvt color issue

Trilby wrote:

Commands like top and pacman do not use Xresources in any way.  They may or may not send color codes to the terminal which in turn renders the text with the colors you specify.

Top, by default, does not send any color codes, but it can be configured to do so.  For example, here is my ~/.toprc which specifies the use of color:

top's Config File (Linux processes with windows)
Id:i, Mode_altscr=1, Mode_irixps=1, Delay_time=1.500, Curwin=0
Def     fieldscur=&K;=@56DF')*+,-./0128<>?ABCGHIJLMNOPQRSTUVWXYZ[\]^_`abcdefghij
        winflags=671028, sortindx=18, maxtasks=8, graph_cpus=1, graph_mems=0
        summclr=6, msgsclr=2, headclr=7, taskclr=6
Job     fieldscur=&D;=@<')*+,-./012568>?ABCFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij
        winflags=146868, sortindx=21, maxtasks=8, graph_cpus=1, graph_mems=0
        summclr=7, msgsclr=6, headclr=7, taskclr=7
Mem     fieldscur=;<=>?@AMBNCD&')*+,-./0125689FGHIJKLOPQRSTUVWXYZ[\]^_`abcdefghij
        winflags=146738, sortindx=20, maxtasks=18, graph_cpus=1, graph_mems=0
        summclr=4, msgsclr=2, headclr=7, taskclr=4
Usr     fieldscur=)+,-./1234568;<=>?@ABCFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij
        winflags=146708, sortindx=3, maxtasks=0, graph_cpus=1, graph_mems=0
        summclr=1, msgsclr=3, headclr=7, taskclr=1
Fixed_widest=0, Summ_mscale=2, Task_mscale=1, Zero_suppress=0

Pacman will use color if configured in pacman.conf, but only if it is printing to the stdout.

In any case, this has nothing to do with urxvt - please edit your title to specify which programs you are actually having problems with.

Thanks. I was mostly concerned with top. All I had to do was turn on the color mode with z and write the config file with w.

Thanks for the information!

Offline

#4 2018-10-27 17:36:57

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [Solved] URxvt color issue

Please mark your thread [SOLVED] instead of [CLOSED] -- closed is used by the moderators to mark threads that are no longer open for posts.

(edit) thank you for changing it.

Last edited by 2ManyDogs (2018-10-27 17:52:09)

Offline

Board footer

Powered by FluxBB