diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-01-15 09:23:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-15 09:23:57 -0500 |
commit | 5a166b297339d547d89fbf14248c3aff129eb960 (patch) | |
tree | 9c9e7f88b2e1dab42f525177ffda6a170b6e7454 /vendor/github.com/moby/term/term_windows.go | |
parent | 3ceef004e3848d5fbddcf084c0db3f1ebe789312 (diff) | |
parent | c88022589aa3aa10593e7956cdf52d9e231f254d (diff) | |
download | podman-5a166b297339d547d89fbf14248c3aff129eb960.tar.gz podman-5a166b297339d547d89fbf14248c3aff129eb960.tar.bz2 podman-5a166b297339d547d89fbf14248c3aff129eb960.zip |
Merge pull request #8978 from rhatdan/buildah
Bump to containers/buildah 1.9.2
Diffstat (limited to 'vendor/github.com/moby/term/term_windows.go')
-rw-r--r-- | vendor/github.com/moby/term/term_windows.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/vendor/github.com/moby/term/term_windows.go b/vendor/github.com/moby/term/term_windows.go index 2e512759e..ba82960d4 100644 --- a/vendor/github.com/moby/term/term_windows.go +++ b/vendor/github.com/moby/term/term_windows.go @@ -71,19 +71,22 @@ func StdStreams() (stdIn io.ReadCloser, stdOut, stdErr io.Writer) { // go-ansiterm hasn't switch to x/sys/windows. // TODO: switch back to x/sys/windows once go-ansiterm has switched if emulateStdin { - stdIn = windowsconsole.NewAnsiReader(windows.STD_INPUT_HANDLE) + h := uint32(windows.STD_INPUT_HANDLE) + stdIn = windowsconsole.NewAnsiReader(int(h)) } else { stdIn = os.Stdin } if emulateStdout { - stdOut = windowsconsole.NewAnsiWriter(windows.STD_OUTPUT_HANDLE) + h := uint32(windows.STD_OUTPUT_HANDLE) + stdOut = windowsconsole.NewAnsiWriter(int(h)) } else { stdOut = os.Stdout } if emulateStderr { - stdErr = windowsconsole.NewAnsiWriter(windows.STD_ERROR_HANDLE) + h := uint32(windows.STD_ERROR_HANDLE) + stdErr = windowsconsole.NewAnsiWriter(int(h)) } else { stdErr = os.Stderr } |