www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/10/26/22:40:54

From: "Ian T. Zimmerman" <itz AT crl DOT com>
Subject: Change video mode?
To: djgpp AT sun DOT soe DOT clarkson DOT edu (DJ Delorie)
Date: Wed, 26 Oct 1994 16:49:42 -0700 (PDT)

This must be a FAQ, I know...

How can you change the screen into a different(_text_) video mode with 
djgpp? Basically, I'd like to switch the screen height to 28 lines 
(assuming I'm on a VGA) and stay there. I'd fit more information on the 
screen that way and the 28-line font is also nicer than the 25-line.

This is done in pdcurses, for example, by calling BIOS interrupt 0x11 
with AL=0x11 and BL=0, then interrupt 0x12 with AL=2 and BL=0x30. But 
pdcurses does this just internally when `restoring' the screen, it 
doesn't provide any means to the outside, it seems. Is my only option 
calling int86() to death?

-- 
Ian T Zimmerman            +-------------------------------------------+
P.O. Box 13445             I    With so many executioners available,   I
Berkeley, California 94712 I suicide is a really foolish thing to do.  I
USA  <itz AT crl DOT com>         +-------------------------------------------+

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019