| View previous topic :: View next topic |
| Author |
Message |
SeaHag n00b

Joined: 10 Jul 2009 Posts: 32
|
Posted: Thu Jul 23, 2009 2:01 am Post subject: rxvt-unicode urxvt not displaying all characters correctly |
|
|
| 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 |
|
 |
Nerevar l33t


Joined: 31 May 2008 Posts: 710
|
Posted: Thu Jul 23, 2009 2:11 am Post subject: |
|
|
| 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 |
|
 |
SeaHag n00b

Joined: 10 Jul 2009 Posts: 32
|
Posted: Thu Jul 23, 2009 2:33 am Post subject: |
|
|
| 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 |
|
 |
Mike Hunt Watchman


Joined: 19 Jul 2009 Posts: 5287
|
Posted: Thu Jul 23, 2009 3:20 am Post subject: |
|
|
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 you'll find plenty of examples for changing fonts and colors.  |
|
| Back to top |
|
 |
SeaHag n00b

Joined: 10 Jul 2009 Posts: 32
|
Posted: Thu Jul 23, 2009 3:33 am Post subject: |
|
|
| 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 |
|
 |
Nerevar l33t


Joined: 31 May 2008 Posts: 710
|
Posted: Thu Jul 23, 2009 3:43 am Post subject: |
|
|
| See /etc/DIR_COLORS. |
|
| Back to top |
|
 |
Mike Hunt Watchman


Joined: 19 Jul 2009 Posts: 5287
|
Posted: Thu Jul 23, 2009 3:48 am Post subject: |
|
|
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.  |
|
| Back to top |
|
 |
SeaHag n00b

Joined: 10 Jul 2009 Posts: 32
|
Posted: Thu Jul 23, 2009 4:54 am Post subject: |
|
|
| I emerged media-fonts/terminus-font but still not working. Any other ideas? How come xterm displays correctly? |
|
| Back to top |
|
 |
hrnick Guru

Joined: 31 Aug 2002 Posts: 302 Location: Linköping, Sweden
|
Posted: Fri Apr 13, 2012 5:09 pm Post subject: |
|
|
| Any solution to this? |
|
| Back to top |
|
 |
gorkypl Guru

Joined: 04 Oct 2010 Posts: 440 Location: Kraków, PL
|
Posted: Fri Apr 13, 2012 5:39 pm Post subject: |
|
|
3 years old NECROBUMP!
But, if we are already here - solution to what exactly? _________________ BTW, TWM FTW! |
|
| Back to top |
|
 |
hrnick Guru

Joined: 31 Aug 2002 Posts: 302 Location: Linköping, Sweden
|
Posted: Fri Apr 13, 2012 5:57 pm Post subject: |
|
|
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 |
|
 |
gorkypl Guru

Joined: 04 Oct 2010 Posts: 440 Location: Kraków, PL
|
Posted: Fri Apr 13, 2012 6:04 pm Post subject: |
|
|
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 |
|
 |
hrnick Guru

Joined: 31 Aug 2002 Posts: 302 Location: Linköping, Sweden
|
Posted: Fri Apr 13, 2012 6:17 pm Post subject: |
|
|
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 |
|
 |
gorkypl Guru

Joined: 04 Oct 2010 Posts: 440 Location: Kraków, PL
|
Posted: Fri Apr 13, 2012 6:43 pm Post subject: |
|
|
How have you specified the font? _________________ BTW, TWM FTW! |
|
| Back to top |
|
 |
hrnick Guru

Joined: 31 Aug 2002 Posts: 302 Location: Linköping, Sweden
|
Posted: Fri Apr 13, 2012 7:04 pm Post subject: |
|
|
| In ~/.Xdefaults? Yes. |
|
| Back to top |
|
 |
gorkypl Guru

Joined: 04 Oct 2010 Posts: 440 Location: Kraków, PL
|
Posted: Fri Apr 13, 2012 7:13 pm Post subject: |
|
|
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 |
|
 |
hrnick Guru

Joined: 31 Aug 2002 Posts: 302 Location: Linköping, Sweden
|
Posted: Fri Apr 13, 2012 7:41 pm Post subject: |
|
|
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 |
|
 |
|