[mdlug] xterm question

Raymond McLaughlin driveray at ameritech.net
Thu Oct 9 13:38:48 EDT 2008


MDLUGers:

It is easy spawn an xterm with certain attributes predefined at the 
command line, for instance:

     xterm -geometry 100x40+25+5 -bg cyan -fg red

will start a 100 character by 40 line xterm with the left edge 25 pixels 
from the left side of the screen, and with the top edge 5 pixels below 
the top of the screen, and with red text (foreground) on a cyan background.

This gets me most of the way to where I want to go. Once the xterm has 
started I can <Ctrl><Right Click> on the xterm and get a menu from which 
I can select "Huge" from a list of "VT Fonts". This gets me the rest of 
the way. The question is how do I get there directly from the command line?

If I use the -fs switch I get an error message if it is followed by any 
non-numeric argument. A numeric produces no error, but also no change in 
the font displayed. I have tried using the -fn and -font switches, but 
haven't been able to determine an acceptable arguement. I have tried 
using filenames from several of the directories declared in my 
/etc/X11/xorg.conf file, but I always get an error like:

     xterm:  unable to open font "times", trying "fixed"....

     xterm:  unable to open font "times.ttf", trying "fixed"....

I have been unable to find any information about what type of font the 
xterm is looking for, or where.

Ideally I want a command line option that gets the xterm up with the 
"Huge" font selected as if from the <Ctrl><Right Click> menu. In this 
menu it always starts with "Default" (=medium) selected, so a second 
best would be to figure out how to change the "Default"

Raymond McLaughlin

mdlug



More information about the mdlug mailing list