delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/29/03:56:19

Date: Wed, 29 May 1996 10:45:50 +0200
Message-Id: <2.2.16.19960529093330.26877ea4@slater.chemie.uni-bremen.de>
Mime-Version: 1.0
To: djgpp AT delorie DOT com
From: Mathias Koch <mkoch AT chemie DOT uni-bremen DOT de>
Subject: gcc 80/50 cprintf

Dear Ladies and Gentlemen,

I have a problem with using cprintf in the lower half of the screen in text
80/50 mode.
When I try to print something colored in this area, the upper lines are scrolled
up, although I didn't reach the bottom of the screen and the printed lines are
distorted.
This short program should reproduce my problem:

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

void main(void)
{
 GrSetMode(GR_width_height_text,80,50);
 gotoxy(1,1);
 textcolor(GREEN);
 cprintf("Line 1");
 gotoxy(1,48);
 textcolor(RED);
 cprintf("This is Line 48!");
 getch();
 GrSetMode(GR_default_text);
}

I hope, you can help me.

Thank you!

Mathias Koch

- Raw text -


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