comp.lang.ada
 help / color / mirror / Atom feed
From: whiting_ms@corning.com (whiting_ms@corning.com (Matt Whiting))
Subject: Re: how to put cursor at X,Y
Date: 1996/10/30
Date: 1996-10-30T00:00:00+00:00	[thread overview]
Message-ID: <1996Oct30.074712.1@corning.com> (raw)
In-Reply-To: 556euh$opl@felix.seas.gwu.edu


In article <556euh$opl@felix.seas.gwu.edu>, mfeldman@seas.gwu.edu (Michael Feldman) writes:
>
>	. 
>	. 
>	. 
>
>   PROCEDURE MoveCursor (To: IN Position) IS
>   BEGIN                                                
>     Ada.Text_IO.Flush;
>     Ada.Text_IO.Put (Item => ASCII.ESC);
>     Ada.Text_IO.Put ("[");
>     Ada.Integer_Text_IO.Put (Item => To.Row, Width => 1);
>     Ada.Text_IO.Put (Item => ';');
>     Ada.Integer_Text_IO.Put (Item => To.Column, Width => 1);
>     Ada.Text_IO.Put (Item => 'f');
>   END MoveCursor;  
> 
> END Screen;
-- 

This is off the subject, but how do typical Ada compilers (or GNAT if
specificity is required) handle the above list of I/O statements?  I'm
thinking back to my FORTRAN days when I would typically use a single FORTRAN
WRITE/FORMAT statement combination to print out entire escape sequences with
"one" command.  Does the Ada compiler aggregate the above statements into one
buffer for issuance to the serial port or the ANSI driver?  Or does it
literally send seven separate I/O commands?  And what, if any, execution
efficiency is lost if the latter is true?

Matt




  reply	other threads:[~1996-10-30  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-10-25  0:00 how to put cursor at X,Y GANAYE Pascal
1996-10-25  0:00 ` Larry Kilgallen
1996-10-29  0:00 ` Michael Feldman
1996-10-30  0:00   ` whiting_ms@corning.com (Matt Whiting) [this message]
1996-10-31  0:00     ` Ron Thompson
1996-11-01  0:00     ` Michael Feldman
replies disabled

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