comp.lang.ada
 help / color / mirror / Atom feed
From: kst@alsys.com (Keith Thompson)
Subject: Re: GNAT not 'getting' CR or LF?
Date: Tue, 3 Jan 1995 02:56:21 GMT
Date: 1995-01-03T02:56:21+00:00	[thread overview]
Message-ID: <D1t6tx.G59@alsys.com> (raw)
In-Reply-To: 3e8079$552@gnat.cs.nyu.edu

In <3e8079$552@gnat.cs.nyu.edu> dewar@cs.nyu.edu (Robert Dewar) writes:
> Get will certainly NOT see CR/LF etc, that is its spec.
> For now, until Get_Immediate is implemented, the best thing
> is simply to write an interface to the appropriate C routine getchar or
> whatever.

This might be true for an interactive application that needs to detect
individual keypresses (or better yet, use the POSIX/Ada interface if
your vendor supports it).

For the application in question (a Fortran scanner), I think the best
thing is just to use Text_IO.Get_Line and scan characters from the
input string.  Ada's Text_IO is perfectly adequate for this kind of thing.

-- 
Keith Thompson (The_Other_Keith)  kst@alsys.com
TeleSoft^H^H^H^H^H^H^H^H Alsys, Inc.
10251 Vista Sorrento Parkway, Suite 300, San Diego, CA, USA, 92121-2718
When you're a nail, every problem looks like a hammer.



  reply	other threads:[~1995-01-03  2:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-12-29 23:05 GNAT not 'getting' CR or LF? Smilin' Ron Finkbine
1994-12-30 15:23 ` Kevin Weise
1994-12-30 17:39 ` Michael Feldman
1995-01-02  4:42 ` Robert Dewar
1995-01-03  2:56   ` Keith Thompson [this message]
1995-01-05  0:16     ` Kurt Bischoff
1995-01-06  3:21       ` Keith Thompson
1995-01-04 11:47 ` Joerg Rodemann
replies disabled

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