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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8bb703cc61967d22 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-01-02 20:17:03 PST Newsgroups: comp.lang.ada Path: nntp.gmd.de!newsserver.jvnc.net!news.cac.psu.edu!news.pop.psu.edu!psuvax1!uwm.edu!spool.mu.edu!bloom-beacon.mit.edu!news.starnet.net!wupost!decwrl!decwrl!netcomsv!netcomsv!telesoft!kst From: kst@alsys.com (Keith Thompson) Subject: Re: GNAT not 'getting' CR or LF? Message-ID: Originator: kst@pulsar Sender: news@alsys.com (USENET News Admin @flash) Organization: Alsys, San Diego, CA, USA References: <1994Dec29.230538.15695@nmt.edu> <3e8079$552@gnat.cs.nyu.edu> Distribution: na Date: Tue, 3 Jan 1995 02:56:21 GMT Date: 1995-01-03T02:56:21+00:00 List-Id: 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.