terminal width

Use this command to set the number of characters to be displayed in one line on the screen. Use the no option to unset the number of characters on the screen.

If user wants to have a fixed terminal length and width, then terminal length should not be set to 0. i.e. CLI “terminal length 0“ should not be used, and only non-zero length to be used.

If the terminal length is set to 0, the width defaults to 80 and cannot be changed. To adjust the width, the length must first be set to a non-zero value, after which the width can be adjusted as needed.

Command Syntax

Copy
terminal width <24-511>
terminal no width <24-511>

Parameters

<24-511>

Number of lines on screen

Default

Default width value 80 is optionally overridden by kernel.

Command Mode

Execution mode and Privileged execution mode

Applicability

This command was introduced before OcNOS version 1.3.

Examples

Copy
host#terminal width 120