summaryrefslogtreecommitdiff
path: root/perl5
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-04-05 10:59:06 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-04-05 10:59:06 -0700
commitedfdf9db53975d08d1029d0c8ccec64467262cae (patch)
treee52532f836d7a98d4bba41408eecdbcfdd13db5e /perl5
parentbd17f34646473638dc88e3a033e01d424fa01217 (diff)
downloaddotfiles-edfdf9db53975d08d1029d0c8ccec64467262cae.tar.gz
Revert "always use _sysptycap_script for now"
This reverts commit 7ab96b2dcac381e1fdc42d69ce96cd5758943d19. Hopefully b2de6d0fa691b87d0de3821b8743d89b2777a767 is sufficient to fix the issues with _sysptycap_tty.
Diffstat (limited to 'perl5')
-rw-r--r--perl5/Local/Interactive.pm14
1 files changed, 5 insertions, 9 deletions
diff --git a/perl5/Local/Interactive.pm b/perl5/Local/Interactive.pm
index 4565fd23..50f3e06a 100644
--- a/perl5/Local/Interactive.pm
+++ b/perl5/Local/Interactive.pm
@@ -148,15 +148,11 @@ fallback to script(1) then this is not a problem.
=cut
sub system_pty_capture {
- # if (eval { require IO::Pty } and -t STDOUT) {
- # return _sysptycap_tty(@_);
- # } else {
- # return _sysptycap_script(@_);
- # }
-
- # always use _sysptycap_script for now because _sysptycap_tty has
- # some bugs
- _sysptycap_script(@_);
+ if (eval { require IO::Pty } and -t STDOUT) {
+ return _sysptycap_tty(@_);
+ } else {
+ return _sysptycap_script(@_);
+ }
}
sub _sysptycap_script {