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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8d3f28f2a74233d2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-31 00:11:19 PST Path: supernews.google.com!sn-xit-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: gressett@iglobal.net Newsgroups: comp.lang.ada Subject: Re: Newbie Questions about Get, Get_Line Date: Sun, 31 Dec 2000 02:13:27 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <98pt4t477fqavihkgfbjioo7peo9vb7f20@4ax.com> Reply-To: gressett@iglobal.net References: <92l4s4$hjb$1@nnrp1.deja.com> X-Newsreader: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: newsabuse@supernews.com Xref: supernews.google.com comp.lang.ada:3484 Date: 2000-12-31T02:13:27-06:00 List-Id: Ted Dennison wrote: >In article , > gressett@iglobal.net wrote: > >> What I would really find useful is a routine that could take a string >> variable and fill it with terminal input with the following >> properties: >> >> If the user input is shorter that the string variable, it will be >> padded with blanks. > >Ewww. Why would you want that? Its soooo sloppy (not to mention >wasteful). Plus it would significantly complicate dealing with the >string later. It's a fixed-length String variable; I have to pad it with something, and in this case, the fixed-length string is a good match to the requirements of the problem being solved. The real problem here is that the designers of the Ada.Text_IO package quit too soon. There should have been an Ada.Interactive_IO which would deal with more of the problems of screen and Keyboard IO in a standard way.