mode
Windows CMD · System · reference only
What it does
Configures system devices: the size and properties of the console, keyboard speed and serial ports.
Syntax
mode [dispositivo] [opciones]
Options and parameters
conShows the console status: lines, columns, keyboard speed and code page.
con cols=N lines=NChanges the width and height of the console window.
con rate=N delay=NAdjusts the keyboard repeat rate and delay.
con cp /statusShows the active code page, like chcp.
COMnShows or configures a serial port, for example COM1.
Usage examples
mode conShows the console status.
mode con cols=120 lines=40Enlarges the console window to 120 by 40.
mode con rate=31 delay=1Sets the keyboard to the fastest repeat rate.
mode COM1Shows the configuration of the COM1 serial port.
Notes and common mistakes
- In the modern Windows Terminal, cols and lines may not change the window size.
- The range of values for rate and delay depends on the keyboard and the system.