A simple DOS utility to switch between common text and graphics video modes. Written in Turbo C, with the help of Blackbox AI and Chat GPT, using BIOS interrupts (INT 10h).
- Text mode and graphics mode selection
- Categorized modes
- Clean text-based UI with menu switching
- Key controls:
T,G,Q - Written in C for real DOS / DOSBox systems
Dos ver 7.1 in DOSBox-X version 2023.05.01 (Will test on real machine later). Complied on Borland Turbo C (Dos)
Graphics Mode Page
Text Mode Page
Mode 0x00 (First Text Mode 40x25, 16 Colors) Applied
Mode 0x04 (First Graphics Mode 320x200, 4 Colors) Applied
| Key | Action |
|---|---|
| 1–9 | Select corresponding mode |
| T | Show Text Modes menu |
| G | Show Graphics Modes menu |
| Q | Quit the program |
- Mode 0x04: 320x200, 4 colors (CGA)
- Mode 0x06: 640x200, 2 colors (CGA)
- Mode 0x10: 640x350, 16 colors (EGA)
- Mode 0x13: 320x200, 256 colors (VGA)
- Mode 0x12: 640x480, 16 colors (VGA)
- Mode 0x102: 800x600, 16 colors (SVGA)
- Mode 0x105: 1024x768, 16 colors (SVGA)
- Mode 0x107: 1280x1024, 16 colors (SVGA)
- Mode 0x00: 40x25, 16 colors
- Mode 0x01: 40x25, alt 16 colors
- Mode 0x02: 80x25, 16 colors
- Mode 0x03: 80x25, 16 colors (default)
- Mode 0x07: 80x25, monochrome (MDA)
- Mode 0x0F: 80x25, mono VGA (720x400)
- Open Turbo C IDE
- Load the
.cppsource file - Go to
Compile → Compile(Alt + F9) - Then
Compile → Link → Run(Ctrl + F9)
The Modes: 0x102: 800x600 16 colors (SVGA), 0x105: 1024x768 16 colors (SVGA), 0x107: 1280x1024 16 colors (SVGA), It does not apply when I test it in DOSBox; you have to test it on your actual hardware.
Also, I don't know why the background of some modes changes to white; I guess it's DOSBox's problem.
Perhaps some bugs are also present, so it's not perfect yet.
This project is open source and available under the MIT License.



