package term

import "github.com/docker/docker/pkg/term"

Index

Variables

var (
	ErrInvalidState = errors.New("Invalid terminal state")
)

Functions

func DisableEcho

func DisableEcho(fd uintptr, state *State) error

func GetFdInfo

func GetFdInfo(in interface{}) (uintptr, bool)

func IsTerminal

func IsTerminal(fd uintptr) bool

IsTerminal returns true if the given file descriptor is a terminal.

func RestoreTerminal

func RestoreTerminal(fd uintptr, state *State) error

Restore restores the terminal connected to the given file descriptor to a previous state.

func SetWinsize

func SetWinsize(fd uintptr, ws *Winsize) error

func StdStreams

func StdStreams() (stdIn io.ReadCloser, stdOut, stdErr io.Writer)

Types

type State

type State struct {
	// contains filtered or unexported fields
}

func SaveState

func SaveState(fd uintptr) (*State, error)

func SetRawTerminal

func SetRawTerminal(fd uintptr) (*State, error)

type Winsize

type Winsize struct {
	Height uint16
	Width  uint16
	// contains filtered or unexported fields
}

func GetWinsize

func GetWinsize(fd uintptr) (*Winsize, error)

Source Files

tc_other.go term.go

Directories

PathSynopsis
pkg/term/winconsole
Version
v1.6.0-rc1
Published
Mar 23, 2015
Platform
js/wasm
Imports
6 packages
Last checked
31 minutes ago

Tools for package owners.