Help for this page

Select Code to Download


  1. or download this
      my $term = new Term::ReadLine;
      print $term->ReadLine;
    
  2. or download this
      $attribs = $term->Attribs;
      $attribs->{redisplay_function} = $attribs->{shadow_redisplay};
      $password = $term->readline("Password: ");
      $term->remove_history($term->where_history);
    
  3. or download this
      starky@freak bin $ ./readline-password-test.pl 
      Term::ReadLine uses [Term::ReadLine::Perl]
    ...
      Password:  passwd
      The username is [uname] and the password is [passwd]
      starky@freak bin $