Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Unix script command instead of IO::CaptureOutput [rt.cpan.org #34526] #74

Open
xdg opened this issue Apr 3, 2016 · 1 comment
Open
Labels

Comments

@xdg
Copy link
Contributor

xdg commented Apr 3, 2016

https://rt.cpan.org/Ticket/Display.html?id=34526

On system with a working script(1) command it could be preferable to use
this command instead of IO::CaptureOutput. It seems that script is
perfectly emulating a terminal while capturing all of the output. I made
a test with the Curses::Widgets testsuite and it does not garble the screen.

Regards,
    Slaven
@xdg xdg added the wishlist label Apr 3, 2016
@jkeenan
Copy link
Contributor

jkeenan commented Sep 16, 2023

https://rt.cpan.org/Ticket/Display.html?id=34526

On system with a working script(1) command it could be preferable to use
this command instead of IO::CaptureOutput. It seems that script is
perfectly emulating a terminal while capturing all of the output. I made
a test with the Curses::Widgets testsuite and it does not garble the screen.

Regards,
    Slaven

Consistent with @xdg's deprecation of IO::CaptureOutput in favor of Capture::Tiny, IO::CaptureOutput was removed by @garu as a prerequisite for CPAN::Reporter in this recent commit (and CPAN release 1.2019):

$ gitshowf 678c241afcac00d712dda76e21dc955c437b185d
commit 678c241afcac00d712dda76e21dc955c437b185d
Merge: e4ed990 ef86b51
Author:     Breno G. de Oliveira <[email protected]>
AuthorDate: Mon May 1 02:49:30 2023 +0200
Commit:     GitHub <[email protected]>
CommitDate: Mon May 1 02:49:30 2023 +0200

    Merge pull request #97 from jjatria/capture-tiny
    
    Use Capture::Tiny instead of IO::CaptureOutput

Can this ticket be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants