delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/06/13:41:37

Date: Wed, 06 Dec 2000 20:39:43 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: Anders Hasselqvist <hassel AT acc DOT umu DOT se>
Message-Id: <7263-Wed06Dec2000203942+0200-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6
CC: djgpp AT delorie DOT com
In-reply-to: <3A2E1DCF.F3E0F7EC@acc.umu.se> (message from Anders Hasselqvist
on Wed, 06 Dec 2000 12:06:55 +0100)
Subject: Re: conio.h in C++
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1001206093751 DOT 10098B-100000 AT is> <3A2E1DCF DOT F3E0F7EC AT acc DOT umu DOT se>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: Anders Hasselqvist <hassel AT acc DOT umu DOT se>
> Newsgroups: comp.os.msdos.djgpp
> Date: Wed, 06 Dec 2000 12:06:55 +0100
> > 
> > > To make the text output look better I want to use clrscr(); from
> > > conio.h. It doesn't work! I include conio.h but still
> > > clrscr() is reported as undeclared. Why?
> > 
> > Post here the minimal program which exhibits the problem, and someone
> > will figure it out.
> 
> I have kind of figured the problem out..
> I made a small test program:
> -----------
> #include <iostream>
> #include <conio.h>
> 
> int main(void) {
> 
>   cout << "Press Return" << endl;
>   cin.get();
>   clrscr();
>   cout << "Screen cleared" << endl;
> 
>   return 0;
> }
> -----------
> 
> When I compiled from Rhide (as I always do) the problem occured.
> Compiling it myself works. I guess rhide somehow
> doesn't link with the correct libraries (libc also).

I don't think that's the reason.  Perhaps RHIDE plays with the user
screen in a way that makes clrscr's effect not visible?

- Raw text -


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