X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Giorgio Medeot" Newsgroups: comp.os.msdos.djgpp Subject: strange bright/blink behavior Lines: 38 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Fri, 26 Sep 2003 12:39:02 GMT NNTP-Posting-Host: 151.25.146.205 X-Complaints-To: abuse AT libero DOT it X-Trace: twister1.libero.it 1064579942 151.25.146.205 (Fri, 26 Sep 2003 14:39:02 MET DST) NNTP-Posting-Date: Fri, 26 Sep 2003 14:39:02 MET DST Organization: [Infostrada] To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi all. I hope someone can help me with this code: /***** foo.c *****/ #include #include int main() { unsigned char oldScreen; oldScreen = ScreenAttrib; ScreenAttrib |= 0x80; /* sets blink bit */ putch('a'); ScreenAttrib = oldScreen; return 0; } /*****************/ I compile with: gcc foo.c -o foo.exe My DJGPP installation includes gcc 1.3.1 and djdev203 June 2002 refresh. OS is Windows 98 SE. When I launch foo.exe, if the DOS prompt is located at the bottom of the screen, so that executing foo.exe causes the screen to scroll, all new lines that are printed also look as they had the blink bit set. Typing 'cls' at the prompt restores the screen. I tried normvideo(), with no results. I tried both executing foo.exe in plain DOS or in a Windows DOS box and I saw the same behavior. What may be happening? Regards, Jo.