The display vty lines command displays the number of lines displayed in the screen of a VTY.
display vty lines
None
All views
3: Management level
A user can set the maximum number of lines by using the screen-length command and save the setting to a configuration file.
# Display the number of lines displayed in the screen of the current VTY.
<sysname> display vty lines Current user-interface lines is 24