How to detect the text mode? (Developers)
> > 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.
There is a third that I use:
INT10 function 1Bh . This function is well documented both in RBIL
and in "PC Video Systems".
It returns a 64 byte data structure containing, among other info,
video mode, number of characters/line, number of lines/screen.
Complete thread:
- How to detect the text mode? - Laaca, 14.11.2020, 11:00 (Developers)
- How to detect the text mode? - Japheth, 14.11.2020, 16:01
- How to detect the text mode? - tkchia, 15.11.2020, 08:01
- How to detect the text mode? - jassenna, 30.12.2020, 17:56
- How to detect the text mode? - tkchia, 31.12.2020, 08:16
- How to detect the text mode? - jassenna, 01.02.2021, 00:02
- How to detect the text mode? - tkchia, 01.02.2021, 14:26
- How to detect the text mode? - rr, 01.02.2021, 17:56
- How to detect the text mode? - tkchia, 01.02.2021, 14:26
- How to detect the text mode? - jassenna, 01.02.2021, 00:02
- How to detect the text mode? - tkchia, 31.12.2020, 08:16
- How to detect the text mode? - DosWorld, 15.11.2020, 15:12
- How to detect the text mode? - Japheth, 15.11.2020, 17:13
- How to detect the text mode? - DosWorld, 15.11.2020, 18:49
- How to detect the text mode? - Japheth, 15.11.2020, 17:13
- How to detect the text mode? - bretjohn, 31.12.2020, 17:52
- How to detect the text mode? - Japheth, 14.11.2020, 16:01