comp.lang.ada
 help / color / mirror / Atom feed
From: gressett@iglobal.net
Subject: Newbie Questions about Get, Get_Line
Date: Sat, 30 Dec 2000 01:33:47 -0600
Date: 2000-12-30T01:33:47-06:00	[thread overview]
Message-ID: <k73r4toon9d6e0oi384t6240d32d7leohc@4ax.com> (raw)

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.





             reply	other threads:[~2000-12-30  7:33 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-30  7:33 gressett [this message]
2000-12-30 14:13 ` Newbie Questions about Get, Get_Line Marin David Condic
2000-12-30 17:17   ` Ted Dennison
2000-12-30 17:25     ` Ted Dennison
2000-12-30 22:46     ` Marin David Condic
2000-12-30 23:12       ` Ted Dennison
2000-12-30 14:31 ` Jeff Creem
2000-12-30 17:09 ` Ted Dennison
2000-12-31  8:13   ` gressett
2000-12-31 15:50     ` Larry Kilgallen
2000-12-31 17:03     ` Robert Dewar
2000-12-31 17:47     ` Ted Dennison
2000-12-31 21:07     ` tmoran
2001-01-01  6:12       ` gressett
2001-01-01 17:45         ` Robert Dewar
2001-01-01 17:46         ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox