| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
The test is intended to test how Term::ReadLine behaves without a tty
and mocks up an invalid tty.
Unfortunately some of the checks it does fail if the test starts without
a tty.
Modified the test to handle the lack of a tty.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Revert to 2-arg open in one case.
If /dev/tty is inaccessible, redirecting file handles to STDERR:
open (my $fh, ">&STDERR))
... cannot be done as a 3 arg open or it'll actually try to write to that
file.
Bump $Term::ReadLine::VERSION.
Add unit test for RT #132008
For: RT #132008
(cherry picked from commit e4dc68d725b19f46c6fca9423e6e7a0eaeff47f4)
Signed-off-by: Nicolas R <atoomic@cpan.org>
xx
|
|
|
|
|
|
|
|
|
|
| |
Switch from two-argument form. Filehandle cloning is still done with the two
argument form for backward compatibility.
Committer: Get all porting tests to pass. Increment some $VERSIONs.
Run: ./perl -Ilib regen/mk_invlists.pl; ./perl -Ilib regen/regcharclass.pl
For: RT #130122
|
| |
|
|
|
|
|
| |
Put faster checks first. $^O is internal to perl, but -e has to go
out to the file system.
|
| |
|
| |
|
|
|
|
| |
Bump $VERSION.
|
|
|
|
|
| |
commit 20a5039af69d81e9003664af771f2dd5e0446c2b changed this module's
pod but didn't bump the version.
|
|
|
|
|
| |
Change two instances of 'supercede' to match many more instances of the
former.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Back in 5.002 or so, if we didn't find /dev/tty and weren't on
Windows, the console was assumed to be sys$command, which only
makes sense on VMS (possibly $^O didn't work yet on VMS?).
Later accretions have assumed that the sys$command default meant
something other than laziness and a second if block with various
specific overrides was added, some of which set the console back
to undef after its having been set to sys$command.
That can all be avoided by simply checking we're on VMS before
setting the console to sys$command and letting it default to
STDIN for cases where we don't know of something else specific
that it should be.
|
|
|
|
| |
This fixes [perl #115900].
|
|
|
|
| |
This fixes CPAN RT#79001 and CPAN RT#79064.
|
|
|
|
|
|
| |
https://rt.perl.org/rt3/Ticket/Display.html?id=111758
patch by Darin McBride
|
| |
|
|
|
|
|
|
|
| |
https://rt.perl.org/rt3/Ticket/Display.html?id=108470
This is more work from Darin McBride and Rocco Caputo to get the event
loop code offered earlier working, tested, and documented.
|
|
|
|
|
|
| |
Term::ReadLine supports any event loop, including unpubished ones and
simple IO::Select loops without the need to rewrite existing code for
any particular framework.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Term::ReadLine only allows the Tk event loop to be called during
a readline call. This should be updated to use AnyEvent which will
still work with Tk, as well as any other event loop the user may need.
With this patch, T::RL now uses AnyEvent if it is loaded, falling back
to Tk otherwise; so the Tk mode won't be affected.
T::RL::Stub has its own get_line. This does not honour the tkRunning
flag at all. If I remove it, it's fine. This patch does so.
|
|
|