use Term::ReadKey;
print "Please enter password: ";
ReadMode('noecho');
$password = ReadLine(0);
ReadMode('restore');
chomp ($password);
print "\n";
print "$password\n";
-----Original Message-----
From: Nigel Wetters [mailto:[EMAIL PROTECTED]]
Sent: 21 June 2001 16:16
To: [EMAIL PROTECTED]
Subject: Terminal control on Windows NT
I want to do this:
use POSIX qw(:termios_h);
$term = POSIX::Termios->new;
$term->getattr(fileno(STDIN));
# do some terminal manipulation here
However, I get the error message on Windows NT:
POSIX::termios not implemented on this architecure
I have two questions:
1. Is there _any_ way to take user input (including control sequences such
as ^C) from Windows, and not have that input echo'd to the screen?
2. Is it possible to do this in a platform-independent manner?
--nigel
This e-mail and any files transmitted with it are confidential
and solely for the use of the intended recipient.
ONdigital plc, 346 Queenstown Road, London SW8 4DG. Reg No: 3302715.
--------------------------Confidentiality--------------------------.
This E-mail is confidential. It should not be read, copied, disclosed or
used by any person other than the intended recipient. Unauthorised use,
disclosure or copying by whatever medium is strictly prohibited and may be
unlawful. If you have received this E-mail in error please contact the
sender immediately and delete the E-mail from your system.