package term
import "github.com/dotcloud/docker/pkg/term"
Index ¶
- Constants
- func DisableEcho(fd uintptr, state *State) error
- func GetConsoleMode(fileDesc uintptr) (uint32, error)
- func IsTerminal(fd uintptr) bool
- func RestoreTerminal(fd uintptr, state *State) error
- func SetConsoleMode(fileDesc uintptr, mode uint32) error
- func SetWinsize(fd uintptr, ws *Winsize) error
- type CONSOLE_SCREEN_BUFFER_INFO
- type COORD
- type SHORT
- type SMALL_RECT
- type State
- func MakeRaw(fd uintptr) (*State, error)
- func SaveState(fd uintptr) (*State, error)
- func SetRawTerminal(fd uintptr) (*State, error)
- type WORD
- type Winsize
Constants ¶
const ( // Consts for Get/SetConsoleMode function // see http://msdn.microsoft.com/en-us/library/windows/desktop/ms683167(v=vs.85).aspx ENABLE_ECHO_INPUT = 0x0004 ENABLE_INSERT_MODE = 0x0020 ENABLE_LINE_INPUT = 0x0002 ENABLE_MOUSE_INPUT = 0x0010 ENABLE_PROCESSED_INPUT = 0x0001 ENABLE_QUICK_EDIT_MODE = 0x0040 ENABLE_WINDOW_INPUT = 0x0008 // If parameter is a screen buffer handle, additional values ENABLE_PROCESSED_OUTPUT = 0x0001 ENABLE_WRAP_AT_EOL_OUTPUT = 0x0002 )
Functions ¶
func DisableEcho ¶
see http://msdn.microsoft.com/en-us/library/windows/desktop/ms683462(v=vs.85).aspx for these flag settings
func GetConsoleMode ¶
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 SetConsoleMode ¶
func SetWinsize ¶
Types ¶
type CONSOLE_SCREEN_BUFFER_INFO ¶
type CONSOLE_SCREEN_BUFFER_INFO struct {
// contains filtered or unexported fields
}
types for calling GetConsoleScreenBufferInfo see http://msdn.microsoft.com/en-us/library/windows/desktop/ms682093(v=vs.85).aspx
func GetConsoleScreenBufferInfo ¶
func GetConsoleScreenBufferInfo(fileDesc uintptr) (*CONSOLE_SCREEN_BUFFER_INFO, error)
type COORD ¶
types for calling GetConsoleScreenBufferInfo see http://msdn.microsoft.com/en-us/library/windows/desktop/ms682093(v=vs.85).aspx
type SHORT ¶
type SHORT int16
types for calling GetConsoleScreenBufferInfo see http://msdn.microsoft.com/en-us/library/windows/desktop/ms682093(v=vs.85).aspx
type SMALL_RECT ¶
types for calling GetConsoleScreenBufferInfo see http://msdn.microsoft.com/en-us/library/windows/desktop/ms682093(v=vs.85).aspx
type State ¶
type State struct {
// contains filtered or unexported fields
}
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 ¶
func SetRawTerminal ¶
type WORD ¶
type WORD uint16
types for calling GetConsoleScreenBufferInfo see http://msdn.microsoft.com/en-us/library/windows/desktop/ms682093(v=vs.85).aspx
type Winsize ¶
func GetWinsize ¶
Source Files ¶
console_windows.go term_windows.go
- Version
- v1.5.0-rc1
- Published
- Jan 22, 2015
- Platform
- windows/amd64
- Imports
- 2 packages
- Last checked
- 1 hour ago –
Tools for package owners.