console

Configures the height and width of the serial console terminal.

Syntax

console [ height number_of_rows] [ width number_of_columns ]

Command Default

By default, the serial console is 24 rows high and 80 rows wide.

Parameters

height number_of_rows
Specifies the height of the serial console in rows. Valid values range from 1 through 256.
width number_of_columns
Specifies the width of the serial console in columns. Valid values range from 1 through 256.

Modes

Privileged EXEC mode

Usage Guidelines

Configure the size of the serial console terminal to prevent overwritten or misaligned console output when multiple users connect to the serial console. The terminal emulators that connect to the console must have the same window size as the console to prevent overwritten or misaligned output.

The configuration of the console size does not persist after a reboot.

Use the console command without options to display the size of the serial console terminal.

Examples

The following example displays the size of the serial console terminal.

device# console

Serial console height 24 width 80

The following example configures a height of 43 rows and a width of 132 columns.

device# console height 43 width 132

Set serial console height 43 width 132

The following example configures a height of 24 rows.

device# console height 24

Set serial console height 24

The following example configures a width of 80 columns.

device# console width 80

Set serial console width 80