equivalent of /dev/tty in Windows ?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I have this module Term::Clui to which I've just added some
"use Term::ReadKey"; so the "stty -echo raw" stuff is probably now
(at last) portable to windows.  The next roadblock would be the
"open(TTY, '>/dev/tty')" bit. What's the windows-portable equivalent ?

Regards, Peter

(apologies in advance: I ask as someone who hasn't used windows since
 3.1, and even then not much :-))

AUS/TAS/DPIW/CIT/Servers hbt/lnd/l8   6233 3061   http://www.pjb.com.au
Pasaré, pasarémos    dice el agua    y canta la verdad contra la piedra
 -- Pablo Neruda

Re: equivalent of /dev/tty in Windows ?

On 10/06/2006 12:41 AM, Peter Billam wrote:
Quoted text here. Click to load it

Perhaps this,

open (TTY, '>', 'CON:') or die "$!";

Posting Guidelines for comp.lang.perl.misc:

Site Timeline