comp.lang.ada
 help / color / mirror / Atom feed
From: Hung Huynh <d95hung@dtek.chalmers.se>
To: Steve Doiel <steved@pacifier.com>
Subject: Re: How can I clear the screen?
Date: 1996/03/29
Date: 1996-03-29T00:00:00+00:00	[thread overview]
Message-ID: <Pine.SOL.3.92.960329152609.24383A-100000@hanto.dtek.chalmers.se> (raw)
In-Reply-To: 4jfqqv$ekh@news.pacifier.com

> Well, you don't describe your platform or environment, but the following
> works in a text mode window using GNAT on OS/2.  It isn't the most
> elegant set of routines or methods, but they work for me.  I believe they
> rely on the ole ANSI.SYS (or equivalent for OS/2) driver.

Hi! I tried your package in a unix xterm window and it worked fine.
But could you explain how this procedure work? I'm a novice.

------------------------------------------
 PROCEDURE ClearScreen IS

 BEGIN
   Put( CSI & "2J" );
 END ClearScreen;
------------------------------------------

I understand that your CSI is equal to  ESC & "[" , but why does the
output of the string "ESC[2J" cause a screen clear? Does it have something
to do with ANSI?





  reply	other threads:[~1996-03-29  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-03-27  0:00 How can I clear the screen? Jason Powell
1996-03-29  0:00 ` steved
1996-03-29  0:00   ` Hung Huynh [this message]
1996-03-29  0:00     ` Ted Dennison
1996-03-30  0:00   ` Keith Thompson
1996-03-31  0:00     ` Hung Huynh
1996-04-02  0:00       ` Michael A. Packer
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox