Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

How to detect the text mode? (Developers)

posted by Japheth Homepage, Germany (South), 14.11.2020, 16:01

> So the question is, how to easily distinguish between text mode and graphic
> mode.

If the graphics card is VGA compatible, there are at least 2 options:

1. graphics controller, port 3CEh, index 6: if bit 0=1, graphics mode active
2. attribute controller, port 3C0h, index 10h: if bit 0=1, graphics mode.

---
MS-DOS forever!

 

Complete thread:

Back to the forum
Board view  Mix view
22752 Postings in 2119 Threads, 402 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum