From: Larry Coon <larry@assist.org>
Subject: Re: Interrupt Calls
Date: 1997/11/21
Date: 1997-11-21T00:00:00+00:00 [thread overview]
Message-ID: <3475CE2D.5424@assist.org> (raw)
In-Reply-To: 3474f235.0@silver.truman.edu
Chad R. Meiners wrote:
> Okay, I now understand how to interface win32 through NT thanks to Jerry. The
> reason I wanted the package so I could change the cursor.
BTW, if you're doing it in a DOS window (as I think I
remember reading) and you have ansi.sys loaded, this works
for cursor positioning:
package screen is
procedure clear_screen;
procedure move_cursor (row, col: natural);
end screen;
with ada.text_io; use ada.text_io;
package body screen is
procedure clear_screen is
begin
put (character'val (27));
put ("[2J");
end clear_screen;
procedure move_cursor (row, col: natural) is
package nat_io is new integer_io (natural);
use nat_io;
begin
put (character'val (27));
put ("[");
put (row, width => 1);
put (';');
put (col, width => 1);
put ('f');
end move_cursor;
end screen;
Larry Coon
University of California
larry@assist.org
and lmcoon@home.com
next prev parent reply other threads:[~1997-11-21 0:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-11-08 0:00 Interrupt Calls Chad R. Meiners
1997-11-10 0:00 ` Laura & Mike Palmer
1997-11-11 0:00 ` Jerry van Dijk
1997-11-12 0:00 ` Jerry van Dijk
[not found] ` <01bcf06a$ba1d1900$933e63c3@default>
1997-11-21 0:00 ` Chad R. Meiners
1997-11-21 0:00 ` Larry Coon [this message]
1997-11-22 0:00 ` Jerry van Dijk
1997-11-10 0:00 ` Jerry van Dijk
1997-11-11 0:00 ` Chad R. Meiners
1997-11-12 0:00 ` Jerry van Dijk
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox