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


Groups > comp.os.linux.misc > #1603

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

From dave.gma+news002@googlemail.com.invalid (Dave Gibson)
Newsgroups comp.os.linux.misc, comp.os.linux.x
Subject Re: xterm: query font used after larger-vt-font() calls
Followup-To comp.os.linux.misc
Date 2011-07-05 19:16 +0100
Organization A noiseless patient Spider
Message-ID <j11ce8x6p2.ln2@perseus.wenlock-data.co.uk> (permalink)
References <e4edna2mPO8nc4zTnZ2dnUVZ_sydnZ2d@giganews.com>

Cross-posted to 2 groups.

Followups directed to: comp.os.linux.misc

Show all headers | View raw


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 ]

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

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

csiph-web