screen-width
Function
The screen-width command sets the number of columns displayed on a terminal screen.
The undo screen-width command restores the default configuration.
By default, 132 columns are displayed on a terminal screen.
Parameters
Parameter | Description | Value |
---|---|---|
screen-width | Specifies the width of a terminal screen. | The value is an integer ranging from 60 to 512. |
temporary | Specifies the temporary width of a terminal screen. | - |
Usage Guidelines
Usage Scenario
When logging in to a device using the terminal tool, you can run this command to adjust the screen width on the device to the same as that specified by the terminal tool to prevent garbled lines.
Precautions
The configured number of columns displayed on a terminal screen takes effect only on users logging in through the console port but does not affect those logging in through VTY or other interfaces.
If you run the screen-width command multiple times, only the latest configuration takes effect.