Re: read/ edit line from stdin

2006-03-10 Thread Clemens Hepper
It's a bit more complicated. The field has a default and a preassigned Value. The default is p.e. 'localhost' and the value is 'www.gentoo.org'. Then localhost is chosen if the value is erased to ''. But i want to make it easy to keep the preassigned value! So if nothing is typed 'www.gentoo.org'

Re: read/ edit line from stdin

2006-03-10 Thread James Stroud
Clemens Hepper wrote: > Hello, > for my project confux (http://confux.sourceforge.net) I want to read > a line from stdin. > But I don't want the user to type a new line. I want so display a > value which the user can edit. > > For example I want to ask the user for a hostname and I print > "local