bump vendor for containerd/console update
Signed-off-by: Daniel Dao <dqminh89@gmail.com>
This commit is contained in:
2
vendor/github.com/containerd/console/console.go
generated
vendored
2
vendor/github.com/containerd/console/console.go
generated
vendored
@@ -28,6 +28,8 @@ type Console interface {
|
||||
Size() (WinSize, error)
|
||||
// Fd returns the console's file descriptor
|
||||
Fd() uintptr
|
||||
// Name returns the console's file name
|
||||
Name() string
|
||||
}
|
||||
|
||||
// WinSize specifies the window size of the console
|
||||
|
||||
1
vendor/github.com/containerd/console/console_linux.go
generated
vendored
1
vendor/github.com/containerd/console/console_linux.go
generated
vendored
@@ -1,4 +1,5 @@
|
||||
// +build linux
|
||||
|
||||
package console
|
||||
|
||||
import (
|
||||
|
||||
13
vendor/github.com/containerd/console/console_unix.go
generated
vendored
13
vendor/github.com/containerd/console/console_unix.go
generated
vendored
@@ -118,6 +118,10 @@ func (m *master) Fd() uintptr {
|
||||
return m.f.Fd()
|
||||
}
|
||||
|
||||
func (m *master) Name() string {
|
||||
return m.f.Name()
|
||||
}
|
||||
|
||||
// checkConsole checks if the provided file is a console
|
||||
func checkConsole(f *os.File) error {
|
||||
var termios unix.Termios
|
||||
@@ -132,3 +136,12 @@ func newMaster(f *os.File) Console {
|
||||
f: f,
|
||||
}
|
||||
}
|
||||
|
||||
// SaneTerminal sets the necessary tty_ioctl(4)s to ensure that a pty pair
|
||||
// created by us acts normally. In particular, a not-very-well-known default of
|
||||
// Linux unix98 ptys is that they have +onlcr by default. While this isn't a
|
||||
// problem for terminal emulators, because we relay data from the terminal we
|
||||
// also relay that funky line discipline.
|
||||
func SaneTerminal(f *os.File) error {
|
||||
return saneTerminal(f)
|
||||
}
|
||||
|
||||
7
vendor/github.com/containerd/console/console_windows.go
generated
vendored
7
vendor/github.com/containerd/console/console_windows.go
generated
vendored
@@ -154,6 +154,13 @@ func (m *master) Fd() uintptr {
|
||||
return m.in
|
||||
}
|
||||
|
||||
// on windows, console can only be made from os.Std{in,out,err}, hence there
|
||||
// isnt a single name here we can use. Return a dummy "console" value in this
|
||||
// case should be sufficient.
|
||||
func (m *master) Name() string {
|
||||
return "console"
|
||||
}
|
||||
|
||||
// makeInputRaw puts the terminal (Windows Console) connected to the given
|
||||
// file descriptor into raw mode
|
||||
func makeInputRaw(fd uintptr, mode uint32) error {
|
||||
|
||||
Reference in New Issue
Block a user