Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Thanks,
Glenn
#!/usr/bin/perl use Win32::Console; $con = Win32::Console->new(); $con->Mode(ENABLE_WINDOW_INPUT,ENABLE_PROCESSED_INPUT,ENABLE_LINE_INPU +T,ENABLE_ECHO_INPUT,ENABLE_PROCESSED_OUTPUT,ENABLE_WRAP_AT_EOL_OUTPUT +); $con->Display; $con->Write("Please enter the agent ID number: "); # I want to wait fo +r input here, but apparently the ReadChar below doesn't do that @info = $con->Info(); $con->Write("The cursor info is ",$info[3],",",$info[4],". \r"); # Thi +s presently prints no cursor data $port = ($con->ReadChar(3,$info[3],$info[4])); $con->Write("The port number to use is ",$port);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: reading input from Win32 console
by japhy (Canon) on Aug 12, 2001 at 21:53 UTC | |
|
Re: reading input from Win32 console
by ralphie (Friar) on Aug 13, 2001 at 16:19 UTC |