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

  • con

    Shows the console status: lines, columns, keyboard speed and code page.

  • con cols=N lines=N

    Changes the width and height of the console window.

  • con rate=N delay=N

    Adjusts the keyboard repeat rate and delay.

  • con cp /status

    Shows the active code page, like chcp.

  • COMn

    Shows or configures a serial port, for example COM1.

Usage examples

  • mode con

    Shows the console status.

  • mode con cols=120 lines=40

    Enlarges the console window to 120 by 40.

  • mode con rate=31 delay=1

    Sets the keyboard to the fastest repeat rate.

  • mode COM1

    Shows 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.

Related commands