A multi-purpose command to display device status, configure ports and devices, and more.
Outputs status and configuration of all devices, such as com3 and con.
Outputs status and configuration of con device, the console in which the command interpreter is running.
mode con cols=120 lines=20
Sets the number of columns and lines for the current console, resulting in window resizing, and clears the screen. The setting does not affect new console instances. Keywords: wide screen, wide window, screen size, window size, resize screen, resize window.
mode 120, 20
As above: Sets the number of columns (120) and lines (20), resulting in window resizing, and clears the screen.
mode con cols=120
Sets the number of columns for the current console, resulting in window resizing, and clears the screen. It seems to change the number of visible lines as well, but the total lines count of the console buffer seems unchanged.
As above: Sets the number of columns.
mode con cp
Outputs the current code page of the console.
mode con cp select=850
Sets the current code page of the console. For a list of code pages, see the linked Microsoft documentation below.
mode con rate=31 delay=1
Sets the rate and delay for repeated entry of a character while a key is held pressed, of the console. The lower the rate, the fewer repetitions per second.
$ mode /? Configures system devices. Serial port: MODE COMm[:] [BAUD=b] [PARITY=p] [DATA=d] [STOP=s] [to=on|off] [xon=on|off] [odsr=on|off] [octs=on|off] [dtr=on|off|hs] [rts=on|off|hs|tg] [idsr=on|off] Device Status: MODE [device] [/STATUS] Redirect printing: MODE LPTn[:]=COMm[:] Select code page: MODE CON[:] CP SELECT=yyy Code page status: MODE CON[:] CP [/STATUS] Display mode: MODE CON[:] [COLS=c] [LINES=n] Typematic rate: MODE CON[:] [RATE=r DELAY=d]