Click here to get back home

equivalent of /dev/tty in Windows ?

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
equivalent of /dev/tty in Windows ? Peter Billam 10-06-2006
Posted by Peter Billam on October 6, 2006, 1:41 am
Please log in for more thread options


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

Posted by Mumia W. (reading news) on October 6, 2006, 2:36 am
Please log in for more thread options


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

Similar ThreadsPosted
A pipe or FH equivalent of LWP::UserAgent ? February 25, 2005, 3:12 pm
Is there an equivalent of Apache::FakeRequest for mod_perl 2? August 26, 2008, 6:47 pm
Where to get DBD::pg for Windows? January 12, 2005, 1:02 pm
Net::SFTP on Windows March 21, 2005, 9:55 pm
Windows: Perl:XS July 6, 2005, 4:57 am
Termcap under Windows XP... May 23, 2006, 1:49 pm
DBI Module for windows July 11, 2006, 10:34 am
Using Win32::OLE on 64 Bit Windows January 23, 2007, 7:01 am
Perl on Windows April 18, 2007, 3:30 pm
what module is the windows message box in? September 23, 2004, 11:42 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap