diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/OpenSLX/Utils.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/OpenSLX/Utils.pm b/lib/OpenSLX/Utils.pm index 57ca8040..fbfd8d4c 100644 --- a/lib/OpenSLX/Utils.pm +++ b/lib/OpenSLX/Utils.pm @@ -41,6 +41,7 @@ $VERSION = 1.01; use File::Basename; use Socket; use Sys::Hostname; +use Term::ReadLine; use OpenSLX::Basics; @@ -281,12 +282,11 @@ sub readPassword { my $prompt = shift; - use Term::ReadLine; my $term = Term::ReadLine->new('slx'); my $attribs = $term->Attribs; $attribs->{redisplay_function} = $attribs->{shadow_redisplay}; + return $term->readline($prompt); - } 1; |