package term
import "github.com/dotcloud/docker/pkg/term"
+build windows
Index ¶
- func DisableEcho(fd uintptr, state *State) error
- func GetFdInfo(in interface{}) (uintptr, bool)
- func IsTerminal(fd uintptr) bool
- func RestoreTerminal(fd uintptr, state *State) error
- func SetWinsize(fd uintptr, ws *Winsize) error
- func StdStreams() (stdIn io.ReadCloser, stdOut, stdErr io.Writer)
- type State
- func MakeRaw(fd uintptr) (*State, error)
- func SaveState(fd uintptr) (*State, error)
- func SetRawTerminal(fd uintptr) (*State, error)
- type Winsize
Functions ¶
func DisableEcho ¶
DisableEcho disables echo for the terminal connected to the given file descriptor. -- See http://msdn.microsoft.com/en-us/library/windows/desktop/ms683462(v=vs.85).aspx
func GetFdInfo ¶
GetFdInfo returns file descriptor and bool indicating whether the file is a terminal.
func IsTerminal ¶
IsTerminal returns true if the given file descriptor is a terminal.
func RestoreTerminal ¶
RestoreTerminal restores the terminal connected to the given file descriptor to a previous state.
func SetWinsize ¶
SetWinsize sets the size of the given terminal connected to the passed file descriptor.
func StdStreams ¶
func StdStreams() (stdIn io.ReadCloser, stdOut, stdErr io.Writer)
Types ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
State holds the console mode for the terminal.
func MakeRaw ¶
MakeRaw puts 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 ¶
SaveState saves the state of the terminal connected to the given file descriptor.
func SetRawTerminal ¶
SetRawTerminal puts 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.
type Winsize ¶
Winsize is used for window size.
func GetWinsize ¶
GetWinsize retrieves the window size of the terminal connected to the passed file descriptor.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
pkg/term/winconsole |
- Version
- v1.6.0-rc6
- Published
- Apr 13, 2015
- Platform
- windows/amd64
- Imports
- 4 packages
- Last checked
- 24 minutes ago –
Tools for package owners.