summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@engin.umich.edu>1997-06-11 12:00:00 +1200
committerTim Bunce <Tim.Bunce@ig.co.uk>1997-06-11 12:00:00 +1200
commit8878e8698834a878cac8b55dceba0d0e1ec03745 (patch)
treec10631f1ad88b2bd316368456bcaf8e9beba958f /lib
parentb4492ac422a915aa8afddffb696c37879244f66d (diff)
downloadperl-8878e8698834a878cac8b55dceba0d0e1ec03745.tar.gz
Re: Term::ReadKey on Win32: set console
Diffstat (limited to 'lib')
-rw-r--r--lib/Term/ReadLine.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Term/ReadLine.pm b/lib/Term/ReadLine.pm
index a52b558b22..105e6dd536 100644
--- a/lib/Term/ReadLine.pm
+++ b/lib/Term/ReadLine.pm
@@ -157,7 +157,7 @@ sub findConsole {
if (-e "/dev/tty") {
$console = "/dev/tty";
- } elsif (-e "con") {
+ } elsif (-e "con" or $^O eq 'MSWin32') {
$console = "con";
} else {
$console = "sys\$command";