Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ wsize(1) — HP-UX 9.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

windows(1)

wborder(1)

wcreate(1)

wdestroy(1)

wdisp(1)

wfont(1)

wlist(1)

wmove(1)

wselect(1)

wsh(1)

wsize(3W)

WSIZE(1)

NAME

wsize − change sizes of one or more windows

SYNOPSIS

wsize [-s w,h] [window_spec...]

DESCRIPTION

This command changes the sizes of the specified windows (by default, if you give no window_specs, the window connected to standard input). See windows(1) for an explanation of window_spec.

By default (if you give no -s option), wsize changes each window to its maximum possible size (width and height), which is its raster/buffer size less its pan (view) offsets.  The upper left corners of the user units remain fixed, while the opposite corners change their locations.  For term0 windows, which do not support panning, the maximum size is the logical screen size, normally the same number of rows and columns as when the window was created.  See wcreate(1) for details.

The option is:

-s w,h Set the new sizes to the given width and height, in units appropriate to type of each window, as in wcreate(1). (If you give more than one window_spec, this only makes sense if they are all of the same type.)

wsize silently limits the new size of each window to its maximum width and height.  It also silently limits its minimum width and height when it has a normal border.  If the window’s border is thin, or if the window has no border, the minimum allowed size is one character cell on a side (for term0 windows) or one pixel on a side (for other types). 

This command does not let you change the logical screen size (distinct from window and buffer sizes) of a term0 window. 

EXAMPLES

wsize Change the window connected to standard input to its maximum size. 

wsize -s400,500 win5 win2
Change the size of graphics windows "win5" and "win2" to 400 pixels wide, 500 pixels high, or to their maximum widths and/or heights if smaller. 

wsize -s40,10
Change the size of the window connected to standard input, of type term0, to 40 columns by 10 rows. 

HARDWARE DEPENDENCIES

Series 500:
Borderless windows (−T option) are not supported on Series 500. 

SEE ALSO

windows(1), wborder(1), wcreate(1), wdestroy(1), wdisp(1), wfont(1), wlist(1), wmove(1), wselect(1), wsh(1), wsize(3W). 

DIAGNOSTICS

The following diagnostic values are returned by this command:

0 If no errors are detected. 

1 Prints a message to standard error and returns 1 if it encounters an error which prevents sizing a window, including trouble while expanding a window_spec pattern. 

2 Prints a message to standard error, continues, and later returns 2 if it encounters any error while trying to size one window. 

Hewlett-Packard Company  —  HP-UX Release 8.0: January 1991

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026