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,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-29 23:29:11 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: Newbie Questions about Get, Get_Line Date: Sat, 30 Dec 2000 01:33:47 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: Reply-To: gressett@iglobal.net 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:3462 Date: 2000-12-30T01:33:47-06:00 List-Id: I am getting back into Ada again after several months of doing other things. This time I am working on a program that does interactive terminal IO, and I am finding that the Ada.Text_IO routines I am working with have some unexpected behavior. (Get, Get_Line, Get_Immediate) (The compiler is gnat 3.13p on Linux) 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. If the user input is longer than the string variable, the extra characters should be thrown away, never to be seen again.