package term
import "github.com/docker/docker/term"
Index ¶
- func IsTerminal(fd uintptr) bool
- func RestoreTerminal(fd uintptr, state *State) error
- func SetWinsize(fd uintptr, ws *Winsize) error
- type State
- type Termios
- type Winsize
Functions ¶
func IsTerminal ¶
IsTerminal returns true if the given file descriptor is a terminal.
func RestoreTerminal ¶
Restore restores the terminal connected to the given file descriptor to a previous state.
func SetWinsize ¶
Types ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
func MakeRaw ¶
MakeRaw put the terminal connected to the given file descriptor into raw mode and returns the previous state of the terminal so that it can be restored.
func SetRawTerminal ¶
type Termios ¶
type Termios struct { Iflag uint32 Oflag uint32 Cflag uint32 Lflag uint32 Cc [20]byte Ispeed uint32 Ospeed uint32 }
type Winsize ¶
func GetWinsize ¶
Source Files ¶
- Version
- v0.4.7
- Published
- Jun 30, 2013
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 53 minutes ago –
Tools for package owners.