terminal width

Specifies the number of characters on each line of the terminal screen for the current CLI session.

Syntax

[no] terminal width <columns>

Syntax Description

no

(Optional) Sets the terminal width to zero.

columns

The number of columns on the terminal screen. Allowed values are 0 to 512.

Defaults

The default is to use the number of columns sent through the terminal protocol in use (if any), otherwise the default is zero.

Usage Guidelines

This command specifies the number of characters on each line of the terminal screen, from 0 to 512. If the number of columns is sent by the client over the terminal protocol in use (e.g., ssh or telnet), that value will be used. Otherwise, the number of columns is set to zero.

An incorrect setting for the terminal width may result in poor pagenation and other undesirable screen artifacts.

Examples

terminal width 120
terminal lengthterminal terminal-type

Last updated