Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #1571 > unrolled thread

xterm: query font used after larger-vt-font() calls

Started byAlex <alex_m@localhost.localdomain>
First post2011-07-04 12:47 -0400
Last post2011-07-05 19:16 +0100
Articles 3 — 3 participants

Back to article view | Back to comp.os.linux.misc


Contents

  xterm: query font used after larger-vt-font() calls Alex <alex_m@localhost.localdomain> - 2011-07-04 12:47 -0400
    Re: xterm: query font used after larger-vt-font() calls despen@verizon.net - 2011-07-05 14:11 -0400
    Re: xterm: query font used after larger-vt-font() calls dave.gma+news002@googlemail.com.invalid (Dave Gibson) - 2011-07-05 19:16 +0100

#1571 — xterm: query font used after larger-vt-font() calls

FromAlex <alex_m@localhost.localdomain>
Date2011-07-04 12:47 -0400
Subjectxterm: query font used after larger-vt-font() calls
Message-ID<e4edna2mPO8nc4zTnZ2dnUVZ_sydnZ2d@giganews.com>
I have used Debian for years, but decided to try Ubuntu on a
new desktop to get more up to date packages. I got most things
to where I like them, but there are still a few annoying issues.

The current one is the xterm font. If I start the xterm with
a "fixed" font and increase it a few times (by larger-vt-font()
feature) I get the font I like. However, I cannot find what
exactly font it is to add to my Fvwm menu, etc. and spending an
hour with xfontsel did not help (too many variants).

Is there a way to find out what is the current font the xterm
uses (i.e. the font after larger-vt-font() calls, not the one
xterm was started with)?

Any advice is greatly appreciated!

-Alex

[toc] | [next] | [standalone]


#1602

Fromdespen@verizon.net
Date2011-07-05 14:11 -0400
Message-ID<icei24fvh2.fsf@verizon.net>
In reply to#1571
Alex <alex_m@localhost.localdomain> writes:

> I have used Debian for years, but decided to try Ubuntu on a
> new desktop to get more up to date packages. I got most things
> to where I like them, but there are still a few annoying issues.
>
> The current one is the xterm font. If I start the xterm with
> a "fixed" font and increase it a few times (by larger-vt-font()
> feature) I get the font I like. However, I cannot find what
> exactly font it is to add to my Fvwm menu, etc. and spending an
> hour with xfontsel did not help (too many variants).
>
> Is there a way to find out what is the current font the xterm
> uses (i.e. the font after larger-vt-font() calls, not the one
> xterm was started with)?

If it's set with xresources, this will turn it up:

Home> appres XTerm
*VT100.font3:   6x10
*VT100.font4:   7x13
*VT100.font1:   nil2
*VT100.font5:   9x15
*VT100.font6:   10x20
*VT100.font2:   5x7

Otherwise, you're using the builtins, you may need to
look at the source or man page.


-- 
Dan Espen

[toc] | [prev] | [next] | [standalone]


#1603

Fromdave.gma+news002@googlemail.com.invalid (Dave Gibson)
Date2011-07-05 19:16 +0100
Message-ID<j11ce8x6p2.ln2@perseus.wenlock-data.co.uk>
In reply to#1571
Alex <alex_m@localhost.localdomain> wrote:
> I have used Debian for years, but decided to try Ubuntu on a
> new desktop to get more up to date packages. I got most things
> to where I like them, but there are still a few annoying issues.
> 
> The current one is the xterm font. If I start the xterm with
> a "fixed" font and increase it a few times (by larger-vt-font()
> feature) I get the font I like. However, I cannot find what
> exactly font it is to add to my Fvwm menu, etc. and spending an
> hour with xfontsel did not help (too many variants).
> 
> Is there a way to find out what is the current font the xterm
> uses (i.e. the font after larger-vt-font() calls, not the one
> xterm was started with)?

Quick and dirty:

 printf '\033]50;?\007'

The returned string, which will probably be taken by the shell as input
from the keyboard, will be the above control sequence with the '?'
replaced with a font name or alias.

If the returned font name is an alias, look it up with xprop:

 xprop -font 7x13

See /usr/share/doc/xterm*/ctlseqs.txt for details.

This site may be of interest:

<http://home.comcast.net/~urbanjost/CLONE/UNIX_SCRIPTS/scripts_xterm/index.html>

[ Followup-To: set to comp.os.linux.misc ]

[toc] | [prev] | [standalone]


Back to top | Article view | comp.os.linux.misc


csiph-web