From: rawlins2@marshall.edu (bill)
Subject: Re: Clear Screen
Date: 1997/02/28
Date: 1997-02-28T00:00:00+00:00 [thread overview]
Message-ID: <5f5q6h$crc@mtinsc04.worldnet.att.net> (raw)
In-Reply-To: 5escr8$rf@fg70.rz.uni-karlsruhe.de
well just my $.02 on this subject is..i made a screen package which would
handle the clearing of the screen and moving my cursor around to whereever on
the screen i wanted it. the package will also provide a beep(on some systems
:O)..just not my home pc..but on a VAX vt100 terminal it does..
good luck
the spec code is...
package screen is
height :constant integer :=24;
width :constant integer :=80;
subtype d is integer range 1..height;
subtype w is integer range 1..width;
procedure beep;
procedure clearscreen;
procedure gotoyx (y: d; x:w);
end screen;
then the package body is
with text_io;
use text_io;
with ada.integer_text_io;
use ada.integer_text_io;
package body screen is
procedure beep is
begin
put("ascii.bel");
end beep;
procedure clearscreen is
cs :constant string:=(character'val(27) & "[2J");
begin
put_line(cs);
end clearscreen;
procedure gotoyx (y:d;x:w) is
begin
text_io.put(item=>ascii.esc);
text_io.put(item=>'[');
my_int_io.put(y,width=>1);
put(item=>';');
my_int_io.put(x,width=>1);
put(item=>'f');
end gotoyx;
end screen;
Bill Rawlinson
next prev parent reply other threads:[~1997-02-28 0:00 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <330D0C26.6331@videotron.ca>
1997-02-21 0:00 ` Clear Screen Larry Kilgallen
1997-02-22 0:00 ` Albert K. Lee
1997-02-22 0:00 ` Tom Moran
1997-02-23 0:00 ` Tom Moran
1997-02-24 0:00 ` Jean-Etienne Doucet
1997-02-25 0:00 ` Robert Dewar
1997-02-26 0:00 ` Geert Bosch
1997-02-27 0:00 ` Robert Dewar
1997-02-28 0:00 ` Norman H. Cohen
1997-03-03 0:00 ` Keith Thompson
1997-03-03 0:00 ` Robert Dewar
1997-03-05 0:00 ` Keith Thompson
1997-02-27 0:00 ` Robert I. Eachus
1997-03-01 0:00 ` Robert Dewar
1997-02-28 0:00 ` Keith Thompson
1997-03-03 0:00 ` Robert I. Eachus
1997-03-05 0:00 ` Robert Dewar
1997-02-26 0:00 ` Keith Thompson
1997-02-24 0:00 ` Robert Dewar
1997-02-24 0:00 ` Thomas Koenig
1997-02-28 0:00 ` bill [this message]
1997-03-04 0:00 Marin David Condic, 561.796.8997, M/S 731-93
1997-03-06 0:00 ` Robert Dewar
1997-03-06 0:00 ` Larry Kilgallen
1997-03-06 0:00 ` Robert Dewar
1997-03-06 0:00 ` Robert Dewar
-- strict thread matches above, loose matches on Subject: below --
1997-03-23 0:00 Brian Hyatt
1997-03-25 0:00 ` Albert K. Lee
1997-03-25 0:00 ` Michael F Brenner
2000-05-27 0:00 Karlene
2000-05-27 0:00 ` Robert Dewar
2000-05-27 0:00 ` David C. Hoos, Sr.
2000-05-28 0:00 ` MARIE Eric
2000-05-28 0:00 ` Sune Falck
2000-05-28 0:00 ` Tarjei Tj�stheim Jensen
2000-05-29 0:00 ` MARIE Eric
2000-05-29 0:00 ` Pascal Obry
2001-11-06 20:19 Clear screen David Tumpa
2001-11-06 21:25 ` Adrian Knoth
2001-11-07 9:07 ` John McCabe
2001-11-07 16:37 ` Jeffrey Carter
2001-11-07 16:52 ` Darren New
2001-11-07 17:07 ` Preben Randhol
2001-11-07 18:59 ` tmoran
2001-11-07 19:42 ` Larry Kilgallen
2001-11-07 21:31 ` Darren New
2001-11-08 9:30 ` Preben Randhol
2001-11-08 16:40 ` Darren New
2001-11-08 19:36 ` Pascal Obry
2001-11-07 22:04 ` Jeffrey Carter
2001-11-13 15:34 ` John English
2001-11-25 22:05 ` Nick Roberts
2001-11-26 10:58 ` John English
2001-12-05 23:05 ` Daniel Krupke
2001-12-06 1:59 ` Larry Kilgallen
2001-12-06 8:13 ` John English
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox