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.


If anyone needs me I'll be in the Angry Dome.

Replies are listed 'Best First'.
Re: Re: PROMPT wih default
by Doraemon (Beadle) on Jun 02, 2004 at 02:26 UTC
    Ok, it works. thanx
Re: Re: PROMPT wih default
by Doraemon (Beadle) on Jun 02, 2004 at 02:52 UTC
    But how can i customize the output? e.g disable the 'underline'/'bold' mode?