summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOliver Tappe2007-09-23 17:29:24 +0200
committerOliver Tappe2007-09-23 17:29:24 +0200
commitcfc649276d9a07014989a57c70dd663afbd245e3 (patch)
tree1858ff92d7c2cfc549db00d1cea2570f6d0fbb0c /lib
parent* now makes use of readPassword() from Utils.pm (diff)
downloadcore-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')
-rw-r--r--lib/OpenSLX/Utils.pm4
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;