delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/07/07:51:59

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: text video modes
Date: Sat, 2 Aug 1997 12:53:29 +0100
Organization: None
Distribution: world
Message-ID: <u07IZBA5+x4zEwjC@talula.demon.co.uk>
References: <19970802050801 DOT BAA26361 AT ladder01 DOT news DOT aol DOT com>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 28
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Bminier writes:
>union REGS r;
>
>r.h.ah = 0x00;
>r.h.al = 2; /*which is normal 80x25*/
>
>int86 (0x10, &r, &r);

It is better to use the __dpmi_int() function for this, with a
__dpmi_regs structure instead of the REGS. When you call int86(), a
protected mode interrupt is generated, which may or may not be reflected
to the real mode DOS handler (it depends on the DPMI server). If you use
__dpmi_int() it will always go straight to the correct real mode service
routine...

>What I am having problems with is that I can't seem to find the modes I
>want.  I am looking for 80x28, 80x43, 80x50. and would love to find
>132x25, 132x28 and so on.

For the 80x* modes, use the _set_screen_lines() function (type "info
libc al _set_screen_lines" for details). The 132x* modes can be set
using VESA functions (see http://www.scitechsoft.com/ for a copy of the
VESA spec), but I don't know if there are any other easier ways...


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.

- Raw text -


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