all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <moasen@zoho.com>
To: help-gnu-emacs@gnu.org
Subject: Re: xterm vs gnome-terminal and all-the-icons.el
Date: Thu, 25 Jan 2018 02:55:37 +0100	[thread overview]
Message-ID: <86wp06hfc6.fsf@zoho.com> (raw)
In-Reply-To: mailman.7862.1516745811.27995.help-gnu-emacs@gnu.org

joakim wrote:

> I noticed that the emacs all-the-icons.el
> works in gnome-terminal, but not in xterm.
> I'm curious if its possible to get the same
> effect in xterm. Does anyone have
> this working?

I found a SX Q&A page that is helpful [1].
I modernized some of the commands I found there
tho. The ones I don't mention, I didn't get
to work.

You can find out what resources are hooked to
xterm with this command:

    $ DISPLAY=":0" appres xterm

(In X, the DISPLAY part can probably
be omitted.)

You get a lot of stuff from appres(1) (which
means "application resources" for you
Sherlocks) - the line which is important here
tho is probably one which looks like this:

    xterm*faceName:	xft:bitstream vera sans mono bold:size=12:antialias=true

This is BTW the same way it is setup in the
.Xresources file, which can then be read every
time X starts with this line in ~/.xinitrc

    xrdb ~/.Xresources

Also, they mention "xrdb -q | grep -i font"
which doesn't give anything sensible in my case
as at least I have that face, not "font" - but
yes,

    $ DISPLAY=":0" xrdb -q | grep face

works. If in doubt, grep for xterm and get
it all :)

You can also do:

    $ sudo lsof -p $(pidof xterm) | grep fonts

for where xterm then finds the fonts:

    xterm [...] /usr/share/fonts/truetype/inconsolata/Inconsolata.otf

Somewhat of a surprise, lsof(8) 8? I don't have
by default, so I had to get that, and possibly
even you as well, but the pack is also named
that so it is easy to find. Assuming Debian
forks as always...

[1] https://unix.stackexchange.com/questions/96962/how-can-i-find-the-default-font-resource-xterm-is-using

-- 
underground experts united
http://user.it.uu.se/~embe8573


  parent reply	other threads:[~2018-01-25  1:55 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.7862.1516745811.27995.help-gnu-emacs@gnu.org>
2018-01-24 23:20 ` xterm vs gnome-terminal and all-the-icons.el Emanuel Berg
2018-01-25  1:55 ` Emanuel Berg [this message]
2018-01-23 22:16 joakim
2018-01-25  5:35 ` Yuri Khan
     [not found] ` <mailman.7941.1516858559.27995.help-gnu-emacs@gnu.org>
2018-01-25  8:11   ` Emanuel Berg
2018-01-25  8:18     ` Emanuel Berg
2018-01-25 17:02     ` Eli Zaretskii
     [not found]     ` <mailman.7970.1516899749.27995.help-gnu-emacs@gnu.org>
2018-01-25 18:43       ` Emanuel Berg
2018-01-25 19:08     ` Yuri Khan
     [not found]     ` <mailman.7981.1516907357.27995.help-gnu-emacs@gnu.org>
2018-01-25 19:24       ` Emanuel Berg
2018-01-26  8:04         ` tomas
     [not found]         ` <mailman.8028.1516984440.27995.help-gnu-emacs@gnu.org>
2018-01-26 16:49           ` Emanuel Berg
2018-01-26 20:59             ` tomas
     [not found]             ` <mailman.8049.1517000394.27995.help-gnu-emacs@gnu.org>
2018-01-26 21:10               ` Emanuel Berg
2018-01-26 23:11                 ` Emanuel Berg
2018-02-04 18:19                 ` joakim
2018-02-07 11:17                   ` joakim
     [not found]                 ` <mailman.8546.1517768409.27995.help-gnu-emacs@gnu.org>
2018-02-04 18:54                   ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86wp06hfc6.fsf@zoho.com \
    --to=moasen@zoho.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.