
MNL-0641-01 Rev A3
ECO-4823
Effective: 04 Oct 16
Page 73 of 107
C
ONTROLLING THE
D
ISPLAY
The session configuration controls the width of the terminal in characters and the height in lines. It uses
these parameters to control handling of long input lines and to control pagination of multi-line output. For
details about changing these parameters, please refer to section XX.
Long Lines
Long lines come into play when a line is longer than the terminal width minus the prompt. In that case the
prompt is always displayed and part of the line will be hidden from display, as
indicated by ‘$’ at the
beginning and/or end of the visible part of the line. You can use the right and left arrows to see the rest of
the line.
For example:
SWI2210-XXXX# $there is text to the left of what is visible here
SWI2210-XXXX# there is text to the right of what is visible here$
SWI2210-XXXX# $there is text at both ends of what is visible here$
The first line has scrolled left; the second line has scrolled right; the third line has been scrolled to the
middle of a quite long line.
Pagination
Pagination appears each time execution of a command causes output of more lines than what has been
configured as terminal length. A typical example is the output from ‘show running-config’. After the first
several lines have been output, the pagination prompt is presented:
! [lines of text]
-- more --, next page: Space, continue: g, quit: ^C
The following keys control pagination:
Key
Operation
Enter
Display next line of output.
Space
Display next page of output.
G
Display remainder of output without more pagination.
Q / Ctrl+C
Discard remainder of output.
Any other key
Display next page of output. Note that certain terminal keys (arrows, Home, End, etc.) may appear as multiple
characters to the CLI, leading to multiple pages being output in quick succession.
The terminal length (also sometimes called height) can be configured for the current session using the
‘terminal length lines’ command. If lines = 0 is input, pagination is disabled.
SWI2210-XXXX# terminal length 0
SWI2210-XXXX# terminal length 25