DOSBOX-X(1)

🌸 DOSBOX-X(1) β€” dosbox-x 🌸

okay bestie, sit DOWN, because we're about to read the manual for dosbox-x from the dosbox-x manual section, and it's a whole ✨journey✨. no cap.


✨ NAME ✨

dosbox-x β€” an x86/DOS and PC98 emulator πŸ’– (yes, that's the whole vibe. emulator. iconic.)


✨ SYNOPSIS ✨

dosbox-x [OPTIONS] [FILE]

that's it. that's the whole thing. look at her go πŸŽ€


✨ DESCRIPTION ✨

okay so this manual page briefly documents DOSBox-X, which is an x86/DOS and PC98 emulator. briefly!! they said briefly!! 😭

the options are all listed below, and depending on which option you're looking at, you might be able to specify one of them, or honestly several of them. mix and match, it's giving build-your-own-adventure.

now. the optional FILE argument. listen closely because this part is lowkey important:

  • it should be a DOS executable or a directory.
  • if it's a DOS executable (think .com, .exe, .bat), the program just runs automatically. no extra steps, she's self-sufficient πŸ’…
  • if it's a directory, then that directory gets mounted as the C:\ drive. cute, right?
  • and if your DOS executable needs parameters? enclose the command and its parameters in quotes. the original says "it's parameters" and honestly we're keeping the typo's spirit alive, but the takeaway is: quotes around the whole thing.

and for an introduction, type INTRO inside dosbox-x. that's your tutorial era. go get it πŸ¦‹


✨ OPTIONS ✨

a summary of the available options. here we go, this is the long part, stay with me 🫢

  • -?, -h or -help β€” shows you the help screen and then exits. the classic "hi, bye" πŸ’€
  • -v, -ver or -version β€” displays the version information and exits.
  • -fullscreen, -fs β€” starts dosbox-x in fullscreen mode. immersive. main character energy πŸ‘‘
  • -machine machinetype β€” starts dosbox-x with a specific machine type. valid choices are, and buckle up because this list is long:
    • mda β€” IBM Monochrome Display Adapter, and it's text only, bestie.
    • hercules β€” Hercules Graphics Card, and she's monochrome.
    • cga β€” IBM Color Graphics Adapter, with automatic RGB/Composite switching. fancy.
    • cga_mono β€” IBM CGA attached to a monochrome display.
    • cga_rgb β€” IBM CGA attached to an RGB monitor.
    • cga_composite β€” IBM CGA (early revision) attached to an NTSC TV.
    • cga_composite2 β€” IBM CGA (late revision) attached to an NTSC TV.
    • pcjr β€” IBM PCjr.
    • pcjr_composite β€” IBM PCjr (late revision) attached to NTSC TV.
    • pcjr_composite2 β€” IBM PCjr (late revision) attached to NTSC TV.
    • tandy β€” Tandy 1000 Graphics Adapter.
    • amstrad β€” Amstrad PC1512 graphics mode.
    • ega β€” IBM Enhanced Graphics Adapter.
    • jega β€” Japanese Enhanced Graphics Adapter (Microsoft AX).
    • mcga β€” IBM Multi-Color Graphics Array.
    • vgaonly β€” IBM Video Graphics Array (see below β€” yes there's a whole thing about this one, keep reading).
    • svga_paradise β€” SVGA - Paradise Systems PVGA1A.
    • svga_et3000 β€” SVGA - Tseng Labs ET3000.
    • svga_et4000 β€” SVGA - Tseng Labs ET4000.
    • svga_s3 β€” VESA SVGA - S3 Trio64 - VBE 2.0.
    • svga_s386c928 β€” VESA SVGA - S3 86c928 - VBE 2.0 (experimental πŸ§ͺ).
    • svga_s3vision864 β€” VESA SVGA - S3 Vision 864 - VBE 2.0.
    • svga_s3vision868 β€” VESA SVGA - S3 Vision 868 - VBE 2.0.
    • svga_s3vision964 β€” VESA SVGA - S3 Vision 964 - VBE 2.0.
    • svga_s3vision968 β€” VESA SVGA - S3 Vision 968 - VBE 2.0.
    • svga_s3trio32 β€” VESA SVGA - S3 Trio32 - VBE 2.0.
    • svga_s3trio64 β€” VESA SVGA - S3 Trio64 - VBE 2.0 (same as svga_s3).
    • svga_s3trio64v+ β€” VESA SVGA - S3 Trio64V+ - VBE 2.0.
    • svga_s3virge β€” VESA SVGA - S3 ViRGE - VBE 2.0 (experimental πŸ§ͺ).
    • svga_s3virgevx β€” VESA SVGA - S3 ViRGE VX - VBE 2.0 (experimental πŸ§ͺ).
    • vesa_oldvbe β€” VESA SVGA - S3 Trio64 with VESA BIOS Extensions (VBE) 1.2.
    • vesa_oldvbe10 β€” VESA SVGA - S3 Trio64 with VESA BIOS Extensions (VBE) 1.0.
    • vesa_nolfb β€” VESA SVGA - S3 Trio64 with VBE 2.0 with Linear Frame Buffer disabled.
    • pc98 β€” Japanese NEC PC-98 emulation.
    • pc9801 β€” same as pc98.
    • pc9821 β€” same as pc98.
    • fm_towns β€” Japanese Fujitsu FM Towns (not implemented πŸ™ˆ don't get your hopes up).

the default is svga_s3. periodt.

for some special VGA effects you can use the machinetype vgaonly. but bestie, heads up: note that this disables SVGA capabilities and it might be slower because of the higher emulation accuracy. tradeoffs!! we love an accurate queen who takes her time πŸ’…

Note β€” the machinetype doesn't just affect the emulated video card. it may also affect the available sound cards. so like, choose wisely, iykyk.
  • -conf configfile β€” starts dosbox-x with the options specified in configfile. this file can also have a section called [autoexec] where you put commands you want executed on startup. and here's the cute part: you can specify multiple -conf options with configfiles, and they'll be overlaid on each other. layer cake πŸŽ‚
  • -editconf [editor] β€” opens the default configuration file in a text editor. if you don't give an editor name, it uses the program from the EDITOR environment variable. let the environment decide, she's independent.
  • -userconf β€” loads the configuration file located in ~/.config/dosbox-x. can be combined with the -conf option. they're friends 🫢
  • -printconf β€” prints the location of the default configuration file and exits.
  • -eraseconf, -resetconf β€” removes the default configuration file and exits. gone. deleted. πŸ—‘οΈ
  • -erasemapper, -resetmapper β€” removes the mapperfile configured in the clean default configuration file and exits.
  • -opencaptures program β€” calls program with, as its first parameter, the location of the captures folder, and exits.
  • -opensaves program β€” calls program with, as its first parameter, the location of the saves folder, and exits.
  • -startui, -startgui or -starttool β€” starts DOSBox-X with the GUI configuration tool. point and click era ✨
  • -startmapper β€” starts the internal keymapper on startup of dosbox-x. you can use it to change the keys dosbox-x uses. remap your whole life.
  • -promptfolder β€” prompts for the working directory when DOSBox-X starts.
  • -nopromptfolder β€” does not prompt for the working directory when DOSBox-X starts. the opposite of the one above, and honestly? iconic duo.
  • -nogui or -nomenu β€” don't show the GUI menu bar when in windowed mode. minimalism πŸŽ€
  • -showcycles β€” shows the cycles count (FPS) in the title.
  • -showrt β€” shows the emulation speed relative to realtime in the title.
  • -socket socketnumber β€” passes the TCP socket number socketnumber for the nullmodem emulation. see the WIKI for details.
  • -savedir path β€” sets path for the save slots.
  • -defaultdir path β€” sets path as the default working path for DOSBox-X.
  • -defaultconf β€” uses the default config settings for DOSBox-X.
  • -defaultmapper β€” uses the default key mappings for DOSBox-X.
  • -data-host-forced β€” forces synchronization of date and time with the host. your clock, but make it their clock πŸ•
  • -display2 [color] β€” enables both standard & monochrome dual-screen mode. the monochrome display defaults to white, but you can optionally set it to green or amber. two screens, one queen.
  • -lang message_file β€” starts dosbox-x with the language specified in message_file. multilingual slay 🌈
  • -nodpiaware β€” ignores (does not signal) Windows DPI awareness.
  • -securemode β€” enables secure mode, which is meant to prevent a DOS program potentially gaining access to files outside directories mounted in the [autoexec] section of the config file. it does this by running Z:\SYSTEM\CONFIG.COM -securemode after completing the [autoexec] section (which in turn disables any changes to how the drives are mounted "inside" dosbox-x). it also disables various other CONFIG.COM options that could be exploited. safety first, bestie πŸ”’
  • -prerun β€” if FILE is given, runs it before the AUTOEXEC.BAT config section.
  • -hostrun β€” enables the START command, the CLIP$ device, and long filename (LFN) support.
  • -noconfig β€” skips the [config] section of the loaded configuration file. this is equivalent to skipping CONFIG.SYS in DOS.
  • -noautoexec β€” skips the [autoexec] section of the loaded configuration file. this is equivalent to skipping AUTOEXEC.BAT in DOS.
  • -exit β€” dosbox-x will close itself when the DOS program specified by FILE ends. she leaves when the party's over πŸ’€
  • -silent β€” runs DOSBox-X silently and exits after executing the [autoexec] section of the loaded config file. ninja mode πŸ₯·
  • -o option(s) β€” provides command-line option(s) for [FILE] if specified.
  • -c command β€” runs the specified command before running [FILE]. multiple commands can be specified, but each command should start with -c though. a command can be an Internal Program, a DOS command, or an executable on a mounted drive. if the command requires parameters, enclose the command and its parameters in quotes. stack 'em up πŸ₯ž
  • -set section property=value β€” sets the config option (and overrides any config file). if the property contains spaces, make sure to enclose the string in quotes. the section is the name of a dosbox-x config section such as [video] without the brackets. multiple -set commands may be specified. and if a property is unique, the section can be omitted β€” like, -set sdl output=ttf is equivalent to -set output=ttf. so efficient. so her πŸ’…
  • -time-limit seconds β€” kills the emulator after seconds. dramatic but punctual ⏰
  • -fastlaunch β€” fast launch mode. it skips the BIOS logo and the welcome banner. no small talk, straight to business.
  • -helpdebug β€” shows debug-related options and exits. for the tech girlies 🧚

✨ INTERNAL INTERPRETER COMMANDS ✨

okay so dosbox-x supports most of the internal DOS commands you'd find in COMMAND.COM. help text is integrated for these commands in DOSBox-X, and it will not be duplicated here. an explanation of these commands can also be found on the DOSBox-X wiki, on the Supported Commands page.

here's the whole roster, alphabetically iconic:

ALIAS, ATTRIB, BREAK, CALL, CD/CDDIR, CHCP, CHOICE, CLS, COPY, COUNTRY, CTTY, DATE, DEL/ERASE, DELTREE, ECHO, EXIT, DIR, FOR, GOTO, HELP, IF, LFNFOR, LH/LOADHIGH, MD/MKDIR, MORE, PATH, PAUSE, PROMPT, RD/RMDIR, REM, REN/RENAME, SET, SHIFT, SUBST, TIME, TRUENAME, TYPE, VER, VERIFY, VOL


✨ OTHER PROVIDED COMMANDS ✨

and there's MORE, because in addition, the following extra commands are available on the emulated Z: drive:

Note β€” some commands (like NE2000) are only present in case the corresponding feature is enabled. so if it's missing, check your features, bestie 🫢
  • Z:\4DOS β€” 4DOS, 4HELP, OPTION, BATCOMP
  • Z:\BIN β€” EVAL, SHUTDOWN, DSXMENU, CWSDPMI, EMSMAGIC, UNZIP, ZIP, MPXPLAY, DOSMID, CDPLAY, DOS4GW, DOS32A, DOSIDLE, UTF16, UTF8, AUTOTYPE, ADDKEY, LS, TITLE, COLOR, SETCOLOR
  • Z:\DOS β€” MEM, EDIT, PRINT, DISKCOPY, DEFRAG, FORMAT, FDISK, SYS, FC, COMP, CHKDSK, BUFFERS, DEVICE, APPEND, XCOPY, SORT, REPLACE, LASTDRIV, FILES, FCBS, FIND, MOVE, DEBUG, EDLIN, CHOICE, DELTREE, TREE, LABEL, LOADFIX, MOUSE, MODE, KEYB
  • Z:\DEBUG β€” HEXMEM32, HEXMEM16, A20GATE, BIOSTEST, INT2FDBG, NMITEST, LOADROM, VESAMOED, VFRCRATE
  • Z:\SYSTEM β€” PARALLEL, SERIAL, MIXER, CAPMOUSE, FLAGSAVE, CFGTOOL, RESCAN, RE-DOS, COUNTRY, CONFIG, BOOT, MOUNT, IMGSWAP, IMGMAKE, IMGMOUNT, INTRO, HELP, NE2000
  • Z:\TEXTUTIL β€” CGA, CLR, EGA, VGA, DCGA, 132X25, 132X43, 132X50, 132X60, 80X25, 80X50, 80X60

and that's where part 1 wraps, because there is so much more coming and we are nowhere near done yet 🌈✨

✨ SPECIAL KEYS ✨

okay bestie, these are the default keyboard combos and they are lowkey iconic πŸ’… some of them only do stuff depending on which emulation you've got running, so read the lil labels, fr fr.

  • CTRL-F7 β€” CGA emulation only β€” flip between early model and late model IBM CGA emulation πŸŽ€
  • CTRL-F8 β€” CGA emulation only β€” cycle between Auto, RGBI and Composite monitor output emulation ✨
  • CTRL-SHIFT-F7 β€” CGA emulation only β€” decrease Hue 🌈
  • CTRL-SHIFT-F8 β€” CGA emulation only β€” increase Hue 🌈
  • CTRL-F7 β€” CGA Mono and Hercules emulation only β€” cycle between Green, Amber, White and Grey πŸ‘‘
  • CTRL-F8 β€” CGA Mono and Hercules emulation only β€” cycle between low and high brightness πŸ’‘
  • F12-F β€” switch between fullscreen and window mode πŸ–₯️
  • F12-R β€” Reset the virtual machine inside DOSBox-X πŸ”„
  • F12-B β€” Reboot the emulated DOS (integrated DOS or guest DOS) inside DOSBox-X πŸ”
  • F12-C β€” Start DOSBox-X's graphical configuration tool βš™οΈ
  • F12-M β€” Start DOSBox-X's mapper editor πŸ—ΊοΈ
  • F12-Esc β€” Show/hide DOSBox-X's drop-down menu bar πŸ“‹
  • F12-Del β€” Send the selected special key combination (Ctrl+Alt+Del by default) to the guest system πŸ’€
  • F12-{+} β€” Increase the sound volume of DOSBox-X's emulated DOS πŸ”Š
  • F12-{-} β€” Decrease the sound volume of DOSBox-X's emulated DOS πŸ”‰
  • F12-] β€” Increase the emulated DOS's current speed relative to real-time ⏩
  • F12-[ β€” Decrease the emulated DOS's current speed relative to real-time βͺ
  • F12-{=} β€” Increase DOSBox-X's emulation CPU cycles πŸ”₯
  • F12-{-} β€” Decrease DOSBox-X's emulation CPU cycles πŸ”₯
  • F12-Up β€” Increase the font size for the TrueType font (TTF) output πŸ”
  • F12-Down β€” Decrease the font size for the TrueType font (TTF) output πŸ”
  • F12-Left β€” Reset the emulated DOS's current CPU speed to the normal speed ⏱️
  • F12-Right β€” Toggle DOSBox-X's speed lock πŸ”’
  • F12-D β€” Swap between mounted CD images πŸ’Ώ
  • F12-O β€” Swap between mounted floppy images πŸ’Ύ
  • F12-P β€” Take a screenshot of the current screen in PNG format πŸ“Έ
  • F12-I β€” Start/Stop capturing an AVI video of the current session πŸŽ₯
  • F12-W β€” Start/Stop recording a WAV audio of the current session πŸŽ™οΈ
  • Alt+Pause β€” Start DOSBox-X's Debugger πŸ›
  • F12-[,] β€” Select the previous save slot to save to or load from ⬅️
  • F12-[.] β€” Select the next save slot to save to or load from ➑️
  • F12-S β€” Save current state to the selected save slot πŸ’Ύ
  • F12-L β€” Load the state from the selected save slot πŸ“‚
  • F12-Pause β€” Pause emulation (press again to continue) ⏸️
  • Ctrl+F5 β€” Copy all text on the DOS screen to the host clipboard πŸ“‹
  • Ctrl+F6 β€” Paste the text in the host clipboard to the DOS screen πŸ“₯
  • Ctrl+F9 β€” Exit DOSBox-X πŸšͺ
  • Ctrl+F10 β€” Capture the mouse for use with the emulated DOS πŸ–±οΈ

These are the default keybindings. They can be changed in the keymapper. ✨

Saved/recorded files can be found in current_directory/capture (can be changed in the configfile). The directory has to exist prior to starting dosbox-x else nothing gets saved or recorded! 😭 no cap, it will just silently not save and you'll be sad.

Note Once you increase your dosbox-x cycles beyond your computer's maximum capacity, it will produce the same effect as slowing down the emulation. This maximum will vary from computer to computer, there is no standard. πŸ’€

🌱 ENVIRONMENT 🌱

Any configuration option can be overridden using an environment variable. Environment variables starting with prefix DOSBOX are processed and interpreted as follows:

DOSBOX_SECTIONNAME_PROPERTYNAME=value

For example, you can override the render aspect this way:

$ DOSBOX_RENDER_ASPECT=false dosbox-x

πŸ› BUGS πŸ›

To report a bug, please visit https://github.com/joncampbell123/dosbox-x/issues 🫢 the maintainers do read them, bestie.


πŸ“š RESOURCES πŸ“š


πŸ‘‘ AUTHOR πŸ‘‘

DOSBox-X is maintained by the DOSBox-X Team πŸ’œ


and that's the whole page, bestie!! πŸŽ€ this was DOSBOX-X(1), dated 2022-04-26 β€” go forth and emulate, you absolute icon πŸŒŸβœ¨πŸ¦‹