delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/02/00:06:39

From: "aa004" <a AT b DOT c>
Newsgroups: comp.os.msdos.djgpp
Subject: ATTN: RHIDE dual monitor users...KLUDGE to fix blinking windows...
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Message-ID: <dm%V5.3547$tj4.10333@tor-nn1.netcom.ca>
Date: Fri, 1 Dec 2000 21:03:27 -0800
NNTP-Posting-Host: 216.129.67.168
X-Complaints-To: abuse AT attcanada DOT ca
X-Trace: tor-nn1.netcom.ca 975733257 216.129.67.168 (Sat, 02 Dec 2000 00:00:57 EDT)
NNTP-Posting-Date: Sat, 02 Dec 2000 00:00:57 EDT
Organization: AT&T Canada IES
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi again all,

Although I'm personally love the programming-stress-busting-comedy-relief of
the blinking watch and stack windows when dual monitor debugging using RHIDE
here is a kludge to suppress the blinking until the bug is fixed in RHIDE:

outportb(0x3b8,0x08);  //include pc.h too

0x3b8 is the MDA/Hercules configuration register.  Bit 5 controls whether
the graphics controller ignores the blinking bit in all text attribute bytes
or not.  If 1 blinking is enabled, if 0 blinking is disabled.  (0x08 set the
rest of the bits for proper text mode operation).

Just put this line at/near the beginning of your program for the duration of
your development.  It'll stay in effect until some other program reprograms
the MDA/Herc configuration register, such as MODE MONO or probably RHIDE
during its mono controller init code - or you set bit 5 yourself.

Mel McBain



- Raw text -


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