Next: , Previous: , Up: Regions   [Contents][Index]

9.5 Resize

Command: resize [-h|-v|-b|-l|-p] [ [+|-]n[%] | = | max | min | _ | 0 ]

Resize the current region. The space will be removed from or added to the surrounding regions depending on the order of the splits. The available options for resizing are ‘-h’(horizontal), ‘-v’(vertical), ‘-b’(both), ‘-l’(local to layer), and ‘-p’(perpendicular). Horizontal resizes will add or remove width to a region, vertical will add or remove height, and both will add or remove size from both dimensions. Local and perpendicular are similar to horizontal and vertical, but they take in account of how a region was split. If a region’s last split was horizontal, a local resize will work like a vertical resize. If a region’s last split was vertical, a local resize will work like a horizontal resize. Perpendicular resizes work in opposite of local resizes. If no option is specified, local is the default.

The amount of lines to add or remove can be expressed a couple of different ways. By specifying a number n by itself will resize the region by that absolute amount. You can specify a relative amount by prefixing a plus ‘+’ or minus ‘-’ to the amount, such as adding +n lines or removing -n lines. Resizing can also be expressed as an absolute or relative percentage by postfixing a percent sign ‘%’. Using zero ‘0’ is a synonym for min and using an underscore ‘_’ is a synonym for max.

Some examples are:

resize +N       increase current region by N
resize -N       decrease current region by N
resize N        set current region to N
resize 20%      set current region to 20% of original size
resize +20%     increase current region by 20%
resize -b =     make all windows equally
resize max      maximize current region
resize min      minimize current region

Without any arguments, screen will prompt for how you would like to resize the current region.

See focusminsize if you want to restrict the minimun size a region can have.

Next: , Previous: , Up: Regions   [Contents][Index]