DGS-6604
m
terminal width
CLI Reference Guide
899
terminal width
This command sets the number of character columns on the terminal screen for
the current lines displayed in a session. The
terminal width
command will only
affect the current session. If option
default
is specified, the display length will be
applied to all subsequent sessions and will be stored in the system configuration
(start-up config) to retain the setting for the next system restart.
terminal width
CHARACTERS
[default]
no terminal width
Default
CHARACTERS
: 80 characters
Command Mode
User EXEC
Usage Guideline
By default, the switch system terminal provides a screen display width of 80
characters. Reset this value for the current session if it does not meet the needs
of required for the terminal display.
Unless the default keyword is used, a change to the terminal width value applies
only to the current session. When the value in a session is changed, the value
applies only to that session. When the no form of this command is used, then the
number of lines in the terminal display screen is reset to the default of 80
characters.
For a remote CLI session access such as Telnet, the auto negotiation result of
terminal width will take precedence over the global configuration if the
negotiation is successful. Otherwise, the global configuration takes effect. After
that, adjust the line and width for the current session (this change will not be
saved in the system configuration for the next system restart). This will not affect
other sessions or the global configuration.
When exiting from the current session, the values of the terminal line and width is
reset back to the system configuration values (it may not be same as the default
setting, 80 characters; it is dependant on the current system configuration
setting).
Examples
The following example shows how to adjust the current session terminal width to
120 characters. The system terminal setting is not affected by the change. That
is because the adjustment is only applied to the current session.
Syntax Description
CHARACTERS
Specifies the number of characters to display on the screen; valid values are
from 80 to 255.
Default
default
(Optional) Sets the number of columns in the terminal display screen for
the current administration session and all other subsequent sessions. This
setting can be saved into the system configuration file (start-up config) and
retained for the next system restart (Privileged EXEC only).
Switch#terminal width 120