Command: modecon
MODECON (command: MODE) configures and sets the state for various
hardware devices and more. MODECON is no longer in use. Use
MODE instead.
Syntax:
mode [device][options] or:
mode [screen mode]
Devices:
CON[:] Console. This controls the display driver, which must
be installed first. MODE CON allows you to set your
screen's "codepage". This is useful because each
codepage lets you display different characters. For
more information on codepage see the CODEPAGE
INFORMATION PACK.
LPT[:] Parallel Ports
COM[:] Serial Ports
PARK Not implemented in FreeDOS mode.
Options:
MODE [device] [/STA[TUS]] Shows the status of one or all devices.
MODE LPTn[:] cols[,[lines][,retry]]
MODE LPTn[:] [COLS=...] [LINES=...] [RETRY=...]
Cols or cpi, 6/8 lpi, retry p or n
Retry: p infinite / n none
MODE LPTn[:]=[COMn[:]|NUL] Redirect printer data to serial port or NUL
MODE COMn[:] baud,parity,data,stop,retry
MODE COMn[:] [BAUD[HARD]=...] [PARITY=...] [DATA=...] [STOP=...]
[RETRY=...] Empty values allowed
Baud can be abbreviated to unique prefix,
parity can be o/e/n/s/m, the latter 2 mean
space/mark, data can be 5..8, stop 1..2.
Retry is IGNORED!
PLANNED: Retry b/e/r -> busy/error/ready if
busy, p/n infinite/no retry.
MODE CON[:] [CP|CODEPAGE] [/STA[TUS]]
Shows the status of CON (console).
FreeDOS DISPLAY must be loaded before.
MODE CON[:] [CP|CODEPAGE] REF[RESH]
Refreshes the active codepage to hardware.
FreeDOS DISPLAY must be loaded.
MODE CON[:] [CP|CODEPAGE] PREP[ARE]=((codepage) filename)
FreeDOS DISPLAY must be loaded before.
Use PREP=((,cp2,cp3,,cp5)...) to prepare
codepages in other buffers.
MODE CON[:] [CP|CODEPAGE] SEL[ECT]=number
FreeDOS DISPLAY must be loaded before.
MODE CON[:] [NUMLOCK|CAPSLOCK|SCROLLLOCK|SWITCHAR]=value
Value can be: + or - for the locks or a
character for switchar.
MODE CON[:] [COLS=...] [LINES=...]
Possible values depend on your hardware.
MODE CON[:] [RATE=...] [DELAY=...]
Default rate 20, default delay 1. Rate can
be 1..32 for 2..30 char/sec, delay can be
1..4 for 1/4..4/4 sec.
MODE [40|80|BW40|BW80|CO40|CO80|MONO][,rows]
This are the fix screen modes.
Rows can be 25, 28, 43 or 50. Use 8, 14 or
16 as 'rows' value if you only want to
change the font.
MODE [CO40|CO80|...],[R|L][,T]
This are the flexible screen modes.
Values for columns are 40, 80, 132, rows
can be 25, 28, 30, 34, 43, 50, 60. Use 8,
14 or 16 as 'rows' value if you only want
to change the font. Shift CGA left/right,
T is interactive mode.
/? Shows the help.
Comments:
MODECON is no longer in use. Use MODE instead.
Examples:
- none -
See also:
chcp
cpidos
display
graftabl
kc
keyb
keycode
keyman
klib
kpdos
listxdef
mkeyb
mode
nlsfunc
xkeyb
Copyright © 2003-2004 Aitor SANTAMARIA MERINO, Henrique PERON,
updated 2011 by W. Spiegl.
This file is derived from the FreeDOS Spec Command HOWTO.
See the file H2Cpying for copying conditions.