equivalent of /dev/tty in Windows ?

equivalent of /dev/tty in Windows ?

am 06.10.2006 07:41:34 von Peter Billam

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 ?

am 06.10.2006 08:36:50 von paduille.4058.mumia.w

On 10/06/2006 12:41 AM, Peter Billam wrote:
> 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 :-))
>

Perhaps this,

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


--
paduille.4058.mumia.w@earthlink.net
Posting Guidelines for comp.lang.perl.misc:
http://www.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines. html