-
Notifications
You must be signed in to change notification settings - Fork 27
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
term_windows: use golang.org/x/sys/windows #9
Conversation
The parts of github.com/Azure/go-ansiterm/winterm that were used is now provided by golang.org/x/sys/windows, so switch to that package, as it's more actively maintained. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
} else { | ||
stdOut = os.Stdout | ||
} | ||
|
||
if emulateStderr { | ||
stdErr = windowsconsole.NewAnsiWriter(syscall.STD_ERROR_HANDLE) | ||
stdErr = windowsconsole.NewAnsiWriter(windows.STD_ERROR_HANDLE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably worth linking; golang/sys@ff24cb3, in case that's not the correct thing to do in this context
LGTM !! thankfully it's mostly the same. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
looks pretty good. Most are simple replacements, and any other code difference looks good as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Looks like this broke users at docker/for-win#9770, because |
Unfortunately I am unable to reproduce the issue linked to confirm what caused this. |
The code was switched back to x/sys/windows by moby#9. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
The parts of github.com/Azure/go-ansiterm/winterm that were used
is now provided by golang.org/x/sys/windows, so switch to that
package, as it's more actively maintained.