# change-window-width(2)

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## NAME

change-window-width - Change the width of the current window
grow-window-horizontally - Enlarge current window horizontally (relative)
shrink-window-horizontally - Shrink current window horizontally (relative)
resize-window-horizontally - Resize current window horizontally (absolute)

## SYNOPSIS

n change-window-width [ "width" ]

n grow-window-horizontally
n shrink-window-horizontally
n resize-window-horizontally

## DESCRIPTION

change-window-width changes the width of the current window, if the numeric argument n is given then the window width is changed by n characters. If n is not specified the user is prompted for the new width and the window width will be changed to this value. The command aborts if the requested size cannot be achieved (the window becomes too small or a neighbouring does).

## EXAMPLE

Refer to `mouse.emf` for an example of window growth using the mouse to manipulate the size of the windows.

## NOTES

Commands grow-window-horizontally, shrink-window-horizontally and resize-window-horizontally were replaced by the new change-window-width command in April 2002. Following are macro implementations of the old commands:

    define-macro grow-window-horizontally
        @# change-window-width
    !emacro

    define-macro shrink-window-horizontally
        &neg @# change-window-width
    !emacro

    define-macro resize-window-horizontally
        !if &not @?
            !abort
        !endif
        change-window-width @#
    !emacro

## SEE ALSO

change-window-depth(2), resize-all-windows(2), split-window-horizontally(2).

(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12

</HMTL>