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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,37c1f61bd0b7914 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!postnews.google.com!s37g2000prg.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Converting Type Characters to type string Date: Mon, 31 Mar 2008 13:26:36 -0700 (PDT) Organization: http://groups.google.com Message-ID: <76c5beff-f3e9-44ae-ab96-7da01ea17a65@s37g2000prg.googlegroups.com> References: <8f5967a7-17ab-4eda-80fc-5cb58ae011f5@s50g2000hsb.googlegroups.com> <2d291584-9cb9-4a3f-8626-7b7066e60566@59g2000hsb.googlegroups.com> <5052229e-61c3-401d-93b6-a95edee29e58@m71g2000hse.googlegroups.com> NNTP-Posting-Host: 85.0.247.156 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1206995196 727 127.0.0.1 (31 Mar 2008 20:26:36 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 31 Mar 2008 20:26:36 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s37g2000prg.googlegroups.com; posting-host=85.0.247.156; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20687 Date: 2008-03-31T13:26:36-07:00 List-Id: On 31 Mar, 17:41, Adam Beneschan wrote: > I almost never use single-character input. The only time I would want > to is if, for some reason, you need the program to react immediately > to some key that's typed in (other than Return or Enter). E.g. I've > written programs that will do something interesting if the user > presses the up-arrow or down-arrow keys on the keyboard. How did you do this? Normally, the operating system (the terminal, actually), isolates the process from all such things and feeds the complete line of text to the process' input queue *after* it is committed by Enter. The program has no way to react to individual keystrokes. Unless you talked to the terminal directly - but then it was not Ada.Text_IO. Did I miss something? -- Maciej Sobczak * www.msobczak.com * www.inspirel.com