comp.lang.ada
 help / color / mirror / Atom feed
* Newbie Questions about Get, Get_Line
@ 2000-12-30  7:33 gressett
  2000-12-30 14:13 ` Marin David Condic
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: gressett @ 2000-12-30  7:33 UTC (permalink / 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.





^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2001-01-01 17:46 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-30  7:33 Newbie Questions about Get, Get_Line gressett
2000-12-30 14:13 ` 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

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