delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/29/19:33:53

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Blink vs 16 background colors.
Date: Thu, 29 May 1997 19:06:36 +0100
Organization: None
Distribution: world
Message-ID: <GJ1S2CAsWcjzEwtf@talula.demon.co.uk>
References: <5mk5os$ecv AT lion DOT cs DOT latrobe DOT edu DOT au>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 17
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Gregary J Boyles writes:
>How do you change the way in which the 7 bit of the text attribute byte is
>interpreted i.e. change between having a blink attribute and having 16
>(instead of 8) background colors.

Call int 0x10 with %ax=1003. Put a zero in %bx to enable 16 color mode,
and one to select blink mode. Eg:

   __dpmi_regs reg;
   reg.x.ax = 0x1003;
   reg.x.bx = 0;
   __dpmi_int(0x10, &reg);


--
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