Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] urxvt does not have 256 colors
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
pun_guin
Apprentice
Apprentice


Joined: 06 Feb 2018
Posts: 204

PostPosted: Sat May 26, 2018 8:15 pm    Post subject: [SOLVED] urxvt does not have 256 colors Reply with quote

While playing with dwm, I found the default st terminal to be lacking flexibility. (This might well be my own perception.) So I installed x11-terms/rxvt-unicode with the 256-colors USE flag enabled. However, trying to start anything even moderately complicated, like weechat or even vi, from urxvt results in the same error: "rxvt-unicode-256color" could not be found. I get the same error with st, but st has no USE flag for 256 colors at all.

What am I missing?
_________________
I already use the new Genthree.


Last edited by pun_guin on Sun May 27, 2018 12:28 am; edited 1 time in total
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sat May 26, 2018 9:28 pm    Post subject: Re: urxvt does not have 256 colors although I compiled it so Reply with quote

pun_guin wrote:
[...] results in the same error: "rxvt-unicode-256color" could not be found. I get the same error with st, but st has no USE flag for 256 colors at all.

pun_guin ... I doubt they are the same, st has the 'st-256color' TERM ... so always post the exact error. Anyhow, those "terminal capabilities/informations" are provided by ncurses ... and so they should be available:

Code:
% equery belongs -e /usr/share/terminfo/r/rxvt-unicode-256color
 * Searching for /usr/share/terminfo/r/rxvt-unicode-256color ...
sys-libs/ncurses-6.0-r1 (/usr/share/terminfo/r/rxvt-unicode-256color)

TERM seems to be set correctly but when weechat, vi, etc, query terminfo it's not providing those capabilities. Why, I can't say, is this musl?

best ... khay
Back to top
View user's profile Send private message
pun_guin
Apprentice
Apprentice


Joined: 06 Feb 2018
Posts: 204

PostPosted: Sat May 26, 2018 9:37 pm    Post subject: Reply with quote

You are obviously right - I was typing the initial posting on my Windows machine while trying to make the Gentoo one work properly. My fault!

I get an empty result with equery - no, it's not musl... :?
In fact, /usr/share/terminfo is completely empty. According to emerge, sys-libs/ncurses is installed though (6.1-r2).
_________________
I already use the new Genthree.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sat May 26, 2018 11:56 pm    Post subject: Reply with quote

pun_guin wrote:
I get an empty result with equery - no, it's not musl... :? In fact, /usr/share/terminfo is completely empty. According to emerge, sys-libs/ncurses is installed though (6.1-r2).

pun_guin ... ok, odd but that's obviously the cause, have you any useflags set that effect ncurses ... tinfo perhaps? If so, you probably should remove it, if not then re-merge the package.

Code:
# emerge --oneshot =sys-libs/ncurses-6.1-r2
# ls -l /usr/share/terminfo/r/rxvt-unicode-256color

HTH & best ... khay
Back to top
View user's profile Send private message
pun_guin
Apprentice
Apprentice


Joined: 06 Feb 2018
Posts: 204

PostPosted: Sun May 27, 2018 12:27 am    Post subject: Reply with quote

Ah-ha - solved!

tinfo is unset - I only have set cxx, minimal and unicode.
One would assume that "minimal" - I have set that for all packages in my make.conf - does not kill crucial features.

Unsetting "minimal" for ncurses populates my /usr/share/terminfo folder though... and that was that. vi and weechat start nicely from my urxvt now. Thank you!
_________________
I already use the new Genthree.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum