You are not logged in.

#1 2009-03-17 21:12:32

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

Strange .Xdefaults issue - colors should be octal?!

I want to set my .Xdefaults as follow:

urxvt*background:       #222222
urxvt*foreground:       #cacaca
!black
urxvt*color0:           #080808
urxvt*color8:           #505050
!red
urxvt*color1:           #b04020
urxvt*color9:           #dd4010
!green
urxvt*color2:           #afd700
urxvt*color10:          #daff30
!yellow
urxvt*color3:           #f7cf0a
urxvt*color11:          #fce70d
!blue
urxvt*color4:           #3060aa
urxvt*color12:          #6099dd
!magenta
urxvt*color5:           #d6156c
urxvt*color13:          #fe4365
!cyan
urxvt*color6:           #a0c2de
urxvt*color14:          #c9dee8
!white
urxvt*color7:           #808080
urxvt*color15:          #b0b0b0

Looks straight forward and should work...

But for color0 i get this:

/home/$USER/.Xdefaults:60: warning: Illegal digit in octal number "080808"
    *color0: #080808

Why? Shouldnt this work? This IS a hexadecimal value.

Offline

#2 2009-03-17 22:51:02

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Strange .Xdefaults issue - colors should be octal?!

I was running into the same problem and everything that I tried wasn't working, so switched all of it to rgb:

urxvt*color7:              rgb:ff/ff/ff

Offline

#3 2009-03-18 01:12:08

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

Re: Strange .Xdefaults issue - colors should be octal?!

Good idea; I also thought of that. If you had just tried putting rgb:08/08/08 you would have seen that it is not a solution.....

Offline

#4 2009-03-18 01:22:50

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Strange .Xdefaults issue - colors should be octal?!

Sorry about that. I had stuff like rbg:80/80/80 that worked, so I thought that yours would too.

Offline

#5 2009-03-18 08:14:35

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

Re: Strange .Xdefaults issue - colors should be octal?!

Well, the strange thing is that for example hexadecimal values do work.... Just not in the range below 10.

This works: #181818 (not an octal number!)
This doesn't: #080808 (not octal either...)

Offline

Board footer

Powered by FluxBB