aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-06-29 12:43:20 -0400
committerGitHub <noreply@github.com>2020-06-29 12:43:20 -0400
commitc682ca3d35a3e4f9265e10dc9898cbe3ac3d35a2 (patch)
tree9ccceb17b10298a4389b0f7963d8c09bcf625e56 /cmd
parentd90e8b6873f3f06a1b2cfe9f55ac61b3e5904bc3 (diff)
parentdfb2f92583a5797b1ee8cdf29399dc29b7f3c6d3 (diff)
downloadpodman-c682ca3d35a3e4f9265e10dc9898cbe3ac3d35a2.tar.gz
podman-c682ca3d35a3e4f9265e10dc9898cbe3ac3d35a2.tar.bz2
podman-c682ca3d35a3e4f9265e10dc9898cbe3ac3d35a2.zip
Merge pull request #6794 from baude/v2remotewindowsterminal
Set console mode for windows
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/podman/main.go b/cmd/podman/main.go
index f502e7a67..7a015b300 100644
--- a/cmd/podman/main.go
+++ b/cmd/podman/main.go
@@ -16,7 +16,9 @@ import (
_ "github.com/containers/libpod/cmd/podman/system"
_ "github.com/containers/libpod/cmd/podman/volumes"
"github.com/containers/libpod/pkg/rootless"
+ "github.com/containers/libpod/pkg/terminal"
"github.com/containers/storage/pkg/reexec"
+ "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)
@@ -53,6 +55,10 @@ func main() {
}
}
}
+ if err := terminal.SetConsole(); err != nil {
+ logrus.Error(err)
+ os.Exit(1)
+ }
Execute()
os.Exit(0)