package term
import "github.com/dotcloud/docker/pkg/term"
Index ¶
- Constants
- Variables
- func DisableEcho(fd uintptr, state *State) error
- func IsTerminal(fd uintptr) bool
- func RestoreTerminal(fd uintptr, state *State) error
- func SetWinsize(fd uintptr, ws *Winsize) error
- type State
- func MakeRaw(fd uintptr) (*State, error)
- func SaveState(fd uintptr) (*State, error)
- func SetRawTerminal(fd uintptr) (*State, error)
- type Termios
- type Winsize
Constants ¶
const ( ECHO = 0x00000008 ONLCR = 0x2 ISTRIP = 0x20 INLCR = 0x40 ISIG = 0x80 IGNCR = 0x80 ICANON = 0x100 ICRNL = 0x100 IXOFF = 0x400 IXON = 0x200 )
Variables ¶
Functions ¶
func DisableEcho ¶
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 SaveState ¶
func SetRawTerminal ¶
type Termios ¶
type Termios struct { Iflag uint64 Oflag uint64 Cflag uint64 Lflag uint64 Cc [20]byte Ispeed uint64 Ospeed uint64 }
type Winsize ¶
func GetWinsize ¶
Source Files ¶
- Version
- v0.7.6
- Published
- Jan 15, 2014
- Platform
- darwin/amd64
- Imports
- 5 packages
- Last checked
- 5 minutes ago –
Tools for package owners.