comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <jrcarter@acm.org>
Subject: Re: Escape codes
Date: Sat, 15 Mar 2003 02:15:17 GMT
Date: 2003-03-15T02:15:17+00:00	[thread overview]
Message-ID: <3E728D17.7030906@acm.org> (raw)
In-Reply-To: cisca.343$6f1.31576@stones.force9.net

J.Matthews wrote:
 > Can anyone explain why this doesn't work. I am fairly new to ADA and
 > would appreciate the help!
 >
 > with ada.text_io; use ada.text_io;
 >
 > procedure ClearScreen is
 >
 > begin
 >
 >   Put (Item => ASCII.ESC);
 >   Put (Item => "[2J");
 >
 > end ClearScreen;
 >
 > It's meant to clear the screen but all it does is display a small
 > left arrow then [2J

This has nothing to do with Ada. Your display does not recognize ANSI 
escape sequences.

Note that you can write this as

Put (Ascii.Esc & "[2J");

-- 
Jeff Carter
"That was the most fun I've ever had without laughing."
Annie Hall




  parent reply	other threads:[~2003-03-15  2:15 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-14 21:56 Escape codes J.Matthews
2003-03-14 23:01 ` tmoran
2003-03-15  2:15 ` Jeffrey Carter [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-03-05 12:20 Escape Codes Martin Krischik
2007-03-05 12:53 ` Georg Bauhaus
2007-03-05 13:16   ` Thomas Dickey
2007-03-05 13:12 ` brian.b.mcguinness
2007-03-05 13:22   ` Thomas Dickey
2007-03-05 14:03   ` Martin Krischik
2007-03-05 14:50     ` Markus E Leypold
2007-03-06  7:47       ` Martin Krischik
2007-03-05 14:58     ` Thomas Dickey
2007-03-05 13:24 ` Markus E Leypold
2007-03-05 15:47 ` Ali Bendriss
2007-03-05 16:47 ` Adam Beneschan
2007-03-05 21:32   ` Thomas Dickey
2007-03-05 18:51 ` Jeffrey R. Carter
2007-03-06  3:16   ` Brian May
2007-03-06 12:00     ` Thomas Dickey
replies disabled

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