terminal length

Use this command to set the number of lines displayed on the screen.

Use the no option to unset the number of lines on a 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 length <0-511>
terminal no length <0-511>

Parameters

<0-511>

Number of lines on screen. Specify 0 for no pausing.

Default

Default length value 24 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
>enable
#terminal length 0
The following example sets the terminal length to 30 lines. 
#terminal length 30