Professional Documents
Culture Documents
Config
Config
KRDOS has many config options, which you can set or modify in this file.
If you simply want to use the default settings for KRDOS,then you do not
need to change anything in this file.
Note: This file is updated frequently to work with the latest build of
this branch of KRDOS, currently at build 2017.03.15.
Don't try to include DOS config.sys or config.nt settings like KEYB= and
DEVICE=, that won't work!
Settings Key
------------
<value>: A numeric value or string.
[value]: Parameter is optional.
val1|val2: Supply one (no |).
The only exception to this is that you can optionally turn on a KRDOS
specific setting using the syntax "REM KRDOS:[setting]", which can be
useful if you want both KRDOS and original KRDOS use the same config file.
----------------------------------------------------------------------------
Memory
======
The first 64KB (low) memory is included in KRDOS by default.
You may want to turn it off if some very old DOS programs (e.g. WordPerfect
Office 3.0) report the "Packed file is corrupt" message. In this case only
about 575KB (instead of 640KB) conventional memory can be used in total:
]#
rem LOW = OFF
#[
160KB of upper memory (UMB) is available by default.
You can mainly use this for loading TSR's with the LH/LOADHIGH command.
Mouse
=====
In text mode the standard DOS mouse features are disabled by default (Some
DOS programs handle the mouse badly, being able to leave the window).
To enable the DOS mouse:
]#
rem MOUSE = ON
#[
Mouse wheel movements can be automatically converted into keyboard presses
in KRDOS. By default, the standard vertical scrolling is converted into
up and down arrows, but with the WHEELMOD directive you can customize the
keys. You may optionally also specify a second value if your mouse supports
horizontal scrolling (it's converted into left and right arrows by default).
Note that you can switch the two scrolling methods by pressing the middle
mouse button and either the left or the right mouse button at the same time;
the original behaviors can be restored by pressing the middle mouse button
alone. To customize the converted key presses of the mouse wheel movements:
(0: disabled; 1: up/down arrows; 2: left/right arrows; 3: PgUp/PgDn keys;
4: Ctrl+up/down arrows; 5: Ctrl+left/right arrows; 6: Ctrl+PgUp/PgDn keys;
7: Ctrl+W/Z, as supported by WordStar and MS-DOS EDIT. Default: 1,2)
]#
rem WHEELMOD = 1,3
#[
Left and right mouse button clicks can also be automatically converted into
keyboard presses such as the Enter key and the ESC key in KRDOS. This is
enabled only if you don't set MOUSE=ON by default, but you can turn this
feature on even if MOUSE=ON is set by putting a minus sign in front of the
mode number(s), e.g. "CLICKMOD = -1,-4". To customize the converted key
presses of the left and right mouse button clicks (0: disabled; 1: Enter;
2: Space; 3: Tab; 4: ESC; 5: BackSpace. Default: 1,4):
]#
rem CLICKMOD = 2,5
#[
In KRDOS you can also choose to automatically hide the mouse pointer
when typing. The mouse pointer will reappear when you move the mouse or
click the mouse button. The directive AUHIDEMS stands for AUto HIDE MouSe:
]#
rem AUHIDEMS = ON
#[
In VGA mode when you run programs with mouse support, there may be cases
that the KRDOS and VGA mouse pointers do not overlap in the vertical
direction. If you encounter this problem when the mouse is enabled:
]#
rem VGAFIXMS = ON
#[
PC speaker
==========
By default, KRDOS has basic sound support through internal PC speaker.
To turn PC speaker support off:
]#
rem SPEAKER = OFF
#[
Cursor blinking
===============
Original KRDOS does not support cursor blinking. Cursor blinking is on in
KRDOS by default, but to turn it off:
]#
rem BLINKC = OFF
#[
Keyboard speed
==============
By default, KRDOS uses the keyboard speed settings in the Windows Control
Panel. You can change the keyboard repeat delay and interval in milliseconds
here to override the Windows defaults. In this case you need to set both
KEYDELAY and KEYINTER in order to take effect (0 = use Windows settings):
]#
rem KEYDELAY = 400
rem KEYINTER = 20
#[
Keyboard INT9/IRQ1 support
==========================
Original KRDOS does not provide support for enhanced keyboard handling
through INT9/IRQ1. KRDOS provides two modes for keyboard INT9/IRQ1
support. It is generally fine to use the default setting, which is 2.
However, you can change it to 1 in case you want to map certain keys in
XyWrite/Nota Bene, or to 0 to disable INT9/IRQ1 support:
]#
rem KEYMODE = 1
#[
Windows Key
===========
The Win key is normally used when doing some special operations in KRDOS.
For instance pasting text is done by Win+Ctrl+V, the Win key is required so
DOS programs get and can handle Ctrl+V. If your program has no need for
Win+Ctrl+ combinations, and you prefer to use Ctrl+ without the Win key (or
your keyboard does not have this key), then you may want to turn this OFF.
Note that with WINKEY = OFF you have to break with Ctrl+Shift+C instead of
Ctrl+C, move the window with Ctrl+Shift+left mouse button instead of Ctrl+
left mouse button, and so on; also note that when in the KRDOS command
line you may in fact paste with Ctrl+V even if you do not set WINKEY = OFF.
]#
rem WINKEY = OFF
#[
Long Filename support
=====================
KRDOS supports both traditional DOS 8.3 short file names (SFN) and
Windows-style long file names (LFN). Long filename support is enabled by
default in KRDOS so that LFN-compatible programs (e.g. the 4DOS shell)
can make use of it. While not recommended, you can turn it off with the LFN
option in case you want support for short file names only. When LFN is OFF,
the FILTER83 = ON option mimics the original KRDOS behavior to filter out DOS
8.3 names that have corresponding long names. When LFN is ON, this option
filters out files/directories that do not have corresponding DOS 8.3 names:
]#
rem LFN = OFF
rem FILTER83 = ON
#[
Date/time synchronization
=========================
By default, KRDOS always synchronizes date and time with the host system
just like in original KRDOS. You can disable this behavior in KRDOS so
that it is possible to set date and time locally in KRDOS:
]#
rem SYNCTIME = OFF
#[
AUTOEXEC file
=============
KRDOS uses the file autoexec.txt as DOS autoexec.bat by default just like
original KRDOS. You can specify an alternative AUTOEXEC file for KRDOS:
]#
rem AUTOEXEC = autoexec.bat
#[
Reported DOS version
====================
The default DOS version reported by KRDOS is 7.10. However, you can
specify a different DOS version you want KRDOS to report (2.00-9.99):
]#
rem DOSVER = 5.00
#[
Reported disk space
===================
Some old DOS programs expect a disk space much lower than your actual disk
space. You may want to enable this option if you encounter the problem that
an old DOS program complains about the total or free disk space. Note this
only affects the disk space reported by INT21/AH=36, not the one reported by
the "modern" INT21/AX=7303 function (which is used by e.g. the 4DOS shell):
]#
rem SPACELOW = ON
#[
Auto USE Windows drives
=======================
By default, KRDOS only USE the current directory as Drive C. However,
you can let KRDOS automatically USE all Windows drives in KRDOS and
set the current Windows directory as the current KRDOS directory:
]#
USEDRVS = ON
#[
Windows applications
====================
Like original KRDOS, KRDOS launches a program loaded inside KRDOS in a
separate window by default when it is deemed to be a Windows PE application.
It is recommended to leave it on in general, or you will most likely see the
message "This program cannot be run in DOS mode" when you run such programs.
However, you might want to disable this behavior on certain occasions:
]#
rem WINRUN = OFF
#[
Window/screen
=============
Compared with original KRDOS, KRDOS has better multi-monitor support and
can be started on the specified screen or monitor.
You can change the screen to start KRDOS here (0 = default screen):
]#
rem SCREEN = 2
SCREEN = 1
#[
Window/transparency
===================
Unlike original KRDOS, KRDOS allows you to change the transparency of the
KRDOS screen (both windowed and full-screen modes). The valid value is
from 0 (no transparency, the default) to 90 (high transparency):
]#
rem TRANSWIN = 20
#[
Window/title
============
You can change the default window title string and icon for KRDOS here.
The title string you set will override both the default setting and the
shortcut name of KRDOS.
To change the default icon for KRDOS, you generally need to specify the
location of the icon file. It can be either a .ICO file or .DLL/.EXE file,
and in the case that the file contains multiple icons, you can enter either
the icon index (starting at 0) or resource name as the second parameter.
For example, to use the second icon in the file C:\WINDOWS\explorer.exe both
"ICON = C:\WINDOWS\explorer.exe,1" and "ICON = C:\WINDOWS\explorer.exe,#101"
are accepted. You can also use predefined Windows icons by simply specifying
a resource name and omitting the icon file, e.g. "ICON = ,#104".
It is recommended to also set FRAME = ON below if you want the title string
and icon to show up in the KRDOS title bar.
]#
rem TITLE = New window title for KRDOS
rem ICON = some-icon-file.ico
#[
Font
====
Text is displayed using a built-in scalable TTF font.
You can for example use the included Nouveau_IBM TTF font instead, which is
compatible with KRDOS:
]#
rem FONT = Nouveau_IBM
#[
To use another (monospaced) TTF font, locate it in the Windows font
folder and copy that file (consola.ttf...) to the KRDOS folder:
(If no file extension is supplied, .ttf is assumed)
]#
rem FONT = CONSOLA
#[
Or more directly (for Windows installed fonts):
]#
rem FONT = C:\WINDOWS\FONTS\CONSOLA
#[
Unlike original KRDOS, KRDOS supports displaying italicized text as
well as superscripts, subscripts and small text. In order for styled text
such as underlined or italicized text to be displayed visually, you also
need to set the WP directive. It can be set to either "5", "6" for
WordPerfect 5.x/6.x, "WS" for WordStar, or "XY" for XyWrite:
(Note: WP = XY should work for XyWrite 4 out of the box, but will also give
similar results for XyWrite 3 and Nota Bene 3. Moreover, for both WordStar
and XyWrite, you can also optionally set a second parameter to specify the
background color, e.g. WP = XY,0; see the DOS color table appeared later in
this file for more information about the second parameter)
]#
rem WP = 6
#[
There are two ways to display italicized text visually in KRDOS. One
way is to slant the characters automatically.
Select a MDA card with an underline attribute. Mind it doesn't work for all
programs (an example it will work for is WordPerfect).
]#
rem COLORS = MONO[,color scheme]
#[
Scale the window when in graphics mode: SCALE = <1-9> (that's 100-900%).
It can be 0 (default) which will be expanded to the maximal supported scale
on the current monitor(s). It won't be that nice, and with a scale of 2 a
single point is simply enlarged to 2x2 points:
]#
rem SCALE = 2
#[
You can also optionally specify a second parameter for the graphical scale
if you want the vertical scale to be different from the horizontal scale. A
setting of "0,0" will be expanded to the maximal supported values for them:
]#
rem SCALE = 0,0
#[
Config warnings
===============
By default, KRDOS will warn you at startup if some options in this file
are not configured correctly and will then continue KRDOS's execution.
To bypass these warnings at startup:
]#
rem CONFWARN = OFF
#[
Printing
========
LPT<1-9> and COM<1-9> are available for printing, though many programs only
support LPT<1-3> and COM<1-4>.
Printer output is collected as a print job, considered to be finished if the
DOS application doesn't send any data for some time. If you experience
problems with printing (broken pages) or like the printer to respond
quicker. You can try if disabling this mechanism will help:
]#
rem TIMEOUT = OFF
#[
By default, the temporary printing files (.asc, .txt, .pdf) are located in
the current directory, but you can specify a different directory for them:
]#
rem TEMPDIR = %TEMP%
#[
The program DOSPrinter by default handles printer output.
If nothing is set, it will pop up a Windows printer selection dialog as your
application finished printing.