From cfc649276d9a07014989a57c70dd663afbd245e3 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Sun, 23 Sep 2007 15:29:24 +0000 Subject: * small cleanup git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1344 95ad53e4-c205-0410-b2fa-d234c58c8868 --- lib/OpenSLX/Utils.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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; -- cgit v1.2.3-55-g7522