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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!Xl.tags.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.nethere.com!news.nethere.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 30 Sep 2015 16:13:11 -0500 Newsgroups: comp.lang.ada Subject: Get_Immediate Hangs From: csampson@inetworld.net (Charles H. Sampson) Date: Wed, 30 Sep 2015 14:13:12 -0700 Message-ID: <1mbkf1s.yz7qf4p349raN%csampson@inetworld.net> User-Agent: MacSOUP/2.8.3 (Mac OS X version 10.4.11 (PPC)) X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-pVFLPMKJi3uq2bxOfdgPOzBK2jXCIHHiwvs0s1nZxbp1lP21vQrKZKAe4Pu9Tp5Q5UDIQ+n8s6u49YX!F4YfDSTF0ZJhOilVVjGi/fK5CUch5QnqlK2kE2OTaWY7bcF7vJPVeKD6PcGSucsBCGb/G3hMd+xY!aE86IqyOY2u50OaDGMeZcCCXo2U= X-Complaints-To: abuse@nethere.com X-DMCA-Complaints-To: abuse@nethere.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1864 X-Received-Bytes: 1976 X-Received-Body-CRC: 2605508754 Xref: news.eternal-september.org comp.lang.ada:27881 Date: 2015-09-30T14:13:12-07:00 List-Id: I'm getting a behavior from Get_Immediate that is not what I expect from the manual. I'm using the form Get_Immediate (Item : out Character; Available: out Boolean); It does not return immediately (with Available = False) if no character is available. It does not return immediately (with Available = True) if a character is typed. It only returns (with Available = True) if one or more characters are typed followed by carriage return. In this case all of the typed characters are returned, one after the other, including the carriage return. I'm using an ancient version of Gnat on an ancient Mac's Unix (Darwin). Charlie -- Nobody in this country got rich on his own. You built a factory--good. But you moved your goods on roads we all paid for. You hired workers we all paid to educate. So keep a big hunk of the money from your factory. But take a hunk and pay it forward. Elizabeth Warren (paraphrased)