Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

What font a shell is using?

4 views
Skip to first unread message

T

unread,
Sep 16, 2009, 8:26:08 AM9/16/09
to
Greetings:

Is there a command or some file which would tell me what font a open
xterm is currently configured to run? I can list out all the fonts
with "xlsfonts", but I want to know what the xterm is using as a font
and can't seem to figure it out with any of the X Commands, xdpyinfo,
xlsfonts, etc...

Thanks for any help
Tom

Bit Twister

unread,
Sep 16, 2009, 8:47:00 AM9/16/09
to

Not for an open xterm, default might be found with xrdb. Example:

$ xrdb -query | grep xterm | grep font:
xterm*font: 8x13

shows my xterm default font set to 8x13

You can set custom xterm settings in ~/.Xresources

after file changes you do a xrdb -merge ~/.Xresources
Example .Xresources found here
http://groups.google.com/group/alt.os.linux/browse_thread/thread/5f31409f64f14f81/9d8d613ed41e8e8b?q=#9d8d613ed41e8e8b

Thomas Dickey

unread,
Sep 16, 2009, 8:31:45 PM9/16/09
to
On Sep 16, 8:47 am, Bit Twister <BitTwis...@mouse-potato.com> wrote:
> On Wed, 16 Sep 2009 05:26:08 -0700 (PDT), T wrote:
> > Greetings:
>
> > Is there a command or some file which would tell me what font a open
> >xterm is currently configured to run? I can list out all the fonts
> > with "xlsfonts", but I want to know what the xterm is using as a font
> > and can't seem to figure it out with any of the X Commands, xdpyinfo,
> > xlsfonts, etc...
>
> Not for an open xterm, default might be found with xrdb. Example:

It's done by an escape sequence in xterm (and is optional).
The xtermcontrol program uses this.
There's also an example in xterm's sources.

--
Thomas E. Dickey <dic...@invisible-island.net>
http://invisible-island.net
ftp://invisible-island.net


0 new messages