diff options
author | Oliver Tappe | 2007-09-23 17:29:24 +0200 |
---|---|---|
committer | Oliver Tappe | 2007-09-23 17:29:24 +0200 |
commit | cfc649276d9a07014989a57c70dd663afbd245e3 (patch) | |
tree | 1858ff92d7c2cfc549db00d1cea2570f6d0fbb0c /lib/OpenSLX/Utils.pm | |
parent | * now makes use of readPassword() from Utils.pm (diff) | |
download | core-cfc649276d9a07014989a57c70dd663afbd245e3.tar.gz core-cfc649276d9a07014989a57c70dd663afbd245e3.tar.xz core-cfc649276d9a07014989a57c70dd663afbd245e3.zip |
* small cleanup
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1344 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'lib/OpenSLX/Utils.pm')
-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; |