Operating System - HP-UX
1830214 Members
1326 Online
109999 Solutions
New Discussion

Re: XTERM WINDOW with specific rows and columns.

 
SOLVED
Go to solution
Kennedy G. Doss
Regular Advisor

XTERM WINDOW with specific rows and columns.

HP-UX Gurus:

How do I invoke a xterm window with specific number of rows and columns? Right now whatever font I use, I always get a 80X24 window.

-Kennedy
7 REPLIES 7
Laurent Menase
Honored Contributor

Re: XTERM WINDOW with specific rows and columns.

try option -geometry 200x200
it will be in pixel and not in font,
Steven Schweda
Honored Contributor
Solution

Re: XTERM WINDOW with specific rows and columns.

"man xterm"
"man X"
(which, around here, has examples like:)
xterm -fn 6x10 -geometry 80x24+30+200 &
James R. Ferguson
Acclaimed Contributor

Re: XTERM WINDOW with specific rows and columns.

Hi:

You should be able to do something like:

# resize -s 45 120

...to change to a 45-row, 120-column matrix.

See the manpages for 'resize'.

Regards!

...JRF...
Laurent Menase
Honored Contributor

Re: XTERM WINDOW with specific rows and columns.

contrarily to what I said
-geometry is in line/col

xterm -geometry COLLSxLINES
Kennedy G. Doss
Regular Advisor

Re: XTERM WINDOW with specific rows and columns.

Thanks to all those who responded! It worked with your suggestion. All I had to pick was "xterm -geometry 132x48 &" where 132 is the number of columns and 48 the number of rows. Thanks again. -Kennedy
Kennedy G. Doss
Regular Advisor

Re: XTERM WINDOW with specific rows and columns.

" xterm -geometry 132x48 & " was what I was looking for.
Bill Hassell
Honored Contributor

Re: XTERM WINDOW with specific rows and columns.

One additional feature: you can make the geometry the default setting for all Xterm windows by creating a .Xdefaults file in your $HOME directory, something like this:

echo "XTerm*geometry: 80x24" >> $HOME/.Xdefaults

You can also add additional options to your Xterm window without using the command line switches:

echo "XTerm*loginShell: true" >> $HOME/.Xdefaults
echo "XTerm*foreground: white" >> $HOME/.Xdefaults
echo "XTerm*background: navy" >> $HOME/.Xdefaults

The .Xdefaults file must be in the $HOME directory of the machine that runs your Xterm program. Note that other terminal emulators on HP-UX (hpterm, dtterm) can bet to the same or different values in .Xdefaults.


Bill Hassell, sysadmin