From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bd9ba71376053a01 X-Google-Attributes: gid103376,public From: whiting_ms@corning.com (whiting_ms@corning.com (Matt Whiting)) Subject: Re: how to put cursor at X,Y Date: 1996/10/30 Message-ID: <1996Oct30.074712.1@corning.com>#1/1 X-Deja-AN: 193183511 references: <3270BBC4.5480@univ-orleans.fr> <556euh$opl@felix.seas.gwu.edu> organization: Corning, Incorporated newsgroups: comp.lang.ada nntp-posting-user: whiting_ms Date: 1996-10-30T00:00:00+00:00 List-Id: 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