delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/05/22/15:23:28

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

> From:          kunglao AT prairienet DOT org
> I've just rebuilt termcap & ncurses, that went fine.  But now I'm 
> trying to run some of the test programs that ncurses has.  And it 
> appears that it just cannot erase the screen.  The curses is set to 
> the top of the window, but all the text is still there.  I've tried a 
> few different things for my TERM env variable, linux, ansi, pc-ansi, 
> vt100,  etc.  They all behaved the same.

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)

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.


-e
-
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