chore: convert console output to creack/pty
What this PR does / why we need it:
The https://github.com/containerd/console we are using is pretty much a dead project. There has been a ticket about mac failures for over a year and no action over there other than bug fixes. The project is small time:
The creack/pty project is a lot more active:
Closes: https://github.com/oras-project/oras/issues/1449
Codecov Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 87.39%. Comparing base (6c3e3e5) to head (aa4253d).
Additional details and impacted files
@@ Coverage Diff @@
## main #1850 +/- ##
==========================================
+ Coverage 87.29% 87.39% +0.09%
==========================================
Files 143 143
Lines 5535 5530 -5
==========================================
+ Hits 4832 4833 +1
+ Misses 417 414 -3
+ Partials 286 283 -3
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
Should the PR title start with "refactor"?
It would be a good start on extending test coverage in Darwin. Thanks for your contribution. @TerryHowe
The width on Window not the actual size though, the width is always 80. @Wwwsylvia @shizhMSFT What do you think?
Should the PR title start with "refactor"?
Good point, fixed. This happenwd to be a case where the code was nicely encapsulated, so went easier than expected!
@TerryHowe After investigating github.com/creack/pty, I found that it does not support Windows. 😢
When calling pty.Getsize(c.file), creack/pty returns ErrUnsupported on Windows. Then oras fallback to a 80x10 window.
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 30 days.
Just fixing conflicts