From edfdf9db53975d08d1029d0c8ccec64467262cae Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 5 Apr 2020 10:59:06 -0700 Subject: Revert "always use _sysptycap_script for now" This reverts commit 7ab96b2dcac381e1fdc42d69ce96cd5758943d19. Hopefully b2de6d0fa691b87d0de3821b8743d89b2777a767 is sufficient to fix the issues with _sysptycap_tty. --- perl5/Local/Interactive.pm | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'perl5') 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 { -- cgit v1.2.3