Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rxvt-unicode urxvt not displaying all characters correctly
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
SeaHag
n00b
n00b


Joined: 10 Jul 2009
Posts: 32

PostPosted: Thu Jul 23, 2009 2:01 am    Post subject: rxvt-unicode urxvt not displaying all characters correctly Reply with quote

I just emerged rxvt-unicode, when I run it in my terminal some characters appear correctly and some look like rectangles. Anyone know why or how to fix it? My prompt also is displayed as rectangles.
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 710

PostPosted: Thu Jul 23, 2009 2:11 am    Post subject: Reply with quote

Could be the font you're using doesn't support those characters. media-fonts/terminus-font is a really good unicode console font.
Back to top
View user's profile Send private message
SeaHag
n00b
n00b


Joined: 10 Jul 2009
Posts: 32

PostPosted: Thu Jul 23, 2009 2:33 am    Post subject: Reply with quote

This is a fresh Gentoo install. Everything should be default. It seems that the things that aren't displaying correctly are bold in the default xterm. What does bold mean for files and directories?
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Thu Jul 23, 2009 3:20 am    Post subject: Reply with quote

Bold doesn't really mean anything in xterm. It's just AFAIK an arbitrary color scheme for different types of file/directories and other things, like in manpages ...

You can always modify/change them if you want in your $HOME/.Xdefaults file.

If you read
Code:
man urxvt
you'll find plenty of examples for changing fonts and colors. :wink:
Back to top
View user's profile Send private message
SeaHag
n00b
n00b


Joined: 10 Jul 2009
Posts: 32

PostPosted: Thu Jul 23, 2009 3:33 am    Post subject: Reply with quote

How come in my xterm some hidden files are blue and bold and some are not. Also, some non hidden files are green and some are bold green. What does all that mean? Why are they displayed differently? It looks like all directories are blue. In urxvt the blue directories and green bold files display as rectangles. BTW I don't have .Xdefaults.
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 710

PostPosted: Thu Jul 23, 2009 3:43 am    Post subject: Reply with quote

See /etc/DIR_COLORS.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Thu Jul 23, 2009 3:48 am    Post subject: Reply with quote

You need a unicode fontset like media-fonts/terminus-font as Nerevar suggests, and media-fonts/dejavu is also quite nice.

If you google Xdefaults you'll find plenty of examples you can use to make your own $HOME/.Xdefaults file. 8)
Back to top
View user's profile Send private message
SeaHag
n00b
n00b


Joined: 10 Jul 2009
Posts: 32

PostPosted: Thu Jul 23, 2009 4:54 am    Post subject: Reply with quote

I emerged media-fonts/terminus-font but still not working. Any other ideas? How come xterm displays correctly?
Back to top
View user's profile Send private message
hrnick
Guru
Guru


Joined: 31 Aug 2002
Posts: 302
Location: Linköping, Sweden

PostPosted: Fri Apr 13, 2012 5:09 pm    Post subject: Reply with quote

Any solution to this?
Back to top
View user's profile Send private message
gorkypl
Guru
Guru


Joined: 04 Oct 2010
Posts: 440
Location: Kraków, PL

PostPosted: Fri Apr 13, 2012 5:39 pm    Post subject: Reply with quote

3 years old NECROBUMP!

But, if we are already here - solution to what exactly?
_________________
BTW, TWM FTW!
Back to top
View user's profile Send private message
hrnick
Guru
Guru


Joined: 31 Aug 2002
Posts: 302
Location: Linköping, Sweden

PostPosted: Fri Apr 13, 2012 5:57 pm    Post subject: Reply with quote

I just emerged rxvt-unicode, when I run it in my terminal some characters appear correctly and some look like rectangles. Anyone know why or how to fix it? My prompt also is displayed as rectangles.

All boldface characters seem to be replaced by rectangles.
Back to top
View user's profile Send private message
gorkypl
Guru
Guru


Joined: 04 Oct 2010
Posts: 440
Location: Kraków, PL

PostPosted: Fri Apr 13, 2012 6:04 pm    Post subject: Reply with quote

As it has been said above - you need to emerge font that supports your charset, and then use .Xdefaults or - more preferably - .Xresources to configure urxvt to use that font.

For a popular Terminus font it may look like:
Code:

URxvt.font:             xft:Terminus:pixelsize=14:antialias=false
URxvt.boldFont:         xft:Terminus:bold:pixelsize=14:antialias=false

_________________
BTW, TWM FTW!
Back to top
View user's profile Send private message
hrnick
Guru
Guru


Joined: 31 Aug 2002
Posts: 302
Location: Linköping, Sweden

PostPosted: Fri Apr 13, 2012 6:17 pm    Post subject: Reply with quote

I've read the thread and tried everything in it without any result, that's why I asked for any (other) solution.

When I try to run rxvt-unicode I get the following error:

Code:
$ urxvt
urxvt: unable to load base fontset, please specify a valid one using -fn, aborting.


Do I need to mkfontdir or something?
Back to top
View user's profile Send private message
gorkypl
Guru
Guru


Joined: 04 Oct 2010
Posts: 440
Location: Kraków, PL

PostPosted: Fri Apr 13, 2012 6:43 pm    Post subject: Reply with quote

How have you specified the font?
_________________
BTW, TWM FTW!
Back to top
View user's profile Send private message
hrnick
Guru
Guru


Joined: 31 Aug 2002
Posts: 302
Location: Linköping, Sweden

PostPosted: Fri Apr 13, 2012 7:04 pm    Post subject: Reply with quote

In ~/.Xdefaults? Yes.
Back to top
View user's profile Send private message
gorkypl
Guru
Guru


Joined: 04 Oct 2010
Posts: 440
Location: Kraków, PL

PostPosted: Fri Apr 13, 2012 7:13 pm    Post subject: Reply with quote

But how? The way I posted above?

Also do you have media-fonts/terminus-font installed, and is rxvt-unicode compiled with USE=xft?
_________________
BTW, TWM FTW!
Back to top
View user's profile Send private message
hrnick
Guru
Guru


Joined: 31 Aug 2002
Posts: 302
Location: Linköping, Sweden

PostPosted: Fri Apr 13, 2012 7:41 pm    Post subject: Reply with quote

Solved! It was as easy as a missing USE flag, I probably should have taken a look at it first. :)

Thanks for your help!
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