delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/05/24/01:38:39

From: kunglao AT prairienet DOT org
Subject: Re: ncurses just won't clear the screen?
24 May 1997 01:38:39 -0700 :
Sender: mail AT cygnus DOT com
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199705231134.GAA05152.cygnus.gnu-win32@bluestem.prairienet.org>
References: <199705192156 DOT QAA29407 AT bluestem DOT prairienet DOT org>
Comments: Authenticated sender is <kunglao AT prairienet DOT org>
Original-To: "eric hilton" <esh124 AT email DOT psu DOT edu>, gnu-win32 AT cygnus DOT com
MIME-Version: 1.0
In-reply-to: <199705220753.DAA25252@r02n05.cac.psu.edu>
X-mailer: Pegasus Mail for Win32 (v2.53/R1)
Original-Sender: owner-gnu-win32 AT cygnus DOT com

> Check your /etc/termcap file to see if you have the updated one. 
> Basic term abilities seem to work now. I got rogue compiled and 
> working just fine. (Although I didn't use ncurses, it comes with a 
> toned down curses implementation)

I copied it straight from /usr/etc.
 
> Try this:
> 
> #include <stdio.h>
> int
> main()
> {
> 	printf("\033[2J");
> }
> 
> Compile and run it, if it clears the screen your term has the 
> properties of a proper terminal.
> 
> BTW my $TERM is ansi. I set it in autoexec.bat. I seem to recall when 
> I used linux term it didnt clear my screen either.

That did work perfectly with TERM=linux.  So perhaps it's just 
ncurses that's not doing the screen clears.  That's where the 
clear.exe came from, and many of the test programs aren't working.

BTW, I found that vt200 does work for screen clears.  But then you 
lose things like color.
---
"Oh, what sad times are these when passing ruffians can say 'Ni!' at will to old
ladies.  There is a pestulance upon this land, nothing is sacred.  Even those
who arrange and design shrubberies are under considerable economic stress of
this period of history."                                   -- Roger the Shrubber
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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