You are not logged in.

#1 2022-05-24 21:30:21

pradtf
Member
Registered: 2009-06-10
Posts: 149

SOLVED urxvt not displaying broot ... font or locale problem?

running broot in emacs ansi-term or alacritty:

/home/pradmin                                                                                                      
 ├──aa …                                                                                                           
 ├──apstart.sh -> /home/pradmin/bin/apstart.sh                                                                     
 ├──awk -> /home/pradmin/ocs/esign/prg/awk                                                                         
 ├──bin …                                                                                                          
 ├──clj -> /home/pradmin/ocs/esign/prg/clojure                                                                     
 ├──dd -> /home/pradmin/Downloads                                                                                  
 ├──Desktop …                                                                                                      
 ├──Documents …                                                                                                    
 ├──Downloads …                  

but running it in urxvt terminal produces strange chars instead of the horizontal lines.

i've seen some posts saying it's a font issue in that the glyphs aren't present. i have
URxvt*font: xft:DejaVu Sans Mono:pixelsize=12:antialias=true:hinting=true
URxvt*boldFont: xft:DejaVu Sans Mono:bold:pixelsize=12:antialias=true:hinting=true

when i do something like

echo -e "\u0642"                                                        
zsh: character not in range

suggesting that some chars aren't there in the font.

other posts tell you the locale is to blame.

locale -a
C
POSIX
en_US.utf8

while

locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=

how do i get proper display using broot inside urxvt?

Last edited by pradtf (2022-05-25 05:56:03)


in friendship,
prad

Offline

#2 2022-05-25 05:46:08

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,244

Re: SOLVED urxvt not displaying broot ... font or locale problem?

but running it in urxvt terminal produces strange chars instead of the horizontal lines.

Please link a screenshot.

when i do something like

echo -e "\u0642"                                                       
zsh: character not in range
suggesting that some chars aren't there in the font.

No, that's because you're not using an utf-8 locale…

other posts tell you the locale is to blame.
locale
LANG=C
LC_CTYPE="C"

Yes. At least it's prone to cause issues.
https://wiki.archlinux.org/title/Locale

i have
URxvt*font: xft:DejaVu Sans Mono:pixelsize=12:antialias=true:hinting=true
URxvt*boldFont: xft:DejaVu Sans Mono:bold:pixelsize=12:antialias=true:hinting=true

xrdb -q | grep -i urxvt
fc-match "DejaVu Sans Mono"

Offline

#3 2022-05-25 05:55:35

pradtf
Member
Registered: 2009-06-10
Posts: 149

Re: SOLVED urxvt not displaying broot ... font or locale problem?

thx seth!

i changed the locale:

locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=

and it's beautiful!!


in friendship,
prad

Offline

Board footer

Powered by FluxBB