Mikhael Goikhman <[EMAIL PROTECTED]> writes:
> On 03 Jan 2003 12:46:00 -0800, Perry Hutchison wrote:
> > 
> > Is it possible to configure 2.2.4 to restrict windows to the size of
> > the screen, even if -geometry requests larger?
> > 
> > Motivation:  I want an xterm just tall enough to display an entire
> > file, but no taller than the screen.  This:
> > 
> >   xterm -geometry "80x`wc -l < $f | tr -d ' '`" +sb -sl 0 -e less $f
> > 
> > gets the file length almost right -- it's off by one line because it
> > doesn't allow for the "less" command/status line at the bottom -- but
> > if the file is longer than 89 lines the window doesn't fit on the
> > screen.  I could write a more complicated script, except that there's
> > no immediately-obvious way for a script to determine the maximum line
> > count for whatever display it might happen to be running on.
> 
> Use "xwininfo -root" to get the screen size, then substruct decorations
> (border size, title height), then substruct xterm's scroll bar, then
> divide by the font used in xterm (7x14), you should get the needed
> geometry for xterm.
> 
> Or just do the right thing and run the latest stable 2.4.14, then do:
> 
>   Style XTerm MaxWindowSize $[vp.width]p $[vp.height]p

Gee, I did search the man page before I answered.
(I searched for "size" but I guess I just got too many hits.)

It looks like the above command equivalent to:

Style XTerm MaxWindowSize 100 100

-- 
Dan Espen                           E-mail: [EMAIL PROTECTED]
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to