diff options
author | Kevin Krakauer <krakauer@google.com> | 2018-08-27 10:48:02 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-08-27 10:49:16 -0700 |
commit | 2524111fc63343fd7372f5ea0266130adea778a5 (patch) | |
tree | a751e8af72899aff4d0540a1b71ea5a440e14e32 /pkg/abi/linux | |
parent | b17e80ef5a44e773e9032e7dbcb7438ff851ab7c (diff) |
runsc: Terminal resizing support.
Implements the TIOCGWINSZ and TIOCSWINSZ ioctls, which allow processes to resize
the terminal. This allows, for example, sshd to properly set the window size for
ssh sessions.
PiperOrigin-RevId: 210392504
Change-Id: I0d4789154d6d22f02509b31d71392e13ee4a50ba
Diffstat (limited to 'pkg/abi/linux')
-rw-r--r-- | pkg/abi/linux/tty.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/abi/linux/tty.go b/pkg/abi/linux/tty.go index 81156867c..f63dc52aa 100644 --- a/pkg/abi/linux/tty.go +++ b/pkg/abi/linux/tty.go @@ -328,3 +328,13 @@ var DefaultSlaveTermios = KernelTermios{ InputSpeed: 38400, OutputSpeed: 38400, } + +// WindowSize corresponds to struct winsize defined in +// include/uapi/asm-generic/termios.h. +// +// +stateify savable +type WindowSize struct { + Rows uint16 + Cols uint16 + _ [4]byte // Padding for 2 unused shorts. +} |