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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8d5bda3619cce0f8 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!feeder.erje.net!news2.arglkargh.de!nuzba.szn.dk!news.jacob-sparre.dk!news.szn.dk!pnx.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Date: Tue, 17 Feb 2009 23:07:37 +0100 From: Thomas Locke User-Agent: Thunderbird 2.0.0.19 (X11/20081209) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: C getchar() functionality in Ada References: <4999ce31$0$90266$14726298@news.sunsite.dk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <499b3529$0$90271$14726298@news.sunsite.dk> Organization: SunSITE.dk - Supporting Open source NNTP-Posting-Host: 83.91.213.86 X-Trace: news.sunsite.dk DXC=7DQPlE75eLOh6dZj2aj97OYSB=nbEKnkKebg1>^?UCAJ]KcSoP8OK@H@kCUDmHHZ?E:WTk`c[X5;OBJ[6GKGT2_l\@ X-Complaints-To: staff@sunsite.dk Xref: g2news2.google.com comp.lang.ada:4656 Date: 2009-02-17T23:07:37+01:00 List-Id: m.collado@domain.invalid wrote: > The following seems to work: > > with Ada.Text_IO; use Ada.Text_IO; > > procedure Ito is > C : Character; > begin > while not End_Of_File loop > Get_Immediate (Item => C); > Put (Item => C); > end loop; > end Ito ; It works when piping data to the program, but it does not work with input from the keyboard. Data isn't copied when you just start the program, type in some characters and press enter. You just get a new blank line. :o) /Thomas