delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/22/21:49:16

From: Damon Hogan <damonh AT pgmincorporated DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: clearscreen
Date: Wed, 22 Dec 1999 18:57:10 -0700
Organization: XMission http://www.xmission.com/
Lines: 27
Message-ID: <38618176.D88B669A@pgmincorporated.com>
References: <385FB265 DOT 57DD AT bresnan DOT net>
NNTP-Posting-Host: mail.pgmincorporated.com
Mime-Version: 1.0
X-Trace: news.xmission.com 945914240 19822 166.70.119.101 (23 Dec 1999 01:57:20 GMT)
X-Complaints-To: abuse AT xmission DOT com
NNTP-Posting-Date: 23 Dec 1999 01:57:20 GMT
X-Mailer: Mozilla 4.6 [en] (Win98; I)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

If you want to do it the portable way download PDCURSES22  install the
headers and the libraries and
use initscr();


and endwin();

at the end of your program.

Make sure you


#include<curses.h>
and compile with -lcurso

This will also force you to learn some curses cursor locating and print
commands
but the learning curve is well worth it.


Damon Hogan

Ben McKnight wrote:

> I am running djgpp under win95 and I was wondering if anybody knew of a
> command to clear the screen. e.g. in basic it is CLS

- Raw text -


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