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,83bba5a3d5bcdf1a X-Google-Attributes: gid103376,public From: tore@lis.pitt.edu (Tore Joergensen) Subject: Re: Text IO Date: 1995/04/22 Message-ID: <3nbc2c$ke7@toads.pgh.pa.us>#1/1 X-Deja-AN: 101370064 references: <3nb74l$4m3@newsflash.concordia.ca> organization: University of Pittsburgh newsgroups: comp.lang.ada Date: 1995-04-22T00:00:00+00:00 List-Id: Chris O'Regan (ct_oreg@vega.concordia.ca) wrote: : I have two questions: If you use Ada83 I don't think you can do it. If you use Ada95 you just: : 1) When writing to a file, how can I force the output to be : written immediately so that I may monitor the program's : progress using ``tail -f'' on the file? ada.text_io.flush(file); : 2) Is it possible to get a single key? If I use Text_IO's : ``Get'' function the user is required to press the enter : key after typing the appropriate key. This is somewhat : inconvenient. ada.text_io.get_immediate(char_var); -- ______________________________________________________________________ Tore B. Joergensen, | e-mail: tore@lis.pitt.edu a norwegian student | snail-mail: 2201 Pittockstr. a long way from home. | Pittsburgh, 15217 PA | web: http://www.pitt.edu/~tojst1