public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: How to clear the screen in a WindowsNT / Linux - Console (C/C++)
@ 2000-02-10  9:07 Jack A Walker
  2000-02-10  9:21 ` How to clear the screen in a WindowsNT / Linux - Console (C/C ++) Larry Hall (RFK Partners, Inc)
  0 siblings, 1 reply; 3+ messages in thread
From: Jack A Walker @ 2000-02-10  9:07 UTC (permalink / raw)
  To: Netzmeister; +Cc: cygwin

system("clear"); ?

Jack



Please respond to Netzmeister@MartinHenne.de

To:   cygwin@sourceware.cygnus.com
cc:    (bcc: Jack A Walker/BII)
Subject:  How to clear the screen in a WindowsNT / Linux - Console (C/C++)



Does anybody know how to clear the
screen and set up the cursor to the
upper left position?

The Escape-code I used sometimes
in Windows 95/98

   cout << "\x1b[2J";

doesn't work with Linux and
Windows NT. It works just if I set up
the 'ansi.sys' in the config.sys of
Win95/98.


Martin
mailto:webmaster@MartinHenne.de







--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to clear the screen in a WindowsNT / Linux - Console (C/C ++)
  2000-02-10  9:07 How to clear the screen in a WindowsNT / Linux - Console (C/C++) Jack A Walker
@ 2000-02-10  9:21 ` Larry Hall (RFK Partners, Inc)
  0 siblings, 0 replies; 3+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2000-02-10  9:21 UTC (permalink / raw)
  To: Jack A Walker, Netzmeister; +Cc: cygwin@sourceware.cygnus.com

At 12:05 PM 2/10/00 , Jack A Walker wrote:

>system("clear"); ?


Only if you have ncurses (or termcap) installed...


>Jack
>
>
>
>Please respond to Netzmeister@MartinHenne.de
>
>To:   cygwin@sourceware.cygnus.com
>cc:    (bcc: Jack A Walker/BII)
>Subject:  How to clear the screen in a WindowsNT / Linux - Console (C/C++)
>
>
>
>Does anybody know how to clear the
>screen and set up the cursor to the
>upper left position?
>
>The Escape-code I used sometimes
>in Windows 95/98
>
>    cout << "\x1b[2J";
>
>doesn't work with Linux and
>Windows NT. It works just if I set up
>the 'ansi.sys' in the config.sys of
>Win95/98.
>
>
>Martin
> mailto:webmaster@MartinHenne.de
>
>
>
>
>
>
>
>--
>Want to unsubscribe from this list?
>Send a message to cygwin-unsubscribe@sourceware.cygnus.com



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* How to clear the screen in a WindowsNT / Linux - Console (C/C++)
@ 2000-02-10  8:52 Martin Henne
  0 siblings, 0 replies; 3+ messages in thread
From: Martin Henne @ 2000-02-10  8:52 UTC (permalink / raw)
  To: cygwin

Does anybody know how to clear the
screen and set up the cursor to the
upper left position?

The Escape-code I used sometimes
in Windows 95/98 

   cout << "\x1b[2J";

doesn't work with Linux and
Windows NT. It works just if I set up
the 'ansi.sys' in the config.sys of
Win95/98.


Martin
mailto:webmaster@MartinHenne.de




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-02-10  9:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-10  9:07 How to clear the screen in a WindowsNT / Linux - Console (C/C++) Jack A Walker
2000-02-10  9:21 ` How to clear the screen in a WindowsNT / Linux - Console (C/C ++) Larry Hall (RFK Partners, Inc)
  -- strict thread matches above, loose matches on Subject: below --
2000-02-10  8:52 How to clear the screen in a WindowsNT / Linux - Console (C/C++) Martin Henne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).