www.delorie.com/djgpp/bugs/show.cgi   search  
Bug 000216

When Created: 04/17/1998 06:38:29
Against DJGPP version: 2.01
By whom: awong@primenet.com
Abstract: The lowvideo() function changes text and background colors too.
The lowvideo()function not only sets the low video but it also
changes the text and background colors to white and black respectively.
It should not do this. The example program below demonstrates the problem.

BTW, I think I am using DJGPP 2.80 if I am not mistaken.

I wish to say I have been using this compiler for about 2 weeks with
RHIDE and am very impressed with it otherwise.

-----------------------------------------------------------------------

#include <stdio.h>
#include <conio.h>

int main()
{
   textcolor( WHITE ) ;
   textbackground( BLUE ) ;
   cputs( "This is WHITE text on a BLUE background

" ) ;
   lowvideo() ;
   cputs( "This is after lowvideo()

" ) ;

   textcolor( WHITE ) ;
   textbackground( BLUE ) ;
   cputs( "This is WHITE text on a BLUE background again

" ) ;

   textattr( ((BLUE * 16) + WHITE) & 0xF7 ) ;
   cputs( "This is after textattr(). What lowvideo() should be doing

" ) ;
}

Solution added: 04/12/1999 10:00:21
By whom: eliz@is.elta.co.il
This bug is fixed in WIP version, and will be in v2.03.

Fixed in version on 04/22/1999 09:00:07
By whom: eliz@is.elta.co.il



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