in reply to PROMPT wih default
Well, if you have Term::Readline, you can
use Term::ReadLine; $term = new Term::ReadLine 'ProgramName'; $_ = $term->readline('prompt>','<please enter your name here>');
I recommend Term::Readline::Zoid or Term::Readline::Gnu as good back-end implementations. As for the bold-facing, well, choose your preput string very carefully ... and be certain your terminal can display bold text.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: PROMPT wih default
by Doraemon (Beadle) on Jun 02, 2004 at 02:26 UTC | |
|
Re: Re: PROMPT wih default
by Doraemon (Beadle) on Jun 02, 2004 at 02:52 UTC |