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
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
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