Skip to content

Commit 0351df1

Browse files
authored
Merge pull request #1600 from crosbymichael/console
Bump console and sys deps
2 parents 2ae0fa7 + f364c1a commit 0351df1

File tree

159 files changed

+22517
-9356
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+22517
-9356
lines changed

contrib/cmd/recvtty/recvtty.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,25 +101,26 @@ func handleSingle(path string) error {
101101
if err != nil {
102102
return err
103103
}
104-
console, err := console.ConsoleFromFile(master)
104+
c, err := console.ConsoleFromFile(master)
105105
if err != nil {
106106
return err
107107
}
108+
console.ClearONLCR(c.Fd())
108109

109110
// Copy from our stdio to the master fd.
110111
quitChan := make(chan struct{})
111112
go func() {
112-
io.Copy(os.Stdout, console)
113+
io.Copy(os.Stdout, c)
113114
quitChan <- struct{}{}
114115
}()
115116
go func() {
116-
io.Copy(console, os.Stdin)
117+
io.Copy(c, os.Stdin)
117118
quitChan <- struct{}{}
118119
}()
119120

120121
// Only close the master fd once we've stopped copying.
121122
<-quitChan
122-
console.Close()
123+
c.Close()
123124
return nil
124125
}
125126

libcontainer/integration/execin_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ func TestExecInTTY(t *testing.T) {
309309
}
310310
return
311311
}
312-
console.SaneTerminal(f)
312+
console.ClearONLCR(c.Fd())
313313
dc <- &cdata{
314314
c: c,
315315
}

tty.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ func (t *tty) recvtty(process *libcontainer.Process, socket *os.File) error {
8080
if err != nil {
8181
return err
8282
}
83+
console.ClearONLCR(cons.Fd())
8384
epoller, err := console.NewEpoller()
8485
if err != nil {
8586
return err

vendor.conf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ github.com/golang/protobuf 18c9bb3261723cd5401db4d0c9fbc5c3b6c70fe8
1818
github.com/docker/docker 0f5c9d301b9b1cca66b3ea0f9dec3b5317d3686d
1919
github.com/docker/go-units v0.2.0
2020
github.com/urfave/cli d53eb991652b1d438abdd34ce4bfa3ef1539108e
21-
golang.org/x/sys 0e0164865330d5cf1c00247be08330bf96e2f87c https://github.com/golang/sys
21+
golang.org/x/sys 7ddbeae9ae08c6a06a59597f0c9edbc5ff2444ce https://github.com/golang/sys
2222

2323
# console dependencies
24-
github.com/containerd/console 2ce1c681f3c3c0dfa7d0af289428d36567c9a6bc
25-
github.com/Azure/go-ansiterm fa152c58bc15761d0200cb75fe958b89a9d4888e
24+
github.com/containerd/console 84eeaae905fa414d03e07bcd6c8d3f19e7cf180e
2625
github.com/pkg/errors v0.8.0

vendor/github.com/Azure/go-ansiterm/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

vendor/github.com/Azure/go-ansiterm/README.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

vendor/github.com/Azure/go-ansiterm/constants.go

Lines changed: 0 additions & 188 deletions
This file was deleted.

vendor/github.com/Azure/go-ansiterm/context.go

Lines changed: 0 additions & 7 deletions
This file was deleted.

vendor/github.com/Azure/go-ansiterm/csi_entry_state.go

Lines changed: 0 additions & 49 deletions
This file was deleted.

vendor/github.com/Azure/go-ansiterm/csi_param_state.go

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)