playingwithbots has asked for the wisdom of the Perl Monks concerning the following question:
use Win32::Console ; $cons = new Win32::Console(STD_INPUT_HANDLE) || die "Can't open new co +nsole\n"; $oldMode = $cons->Mode ; $cons->Mode(~(ENABLE_LINE_INPUT|ENABLE_ECHO_INPUT) & $oldMode ); while (1) { $char = $cons->InputChar(1) ; last if ord $char == 13 ; print '*' ; $password .= $char ; } print "\nPassword was $password\n" ; $cons->Mode($oldMode) ;
Any help is appreciated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::Console Modes not Working on XP
by BrowserUk (Patriarch) on Jul 18, 2003 at 20:06 UTC | |
|
Re: Win32::Console Modes not Working on XP
by NetWallah (Canon) on Jul 18, 2003 at 21:43 UTC |