Zsh icons broke in urxvtrxvt-unicode + mc - strange characters in root shell onlyls outputs multiple columns...
How is it believable that Euron could so easily pull off this ambush?
Splitting polygons and dividing attribute value proportionally using ArcGIS Pro?
Select list elements based on other list
call() a function within its own context
Scaling rounded rectangles in Illustrator
How to get the decimal part of a number in apex
Why always 4...dxc6 and not 4...bxc6 in the Ruy Lopez Exchange?
Translation of "invincible independence"
Picking a theme as a discovery writer
Can anyone identify this unknown 1988 PC card from The Palantir Corporation?
What did Varys actually mean?
Do the Zhentarim fire members for killing fellow members?
Appropriate age to involve kids in life changing decisions
Does restarting the SQL Services (on the machine) clear the server cache (for things like query plans and statistics)?
My large rocket is still flipping over
In the figure, a quarter circle, a semicircle and a circle are mutually tangent inside a square of side length 2. Find the radius of the circle.
Why is the episode called "The Last of the Starks"?
Function annotation with two or more return parameters
Is throwing dice a stochastic or a deterministic process?
What happens when the drag force exceeds the weight of an object falling into earth?
How can I finally understand the confusing modal verb "мочь"?
What’s the interaction between darkvision and the Eagle Aspect of the beast, if you have Darkvision past 100 feet?
What is the meaning of "matter" in physics?
Assuming a normal distribution: what is the sd for a given mean?
Zsh icons broke in urxvt
rxvt-unicode + mc - strange characters in root shell onlyls outputs multiple columns even if piped to grep with grml's zsh configIs there something like closures for zsh?How to change theme with zshurxvt powerline symbolspaste url into terminal(urxvt, zsh) failed, some characters get escapedHow is a font path added to urxvt when using .Xresources?Interactively switching zsh themes while running powerlinezsh strange behavior with sudo --stdin and password with random charactersWhat's the difference between ZSH themes, prompts, and terminal based themes?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
so I am currently using manjaro linux and I am using urxvt as my terminal which I love so before all this starts switching the terminal is not an option, sorry if I am being rude.
I installed zsh to it as my default shell and added the theme robbyrussell throught oh-my-zsh. At first it was all fine and everything was working but after an update my icons broke. Particulary(if you are fimiliar with the theme) the arrow icon broke and same with all the icons in all the other themes.
This problem occurrs only with urxvt because when I try with some other terminal such as sterminal the theme works.
Some screenshots you can see here
This is how it's supposed to look(screenshoots taken from sterminal)
And this is how it looks(screenshoots taken from rxvt)
I have been asking for help in reddit, github repos such as oh-my-zsh and robbyrussell officiall repo but no one seemed to help me, so I really am hoping you guys will give me a help.
Here are some information about my os and terminal:
URXVT Version 9.22
Operating System : Manjaro i3 4.12.24-1
No Desktop Envoirment
i3wm as window manager
I am using default oh-my-zsh configurations for my zshrc file and default Xreources from manjaro i3 which you can find here. If you need further information just tell me. Any help would be greatly appreciated!
zsh manjaro oh-my-zsh rxvt
add a comment |
so I am currently using manjaro linux and I am using urxvt as my terminal which I love so before all this starts switching the terminal is not an option, sorry if I am being rude.
I installed zsh to it as my default shell and added the theme robbyrussell throught oh-my-zsh. At first it was all fine and everything was working but after an update my icons broke. Particulary(if you are fimiliar with the theme) the arrow icon broke and same with all the icons in all the other themes.
This problem occurrs only with urxvt because when I try with some other terminal such as sterminal the theme works.
Some screenshots you can see here
This is how it's supposed to look(screenshoots taken from sterminal)
And this is how it looks(screenshoots taken from rxvt)
I have been asking for help in reddit, github repos such as oh-my-zsh and robbyrussell officiall repo but no one seemed to help me, so I really am hoping you guys will give me a help.
Here are some information about my os and terminal:
URXVT Version 9.22
Operating System : Manjaro i3 4.12.24-1
No Desktop Envoirment
i3wm as window manager
I am using default oh-my-zsh configurations for my zshrc file and default Xreources from manjaro i3 which you can find here. If you need further information just tell me. Any help would be greatly appreciated!
zsh manjaro oh-my-zsh rxvt
URxvt.font: 9x15
in your Xresources seems suspicious. Not sure if it supports those glyphs.
– Mikel
Mar 13 '18 at 14:55
that seemed to work brefore and that is preconfigured and highly suggested about the distro developers...but what do you suggest me to do?
– KnownAsDon
Mar 13 '18 at 15:31
I did try to change it's values and even disable and none of them made any diffrence except messing with the font size
– KnownAsDon
Mar 13 '18 at 15:34
add a comment |
so I am currently using manjaro linux and I am using urxvt as my terminal which I love so before all this starts switching the terminal is not an option, sorry if I am being rude.
I installed zsh to it as my default shell and added the theme robbyrussell throught oh-my-zsh. At first it was all fine and everything was working but after an update my icons broke. Particulary(if you are fimiliar with the theme) the arrow icon broke and same with all the icons in all the other themes.
This problem occurrs only with urxvt because when I try with some other terminal such as sterminal the theme works.
Some screenshots you can see here
This is how it's supposed to look(screenshoots taken from sterminal)
And this is how it looks(screenshoots taken from rxvt)
I have been asking for help in reddit, github repos such as oh-my-zsh and robbyrussell officiall repo but no one seemed to help me, so I really am hoping you guys will give me a help.
Here are some information about my os and terminal:
URXVT Version 9.22
Operating System : Manjaro i3 4.12.24-1
No Desktop Envoirment
i3wm as window manager
I am using default oh-my-zsh configurations for my zshrc file and default Xreources from manjaro i3 which you can find here. If you need further information just tell me. Any help would be greatly appreciated!
zsh manjaro oh-my-zsh rxvt
so I am currently using manjaro linux and I am using urxvt as my terminal which I love so before all this starts switching the terminal is not an option, sorry if I am being rude.
I installed zsh to it as my default shell and added the theme robbyrussell throught oh-my-zsh. At first it was all fine and everything was working but after an update my icons broke. Particulary(if you are fimiliar with the theme) the arrow icon broke and same with all the icons in all the other themes.
This problem occurrs only with urxvt because when I try with some other terminal such as sterminal the theme works.
Some screenshots you can see here
This is how it's supposed to look(screenshoots taken from sterminal)
And this is how it looks(screenshoots taken from rxvt)
I have been asking for help in reddit, github repos such as oh-my-zsh and robbyrussell officiall repo but no one seemed to help me, so I really am hoping you guys will give me a help.
Here are some information about my os and terminal:
URXVT Version 9.22
Operating System : Manjaro i3 4.12.24-1
No Desktop Envoirment
i3wm as window manager
I am using default oh-my-zsh configurations for my zshrc file and default Xreources from manjaro i3 which you can find here. If you need further information just tell me. Any help would be greatly appreciated!
zsh manjaro oh-my-zsh rxvt
zsh manjaro oh-my-zsh rxvt
edited Mar 14 '18 at 7:54
KnownAsDon
asked Mar 13 '18 at 12:41
KnownAsDonKnownAsDon
11816
11816
URxvt.font: 9x15
in your Xresources seems suspicious. Not sure if it supports those glyphs.
– Mikel
Mar 13 '18 at 14:55
that seemed to work brefore and that is preconfigured and highly suggested about the distro developers...but what do you suggest me to do?
– KnownAsDon
Mar 13 '18 at 15:31
I did try to change it's values and even disable and none of them made any diffrence except messing with the font size
– KnownAsDon
Mar 13 '18 at 15:34
add a comment |
URxvt.font: 9x15
in your Xresources seems suspicious. Not sure if it supports those glyphs.
– Mikel
Mar 13 '18 at 14:55
that seemed to work brefore and that is preconfigured and highly suggested about the distro developers...but what do you suggest me to do?
– KnownAsDon
Mar 13 '18 at 15:31
I did try to change it's values and even disable and none of them made any diffrence except messing with the font size
– KnownAsDon
Mar 13 '18 at 15:34
URxvt.font: 9x15
in your Xresources seems suspicious. Not sure if it supports those glyphs.– Mikel
Mar 13 '18 at 14:55
URxvt.font: 9x15
in your Xresources seems suspicious. Not sure if it supports those glyphs.– Mikel
Mar 13 '18 at 14:55
that seemed to work brefore and that is preconfigured and highly suggested about the distro developers...but what do you suggest me to do?
– KnownAsDon
Mar 13 '18 at 15:31
that seemed to work brefore and that is preconfigured and highly suggested about the distro developers...but what do you suggest me to do?
– KnownAsDon
Mar 13 '18 at 15:31
I did try to change it's values and even disable and none of them made any diffrence except messing with the font size
– KnownAsDon
Mar 13 '18 at 15:34
I did try to change it's values and even disable and none of them made any diffrence except messing with the font size
– KnownAsDon
Mar 13 '18 at 15:34
add a comment |
3 Answers
3
active
oldest
votes
First of all, there is a significant difference between the terminals types rxvt and unicode-rxvt (often abbreviated to urxvt). You have indicated that the terminal you are using is "URXVT Version 9.22", so to avoid confusion, please use the correct name which is not rxvt but urxvt.
As Mikel has pointed out, the Xresources file is telling urxvt to use the 9x15 font which is (a) the old style X11 server provided font method and (b) a limited capability bitmap font.
The oh-my-zsh Github README file explains
many themes require installing the Powerline Fonts in order to render properly
So in order to show the correct arrow shape you need to have the terminal using the appropriate font. Perhaps your update which broke the feature was an update which reset the font usage by urxvt?
As you state that sterminal displays the prompt correctly, check which font that is using, then change the .Xresources in your ${HOME} directory to use that font after verifying that it works with the manual test urxvt -font "font_name". (For the newer method of Xft supplied fonts, font_name is preceeded by "xft:" and followed by ":size=12" for font size).
Having checked in my urxvt, it seems quite a number of well known truetype and opentype monospace fonts do not provide the "right arrow" glyph and just show an empty box. However one readily available standard font that does work (and should be installed on your system) is Deja Vu Sans Mono.
So try firing up a urxvt with
urxvt -font "xft:Deja Vu Sans Mono:size=12" &
and see if your prompt is correctly displayed.
Take a look at https://bbs.archlinux.org/viewtopic.php?id=173477 for discussion on modifying font resource specification for urxvt in an Xresources/Xdefaults file.
PS Do not forget that you can use multiple urxvt terminals more efficiently if you first start the urxvtd daemon and then fire up terminals with urxvtc.
ADDENDUM
Thanks for confirming that you are using urxvt and you have DejaVu Sans Mono installed.
Confirm that there is no font substitution happening with the command entered in terminal at the prompt
fc-match "DejaVu Sans Mono"
producing the output
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
The actual font file location and styles available for the font can be verified with
fc-list | grep --color 'DejaVu Sans Mono'
Now assuming that is all okay, you need to check by firing up a urxvt from the command line of a terminal (sorry for not making that absolutely clear above and I had space between Deja and Vu which might have caused a problem)
urxvt -font "xft:DejaVu Sans Mono:size=12" &
that you can cut'n'paste the right-arrow character (from here) "➜" into that urxvt and that it displays correctly which I have checked does work.
I can also confirm that putting the following into an Xresources file
URxvt.font: xft:DejaVu Sans Mono:autohint=true:size=12
URxvt.boldFont: xft:DejaVu Sans Mono:autohint=true:bold:size=12
URxvt.italicFont: xft:DejaVu Sans Mono:autohint=true:italic:size=12
URxvt.boldItalicFont: xft:DejaVu Sans Mono:autohint=true:bold:italic:size=12
and loading into the Xorg server resource database with xrdb -merge Xresource_file_name to be 100% certain those values will be used and then firing up a terminal with just urxvt at the command line results in a terminal in which the font correctly shows the right arrow character. (you should also notice that characteristic of this font, the l characters are curly and that there is a dot in the center of the zero characters).
The font I normally use in urxvt "Luxi Mono" (easier to read, easy on the eyes IMHO) does not display the right arrow correctly even though the "font-manager" program reveals that "Luxi Mono" does have the glyph. Similarly xterm is also broken but a test in lxterminal, mate-terminal, and xfce4-terminal (checked in preferences that font is set to Luxi Mono) all display the right-arrow correctly. So it does appear that something is broken for some fonts in urxvt and xterm (which if I understand correctly share some code origins) just as the others which work similarly share some common code viz libvte.
First of all thank you for telling me the diffrence betwen urxvt and rxvt and apperantly...yes i am using urxvt. Now as much as I love urxvt I also am pretty new to it and pretty unexperienced with its configurations...I tried adding the line you suggested in my Xresources and that just made my font thinner and letterspacing got all messed up and I also can confirm that I do have the Deja Vu Sans Mono font installed (it was pre-installed).I am still learning linux so if you can make the answer a little bit simpler I would be really greatful!
– KnownAsDon
Mar 14 '18 at 7:53
add a comment |
I too am using the i3wm community edition of Manjaro Linux (18.0.4 Illyria) and URXVT Version 9.22. I had exactly the same problem on installing Oh My Zsh.
Following J G Miller's comprehensive and useful advice I edited my ~/.Xresources file as suggested, and it worked. Fantastic!
Until I opened Manjaro's pre-installed file manager - ranger (terminal based with vi keybindings). The change to ~/.Xresources now malformed the icons in this application.
Finding a similar stack overflow question I (after reverting the above change) amended my ~/.Xresources file from:
xvt.font: 9x15,xft:TerminessTTFNerdFontMono
to:
xvt.font: 9x15,xft:TerminessTTFNerdFontMono,xft:DejaVu Sans Mono:autohint=true:size=12
My understanding is that the above means the Manjaro i3 default font is used for ranger, but then when a non-recognised glyph is encountered (such as the ones in Oh My Zsh) DejaVu Sans Mono is used instead. Both applications now display correctly.
Thanks to J G Miller however for the right direction to follow.
add a comment |
I'd like to make this a comment on Concrete_Buddha's answer but I don't have the reputation.
Using the same Manjaro Linux (18.0.4 Illyria) and URXVT Version 9.22, I got all glyphs in ranger and the arrow in robbyrussell theme to display using:
URxvt.font: xft:DejaVu Sans Mono:autohint=true:size=12,xft:TerminessTTFNerdFontMono:size=12
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f429946%2fzsh-icons-broke-in-urxvt%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
First of all, there is a significant difference between the terminals types rxvt and unicode-rxvt (often abbreviated to urxvt). You have indicated that the terminal you are using is "URXVT Version 9.22", so to avoid confusion, please use the correct name which is not rxvt but urxvt.
As Mikel has pointed out, the Xresources file is telling urxvt to use the 9x15 font which is (a) the old style X11 server provided font method and (b) a limited capability bitmap font.
The oh-my-zsh Github README file explains
many themes require installing the Powerline Fonts in order to render properly
So in order to show the correct arrow shape you need to have the terminal using the appropriate font. Perhaps your update which broke the feature was an update which reset the font usage by urxvt?
As you state that sterminal displays the prompt correctly, check which font that is using, then change the .Xresources in your ${HOME} directory to use that font after verifying that it works with the manual test urxvt -font "font_name". (For the newer method of Xft supplied fonts, font_name is preceeded by "xft:" and followed by ":size=12" for font size).
Having checked in my urxvt, it seems quite a number of well known truetype and opentype monospace fonts do not provide the "right arrow" glyph and just show an empty box. However one readily available standard font that does work (and should be installed on your system) is Deja Vu Sans Mono.
So try firing up a urxvt with
urxvt -font "xft:Deja Vu Sans Mono:size=12" &
and see if your prompt is correctly displayed.
Take a look at https://bbs.archlinux.org/viewtopic.php?id=173477 for discussion on modifying font resource specification for urxvt in an Xresources/Xdefaults file.
PS Do not forget that you can use multiple urxvt terminals more efficiently if you first start the urxvtd daemon and then fire up terminals with urxvtc.
ADDENDUM
Thanks for confirming that you are using urxvt and you have DejaVu Sans Mono installed.
Confirm that there is no font substitution happening with the command entered in terminal at the prompt
fc-match "DejaVu Sans Mono"
producing the output
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
The actual font file location and styles available for the font can be verified with
fc-list | grep --color 'DejaVu Sans Mono'
Now assuming that is all okay, you need to check by firing up a urxvt from the command line of a terminal (sorry for not making that absolutely clear above and I had space between Deja and Vu which might have caused a problem)
urxvt -font "xft:DejaVu Sans Mono:size=12" &
that you can cut'n'paste the right-arrow character (from here) "➜" into that urxvt and that it displays correctly which I have checked does work.
I can also confirm that putting the following into an Xresources file
URxvt.font: xft:DejaVu Sans Mono:autohint=true:size=12
URxvt.boldFont: xft:DejaVu Sans Mono:autohint=true:bold:size=12
URxvt.italicFont: xft:DejaVu Sans Mono:autohint=true:italic:size=12
URxvt.boldItalicFont: xft:DejaVu Sans Mono:autohint=true:bold:italic:size=12
and loading into the Xorg server resource database with xrdb -merge Xresource_file_name to be 100% certain those values will be used and then firing up a terminal with just urxvt at the command line results in a terminal in which the font correctly shows the right arrow character. (you should also notice that characteristic of this font, the l characters are curly and that there is a dot in the center of the zero characters).
The font I normally use in urxvt "Luxi Mono" (easier to read, easy on the eyes IMHO) does not display the right arrow correctly even though the "font-manager" program reveals that "Luxi Mono" does have the glyph. Similarly xterm is also broken but a test in lxterminal, mate-terminal, and xfce4-terminal (checked in preferences that font is set to Luxi Mono) all display the right-arrow correctly. So it does appear that something is broken for some fonts in urxvt and xterm (which if I understand correctly share some code origins) just as the others which work similarly share some common code viz libvte.
First of all thank you for telling me the diffrence betwen urxvt and rxvt and apperantly...yes i am using urxvt. Now as much as I love urxvt I also am pretty new to it and pretty unexperienced with its configurations...I tried adding the line you suggested in my Xresources and that just made my font thinner and letterspacing got all messed up and I also can confirm that I do have the Deja Vu Sans Mono font installed (it was pre-installed).I am still learning linux so if you can make the answer a little bit simpler I would be really greatful!
– KnownAsDon
Mar 14 '18 at 7:53
add a comment |
First of all, there is a significant difference between the terminals types rxvt and unicode-rxvt (often abbreviated to urxvt). You have indicated that the terminal you are using is "URXVT Version 9.22", so to avoid confusion, please use the correct name which is not rxvt but urxvt.
As Mikel has pointed out, the Xresources file is telling urxvt to use the 9x15 font which is (a) the old style X11 server provided font method and (b) a limited capability bitmap font.
The oh-my-zsh Github README file explains
many themes require installing the Powerline Fonts in order to render properly
So in order to show the correct arrow shape you need to have the terminal using the appropriate font. Perhaps your update which broke the feature was an update which reset the font usage by urxvt?
As you state that sterminal displays the prompt correctly, check which font that is using, then change the .Xresources in your ${HOME} directory to use that font after verifying that it works with the manual test urxvt -font "font_name". (For the newer method of Xft supplied fonts, font_name is preceeded by "xft:" and followed by ":size=12" for font size).
Having checked in my urxvt, it seems quite a number of well known truetype and opentype monospace fonts do not provide the "right arrow" glyph and just show an empty box. However one readily available standard font that does work (and should be installed on your system) is Deja Vu Sans Mono.
So try firing up a urxvt with
urxvt -font "xft:Deja Vu Sans Mono:size=12" &
and see if your prompt is correctly displayed.
Take a look at https://bbs.archlinux.org/viewtopic.php?id=173477 for discussion on modifying font resource specification for urxvt in an Xresources/Xdefaults file.
PS Do not forget that you can use multiple urxvt terminals more efficiently if you first start the urxvtd daemon and then fire up terminals with urxvtc.
ADDENDUM
Thanks for confirming that you are using urxvt and you have DejaVu Sans Mono installed.
Confirm that there is no font substitution happening with the command entered in terminal at the prompt
fc-match "DejaVu Sans Mono"
producing the output
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
The actual font file location and styles available for the font can be verified with
fc-list | grep --color 'DejaVu Sans Mono'
Now assuming that is all okay, you need to check by firing up a urxvt from the command line of a terminal (sorry for not making that absolutely clear above and I had space between Deja and Vu which might have caused a problem)
urxvt -font "xft:DejaVu Sans Mono:size=12" &
that you can cut'n'paste the right-arrow character (from here) "➜" into that urxvt and that it displays correctly which I have checked does work.
I can also confirm that putting the following into an Xresources file
URxvt.font: xft:DejaVu Sans Mono:autohint=true:size=12
URxvt.boldFont: xft:DejaVu Sans Mono:autohint=true:bold:size=12
URxvt.italicFont: xft:DejaVu Sans Mono:autohint=true:italic:size=12
URxvt.boldItalicFont: xft:DejaVu Sans Mono:autohint=true:bold:italic:size=12
and loading into the Xorg server resource database with xrdb -merge Xresource_file_name to be 100% certain those values will be used and then firing up a terminal with just urxvt at the command line results in a terminal in which the font correctly shows the right arrow character. (you should also notice that characteristic of this font, the l characters are curly and that there is a dot in the center of the zero characters).
The font I normally use in urxvt "Luxi Mono" (easier to read, easy on the eyes IMHO) does not display the right arrow correctly even though the "font-manager" program reveals that "Luxi Mono" does have the glyph. Similarly xterm is also broken but a test in lxterminal, mate-terminal, and xfce4-terminal (checked in preferences that font is set to Luxi Mono) all display the right-arrow correctly. So it does appear that something is broken for some fonts in urxvt and xterm (which if I understand correctly share some code origins) just as the others which work similarly share some common code viz libvte.
First of all thank you for telling me the diffrence betwen urxvt and rxvt and apperantly...yes i am using urxvt. Now as much as I love urxvt I also am pretty new to it and pretty unexperienced with its configurations...I tried adding the line you suggested in my Xresources and that just made my font thinner and letterspacing got all messed up and I also can confirm that I do have the Deja Vu Sans Mono font installed (it was pre-installed).I am still learning linux so if you can make the answer a little bit simpler I would be really greatful!
– KnownAsDon
Mar 14 '18 at 7:53
add a comment |
First of all, there is a significant difference between the terminals types rxvt and unicode-rxvt (often abbreviated to urxvt). You have indicated that the terminal you are using is "URXVT Version 9.22", so to avoid confusion, please use the correct name which is not rxvt but urxvt.
As Mikel has pointed out, the Xresources file is telling urxvt to use the 9x15 font which is (a) the old style X11 server provided font method and (b) a limited capability bitmap font.
The oh-my-zsh Github README file explains
many themes require installing the Powerline Fonts in order to render properly
So in order to show the correct arrow shape you need to have the terminal using the appropriate font. Perhaps your update which broke the feature was an update which reset the font usage by urxvt?
As you state that sterminal displays the prompt correctly, check which font that is using, then change the .Xresources in your ${HOME} directory to use that font after verifying that it works with the manual test urxvt -font "font_name". (For the newer method of Xft supplied fonts, font_name is preceeded by "xft:" and followed by ":size=12" for font size).
Having checked in my urxvt, it seems quite a number of well known truetype and opentype monospace fonts do not provide the "right arrow" glyph and just show an empty box. However one readily available standard font that does work (and should be installed on your system) is Deja Vu Sans Mono.
So try firing up a urxvt with
urxvt -font "xft:Deja Vu Sans Mono:size=12" &
and see if your prompt is correctly displayed.
Take a look at https://bbs.archlinux.org/viewtopic.php?id=173477 for discussion on modifying font resource specification for urxvt in an Xresources/Xdefaults file.
PS Do not forget that you can use multiple urxvt terminals more efficiently if you first start the urxvtd daemon and then fire up terminals with urxvtc.
ADDENDUM
Thanks for confirming that you are using urxvt and you have DejaVu Sans Mono installed.
Confirm that there is no font substitution happening with the command entered in terminal at the prompt
fc-match "DejaVu Sans Mono"
producing the output
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
The actual font file location and styles available for the font can be verified with
fc-list | grep --color 'DejaVu Sans Mono'
Now assuming that is all okay, you need to check by firing up a urxvt from the command line of a terminal (sorry for not making that absolutely clear above and I had space between Deja and Vu which might have caused a problem)
urxvt -font "xft:DejaVu Sans Mono:size=12" &
that you can cut'n'paste the right-arrow character (from here) "➜" into that urxvt and that it displays correctly which I have checked does work.
I can also confirm that putting the following into an Xresources file
URxvt.font: xft:DejaVu Sans Mono:autohint=true:size=12
URxvt.boldFont: xft:DejaVu Sans Mono:autohint=true:bold:size=12
URxvt.italicFont: xft:DejaVu Sans Mono:autohint=true:italic:size=12
URxvt.boldItalicFont: xft:DejaVu Sans Mono:autohint=true:bold:italic:size=12
and loading into the Xorg server resource database with xrdb -merge Xresource_file_name to be 100% certain those values will be used and then firing up a terminal with just urxvt at the command line results in a terminal in which the font correctly shows the right arrow character. (you should also notice that characteristic of this font, the l characters are curly and that there is a dot in the center of the zero characters).
The font I normally use in urxvt "Luxi Mono" (easier to read, easy on the eyes IMHO) does not display the right arrow correctly even though the "font-manager" program reveals that "Luxi Mono" does have the glyph. Similarly xterm is also broken but a test in lxterminal, mate-terminal, and xfce4-terminal (checked in preferences that font is set to Luxi Mono) all display the right-arrow correctly. So it does appear that something is broken for some fonts in urxvt and xterm (which if I understand correctly share some code origins) just as the others which work similarly share some common code viz libvte.
First of all, there is a significant difference between the terminals types rxvt and unicode-rxvt (often abbreviated to urxvt). You have indicated that the terminal you are using is "URXVT Version 9.22", so to avoid confusion, please use the correct name which is not rxvt but urxvt.
As Mikel has pointed out, the Xresources file is telling urxvt to use the 9x15 font which is (a) the old style X11 server provided font method and (b) a limited capability bitmap font.
The oh-my-zsh Github README file explains
many themes require installing the Powerline Fonts in order to render properly
So in order to show the correct arrow shape you need to have the terminal using the appropriate font. Perhaps your update which broke the feature was an update which reset the font usage by urxvt?
As you state that sterminal displays the prompt correctly, check which font that is using, then change the .Xresources in your ${HOME} directory to use that font after verifying that it works with the manual test urxvt -font "font_name". (For the newer method of Xft supplied fonts, font_name is preceeded by "xft:" and followed by ":size=12" for font size).
Having checked in my urxvt, it seems quite a number of well known truetype and opentype monospace fonts do not provide the "right arrow" glyph and just show an empty box. However one readily available standard font that does work (and should be installed on your system) is Deja Vu Sans Mono.
So try firing up a urxvt with
urxvt -font "xft:Deja Vu Sans Mono:size=12" &
and see if your prompt is correctly displayed.
Take a look at https://bbs.archlinux.org/viewtopic.php?id=173477 for discussion on modifying font resource specification for urxvt in an Xresources/Xdefaults file.
PS Do not forget that you can use multiple urxvt terminals more efficiently if you first start the urxvtd daemon and then fire up terminals with urxvtc.
ADDENDUM
Thanks for confirming that you are using urxvt and you have DejaVu Sans Mono installed.
Confirm that there is no font substitution happening with the command entered in terminal at the prompt
fc-match "DejaVu Sans Mono"
producing the output
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
The actual font file location and styles available for the font can be verified with
fc-list | grep --color 'DejaVu Sans Mono'
Now assuming that is all okay, you need to check by firing up a urxvt from the command line of a terminal (sorry for not making that absolutely clear above and I had space between Deja and Vu which might have caused a problem)
urxvt -font "xft:DejaVu Sans Mono:size=12" &
that you can cut'n'paste the right-arrow character (from here) "➜" into that urxvt and that it displays correctly which I have checked does work.
I can also confirm that putting the following into an Xresources file
URxvt.font: xft:DejaVu Sans Mono:autohint=true:size=12
URxvt.boldFont: xft:DejaVu Sans Mono:autohint=true:bold:size=12
URxvt.italicFont: xft:DejaVu Sans Mono:autohint=true:italic:size=12
URxvt.boldItalicFont: xft:DejaVu Sans Mono:autohint=true:bold:italic:size=12
and loading into the Xorg server resource database with xrdb -merge Xresource_file_name to be 100% certain those values will be used and then firing up a terminal with just urxvt at the command line results in a terminal in which the font correctly shows the right arrow character. (you should also notice that characteristic of this font, the l characters are curly and that there is a dot in the center of the zero characters).
The font I normally use in urxvt "Luxi Mono" (easier to read, easy on the eyes IMHO) does not display the right arrow correctly even though the "font-manager" program reveals that "Luxi Mono" does have the glyph. Similarly xterm is also broken but a test in lxterminal, mate-terminal, and xfce4-terminal (checked in preferences that font is set to Luxi Mono) all display the right-arrow correctly. So it does appear that something is broken for some fonts in urxvt and xterm (which if I understand correctly share some code origins) just as the others which work similarly share some common code viz libvte.
edited Mar 15 '18 at 4:22
answered Mar 14 '18 at 3:54
J G MillerJ G Miller
24116
24116
First of all thank you for telling me the diffrence betwen urxvt and rxvt and apperantly...yes i am using urxvt. Now as much as I love urxvt I also am pretty new to it and pretty unexperienced with its configurations...I tried adding the line you suggested in my Xresources and that just made my font thinner and letterspacing got all messed up and I also can confirm that I do have the Deja Vu Sans Mono font installed (it was pre-installed).I am still learning linux so if you can make the answer a little bit simpler I would be really greatful!
– KnownAsDon
Mar 14 '18 at 7:53
add a comment |
First of all thank you for telling me the diffrence betwen urxvt and rxvt and apperantly...yes i am using urxvt. Now as much as I love urxvt I also am pretty new to it and pretty unexperienced with its configurations...I tried adding the line you suggested in my Xresources and that just made my font thinner and letterspacing got all messed up and I also can confirm that I do have the Deja Vu Sans Mono font installed (it was pre-installed).I am still learning linux so if you can make the answer a little bit simpler I would be really greatful!
– KnownAsDon
Mar 14 '18 at 7:53
First of all thank you for telling me the diffrence betwen urxvt and rxvt and apperantly...yes i am using urxvt. Now as much as I love urxvt I also am pretty new to it and pretty unexperienced with its configurations...I tried adding the line you suggested in my Xresources and that just made my font thinner and letterspacing got all messed up and I also can confirm that I do have the Deja Vu Sans Mono font installed (it was pre-installed).I am still learning linux so if you can make the answer a little bit simpler I would be really greatful!
– KnownAsDon
Mar 14 '18 at 7:53
First of all thank you for telling me the diffrence betwen urxvt and rxvt and apperantly...yes i am using urxvt. Now as much as I love urxvt I also am pretty new to it and pretty unexperienced with its configurations...I tried adding the line you suggested in my Xresources and that just made my font thinner and letterspacing got all messed up and I also can confirm that I do have the Deja Vu Sans Mono font installed (it was pre-installed).I am still learning linux so if you can make the answer a little bit simpler I would be really greatful!
– KnownAsDon
Mar 14 '18 at 7:53
add a comment |
I too am using the i3wm community edition of Manjaro Linux (18.0.4 Illyria) and URXVT Version 9.22. I had exactly the same problem on installing Oh My Zsh.
Following J G Miller's comprehensive and useful advice I edited my ~/.Xresources file as suggested, and it worked. Fantastic!
Until I opened Manjaro's pre-installed file manager - ranger (terminal based with vi keybindings). The change to ~/.Xresources now malformed the icons in this application.
Finding a similar stack overflow question I (after reverting the above change) amended my ~/.Xresources file from:
xvt.font: 9x15,xft:TerminessTTFNerdFontMono
to:
xvt.font: 9x15,xft:TerminessTTFNerdFontMono,xft:DejaVu Sans Mono:autohint=true:size=12
My understanding is that the above means the Manjaro i3 default font is used for ranger, but then when a non-recognised glyph is encountered (such as the ones in Oh My Zsh) DejaVu Sans Mono is used instead. Both applications now display correctly.
Thanks to J G Miller however for the right direction to follow.
add a comment |
I too am using the i3wm community edition of Manjaro Linux (18.0.4 Illyria) and URXVT Version 9.22. I had exactly the same problem on installing Oh My Zsh.
Following J G Miller's comprehensive and useful advice I edited my ~/.Xresources file as suggested, and it worked. Fantastic!
Until I opened Manjaro's pre-installed file manager - ranger (terminal based with vi keybindings). The change to ~/.Xresources now malformed the icons in this application.
Finding a similar stack overflow question I (after reverting the above change) amended my ~/.Xresources file from:
xvt.font: 9x15,xft:TerminessTTFNerdFontMono
to:
xvt.font: 9x15,xft:TerminessTTFNerdFontMono,xft:DejaVu Sans Mono:autohint=true:size=12
My understanding is that the above means the Manjaro i3 default font is used for ranger, but then when a non-recognised glyph is encountered (such as the ones in Oh My Zsh) DejaVu Sans Mono is used instead. Both applications now display correctly.
Thanks to J G Miller however for the right direction to follow.
add a comment |
I too am using the i3wm community edition of Manjaro Linux (18.0.4 Illyria) and URXVT Version 9.22. I had exactly the same problem on installing Oh My Zsh.
Following J G Miller's comprehensive and useful advice I edited my ~/.Xresources file as suggested, and it worked. Fantastic!
Until I opened Manjaro's pre-installed file manager - ranger (terminal based with vi keybindings). The change to ~/.Xresources now malformed the icons in this application.
Finding a similar stack overflow question I (after reverting the above change) amended my ~/.Xresources file from:
xvt.font: 9x15,xft:TerminessTTFNerdFontMono
to:
xvt.font: 9x15,xft:TerminessTTFNerdFontMono,xft:DejaVu Sans Mono:autohint=true:size=12
My understanding is that the above means the Manjaro i3 default font is used for ranger, but then when a non-recognised glyph is encountered (such as the ones in Oh My Zsh) DejaVu Sans Mono is used instead. Both applications now display correctly.
Thanks to J G Miller however for the right direction to follow.
I too am using the i3wm community edition of Manjaro Linux (18.0.4 Illyria) and URXVT Version 9.22. I had exactly the same problem on installing Oh My Zsh.
Following J G Miller's comprehensive and useful advice I edited my ~/.Xresources file as suggested, and it worked. Fantastic!
Until I opened Manjaro's pre-installed file manager - ranger (terminal based with vi keybindings). The change to ~/.Xresources now malformed the icons in this application.
Finding a similar stack overflow question I (after reverting the above change) amended my ~/.Xresources file from:
xvt.font: 9x15,xft:TerminessTTFNerdFontMono
to:
xvt.font: 9x15,xft:TerminessTTFNerdFontMono,xft:DejaVu Sans Mono:autohint=true:size=12
My understanding is that the above means the Manjaro i3 default font is used for ranger, but then when a non-recognised glyph is encountered (such as the ones in Oh My Zsh) DejaVu Sans Mono is used instead. Both applications now display correctly.
Thanks to J G Miller however for the right direction to follow.
answered Apr 18 at 21:38
Concrete_BuddhaConcrete_Buddha
112
112
add a comment |
add a comment |
I'd like to make this a comment on Concrete_Buddha's answer but I don't have the reputation.
Using the same Manjaro Linux (18.0.4 Illyria) and URXVT Version 9.22, I got all glyphs in ranger and the arrow in robbyrussell theme to display using:
URxvt.font: xft:DejaVu Sans Mono:autohint=true:size=12,xft:TerminessTTFNerdFontMono:size=12
New contributor
add a comment |
I'd like to make this a comment on Concrete_Buddha's answer but I don't have the reputation.
Using the same Manjaro Linux (18.0.4 Illyria) and URXVT Version 9.22, I got all glyphs in ranger and the arrow in robbyrussell theme to display using:
URxvt.font: xft:DejaVu Sans Mono:autohint=true:size=12,xft:TerminessTTFNerdFontMono:size=12
New contributor
add a comment |
I'd like to make this a comment on Concrete_Buddha's answer but I don't have the reputation.
Using the same Manjaro Linux (18.0.4 Illyria) and URXVT Version 9.22, I got all glyphs in ranger and the arrow in robbyrussell theme to display using:
URxvt.font: xft:DejaVu Sans Mono:autohint=true:size=12,xft:TerminessTTFNerdFontMono:size=12
New contributor
I'd like to make this a comment on Concrete_Buddha's answer but I don't have the reputation.
Using the same Manjaro Linux (18.0.4 Illyria) and URXVT Version 9.22, I got all glyphs in ranger and the arrow in robbyrussell theme to display using:
URxvt.font: xft:DejaVu Sans Mono:autohint=true:size=12,xft:TerminessTTFNerdFontMono:size=12
New contributor
New contributor
answered 5 mins ago
ryanvryanv
1
1
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f429946%2fzsh-icons-broke-in-urxvt%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
URxvt.font: 9x15
in your Xresources seems suspicious. Not sure if it supports those glyphs.– Mikel
Mar 13 '18 at 14:55
that seemed to work brefore and that is preconfigured and highly suggested about the distro developers...but what do you suggest me to do?
– KnownAsDon
Mar 13 '18 at 15:31
I did try to change it's values and even disable and none of them made any diffrence except messing with the font size
– KnownAsDon
Mar 13 '18 at 15:34