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

term_windows: use golang.org/x/sys/windows #9

Merged
merged 1 commit into from
May 7, 2020

Conversation

thaJeztah
Copy link
Member

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.

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)
Copy link
Member Author

@thaJeztah thaJeztah May 7, 2020

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

@thaJeztah
Copy link
Member Author

@cpuguy83 @dims @tklauser PTAL

@dims
Copy link
Collaborator

dims commented May 7, 2020

LGTM !! thankfully it's mostly the same.

Copy link
Contributor

@tklauser tklauser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@claudiubelu
Copy link

looks pretty good. Most are simple replacements, and any other code difference looks good as well.

Copy link
Member

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cpuguy83 cpuguy83 merged commit b60b041 into moby:master May 7, 2020
@thaJeztah thaJeztah deleted the use_golang_x_sys branch May 7, 2020 18:44
@tiborvass
Copy link
Contributor

Looks like this broke users at docker/for-win#9770, because syscall.STD_INPUT_HANDLE = -10 while windows.STD_INPUT_HANDLE = -10 & (1 << 32 - 1)

@tiborvass
Copy link
Contributor

Unfortunately I am unable to reproduce the issue linked to confirm what caused this.

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

Successfully merging this pull request may close these issues.

6 participants