< Home

screen-width

Function

The screen-width command sets the maximum number of characters in each line displayed on a terminal screen.

The undo screen-width command restores the default setting.

Format

screen-width screen-width

undo screen-width

Parameters

Parameter Description Value
screen-width

Specifies the maximum number of characters in each line displayed on a terminal screen.

The value is an integer ranging from 60 to 512.

Views

All views

Default Level

3: Management level

Usage Guidelines

By default, each line displayed on a terminal screen has a maximum of 80 characters.

In most cases, changing or setting the maximum number of characters in each line displayed on the terminal screen is not recommended.

This command takes effect only for the current connection. The configuration will not be saved after the user logs out. For example, if a user logs in to the FW using a console interface, the command does not take effect for users logging in to the FW using the VTY interface. If the user logs out and logs in to the FW again using the console interface, the default number of characters will be displayed in each line.

Example

# Configure each line displayed on a terminal screen to have 60 characters.

<sysname> screen-width 60
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >