You are not logged in.

#1 2021-04-01 21:19:08

archuser7364
Member
Registered: 2020-03-24
Posts: 5

[SOLVED] Emoji not displaying in command prompt

I'm using ZSH for my terminal.

Emoji's are dispalying correctly in the browser, but when copy/pasting the emoji into my command prompt, I get a blank square instead.

It's the same when I load up my CLI email program (mutt), the subject lines that contain emoji's are coming up as blank squares.  They display fine when viewing my webmail in my browser.

I know my system has emoji's installed as they are displaying fine in my browser, but my command line does not handle any. 

What am I missing?  Any help appreciated!

Last edited by archuser7364 (2021-04-02 12:34:53)

Offline

#2 2021-04-01 21:24:12

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Emoji not displaying in command prompt

Your system doesn't have emojis installed, you have fonts capable of rendering them. And those fonts have to be available and configured for your browser *and* your terminal. Zsh isn't your terminal, it is your shell.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2021-04-01 22:17:55

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: [SOLVED] Emoji not displaying in command prompt

archuser7364 wrote:

What am I missing?  Any help appreciated!

You need to use a terminal emulator which supports displaying emoji, e.g. gnome-terminal. And you probably need to install a font. Browsers such as Firefox include an emoji font, but that does not help you for the terminal.

So try this:

sudo pacman -S gnome-terminal noto-fonts-emoji

Offline

#4 2021-04-02 01:15:04

GaKu999
Member
From: US/Eastern
Registered: 2020-06-21
Posts: 696

Re: [SOLVED] Emoji not displaying in command prompt

Not only installing the font but also you may need to adjust the font priority so emojis actually use the target emoji font that you installed, at least in some cases.


My reposSome snippets

Heisenberg might have been here.

Offline

#5 2021-04-02 06:16:26

seth
Member
Registered: 2012-09-03
Posts: 50,009

Re: [SOLVED] Emoji not displaying in command prompt

@Morn, pretty much every TE *supports* UTF-8 and blending in variable-width glyphs, including the superfluous and silly ones.
It's mostly a matter of configuration.

Offline

#6 2021-04-02 12:08:00

archuser7364
Member
Registered: 2020-03-24
Posts: 5

Re: [SOLVED] Emoji not displaying in command prompt

Thank you very much everyone, and Jasonwryan for the quick response and correcting my definitions.

I was using urxvt for the terminal (emulator) which I believe was the crux of it  - from what I have gathered does not work with emoji's. Moving to Termite solved this.

Offline

#7 2021-04-02 12:23:21

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] Emoji not displaying in command prompt

Please remember to mark your thread [SOLVED] (edit the title of your first post).


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

#8 2021-04-02 12:35:01

archuser7364
Member
Registered: 2020-03-24
Posts: 5

Re: [SOLVED] Emoji not displaying in command prompt

Done

Offline

#9 2021-04-02 13:21:25

seth
Member
Registered: 2012-09-03
Posts: 50,009

Re: [SOLVED] Emoji not displaying in command prompt

urxvt infamously doesn't use fontconfig for glyph substitution, you've to configure it.
Try eg.

urxvt -fn 'xft:Source Code Pro-9,xft:Noto Emoji-9'

And see the manpage for the corresponding xrdb resource.
As the vanilla version is very picky reg. the glyphbox size, also consider https://aur.archlinux.org/packages/rxvt … ideglyphs/ for an easier life.

Offline

Board footer

Powered by FluxBB