Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions dist/Term-ReadLine/lib/Term/ReadLine.pm
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,13 @@ sub new {
my($console, $consoleOUT) = $_[0]->findConsole;




# the Windows CONIN$ needs GENERIC_WRITE mode to allow
# a SetConsoleMode() if we end up using Term::ReadKey
open FIN, (( $^O eq 'MSWin32' && $console eq 'CONIN$' ) ? '+<' : '<' ), $console;
open FOUT,'>', $consoleOUT;
# RT #132008: Still need 2-arg open here
open FOUT,">$consoleOUT";

#OUT->autoflush(1); # Conflicts with debugger?
my $sel = select(FOUT);
Expand Down Expand Up @@ -319,7 +322,7 @@ sub Features { \%features }

package Term::ReadLine; # So late to allow the above code be defined?

our $VERSION = '1.16';
our $VERSION = '1.17';

my ($which) = exists $ENV{PERL_RL} ? split /\s+/, $ENV{PERL_RL} : undef;
if ($which) {
Expand Down