in reply to reading input from Win32 console
Next, the Write method takes a single argument (this is totally poor planning, I think). So you need to write things like:$con->Mode(ENABLE_WINDOW_INPUT | ENABLE_PROCESSED_INPUT);
And finally, the ReadChar method is for getting text that is already on the screen. You don't want that -- you want to get input from the user. To do that, I found that I can just read text normally:$con->Write("The cursor info is $info[3],$info[4].\n");
chomp(my $data = <STDIN>);
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
|---|