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,27b15b5517523426,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-12-16 01:58:32 PST Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!rutgers!sgigate.sgi.com!sgiblab!spool.mu.edu!howland.reston.ans.net!news.sprintlink.net!hookup!olivea!uunet!zib-berlin.de!news.th-darmstadt.de!terra.wiwi.uni-frankfurt.de!zeus.rbi.informatik.uni-frankfurt.de!news.dfn.de!gina.zfn.uni-bremen.de!marvin.pc-labor.uni-bremen.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!news.uni-ulm.de!cellar!s_rodema From: s_rodema@cellar.rz.uni-ulm.de (Joerg Rodemann) Newsgroups: comp.lang.ada Subject: Question about IO on Unix-machines Date: 16 Dec 1994 09:58:32 GMT Organization: University of Ulm, Germany Message-ID: <3croc8$t71@wega.rz.uni-ulm.de> NNTP-Posting-Host: cellar.rz.uni-ulm.de X-Newsreader: TIN [version 1.2 PL2] Date: 1994-12-16T09:58:32+00:00 List-Id: Hello out there! I am looking for a special type of IO-routines. My problem is the following: As I am used to write many programmes that just read from stdin and write to stdout in other languages liek C or Modula-2 I want to keep that style. I seems very useful to me on Unix machines. But as I tried to develop a simple program in Ada that reads a single character from stdin, does something with this item and then writes the result to stdout, it seems that the standard PUT-routine from Text_IO works with whole lines. Especially it seems to ignore the character \n --- newline. I think there has to be an easy way that fits my needs for there was an argument some time before about that very kind of programming style under Unix as I mentioned. So, do not be mad at me if this seems to be a silly question. But I am new to this language and we do not have many handbooks here at Ulm. I would like to add that I am using GNAT 1.83 on a Sun4 system. Perhaps it is one of the procedures that have not been implemented yet as Get_Immediate. But this is just a guess. And I would not like to bother the New York group until it is really a problem of GNAT. So thank in advance for your help Bye George -- Joerg 'George' Rodemann Kelternweg 46 Department of Physics 89075 Ulm/Donau University of Ulm Tel. (0731) 54407 e-mail: rodemann@mathematik.uni-ulm.de