summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/dist/Term-ReadLine/lib
diff options
context:
space:
mode:
authorafresh1 <afresh1@openbsd.org>2014-03-24 14:58:42 +0000
committerafresh1 <afresh1@openbsd.org>2014-03-24 14:58:42 +0000
commit91f110e064cd7c194e59e019b83bb7496c1c84d4 (patch)
tree3e8e577405dba7e94b43cbf21c22f21aaa5ab949 /gnu/usr.bin/perl/dist/Term-ReadLine/lib
parentdo not call purge_task every 10 secs, it is only needed once at startup and (diff)
downloadwireguard-openbsd-91f110e064cd7c194e59e019b83bb7496c1c84d4.tar.xz
wireguard-openbsd-91f110e064cd7c194e59e019b83bb7496c1c84d4.zip
Import perl-5.18.2
OK espie@ sthen@ deraadt@
Diffstat (limited to 'gnu/usr.bin/perl/dist/Term-ReadLine/lib')
-rw-r--r--gnu/usr.bin/perl/dist/Term-ReadLine/lib/Term/ReadLine.pm23
1 files changed, 8 insertions, 15 deletions
diff --git a/gnu/usr.bin/perl/dist/Term-ReadLine/lib/Term/ReadLine.pm b/gnu/usr.bin/perl/dist/Term-ReadLine/lib/Term/ReadLine.pm
index 3770df05529..1aa19d397ec 100644
--- a/gnu/usr.bin/perl/dist/Term-ReadLine/lib/Term/ReadLine.pm
+++ b/gnu/usr.bin/perl/dist/Term-ReadLine/lib/Term/ReadLine.pm
@@ -117,7 +117,7 @@ C<readline> method).
=item C<event_loop>
Registers call-backs to wait for user input (i.e., during C<readline>
-method). This supercedes tkRunning.
+method). This supersedes tkRunning.
The first call-back registered is the call back for waiting. It is
expected that the callback will call the current event loop until
@@ -233,24 +233,17 @@ sub findConsole {
my $console;
my $consoleOUT;
- if (-e "/dev/tty") {
+ if (-e "/dev/tty" and $^O ne 'MSWin32') {
$console = "/dev/tty";
- } elsif (-e "con" or $^O eq 'MSWin32') {
+ } elsif (-e "con" or $^O eq 'MSWin32' or $^O eq 'msys') {
$console = 'CONIN$';
$consoleOUT = 'CONOUT$';
- } else {
+ } elsif ($^O eq 'VMS') {
$console = "sys\$command";
- }
-
- if (($^O eq 'amigaos') || ($^O eq 'beos') || ($^O eq 'epoc')) {
- $console = undef;
- }
- elsif ($^O eq 'os2') {
- if ($DB::emacs) {
- $console = undef;
- } else {
+ } elsif ($^O eq 'os2' && !$DB::emacs) {
$console = "/dev/con";
- }
+ } else {
+ $console = undef;
}
$consoleOUT = $console unless defined $consoleOUT;
@@ -327,7 +320,7 @@ sub Features { \%features }
package Term::ReadLine; # So late to allow the above code be defined?
-our $VERSION = '1.09';
+our $VERSION = '1.12';
my ($which) = exists $ENV{PERL_RL} ? split /\s+/, $ENV{PERL_RL} : undef;
if ($which) {