package term

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

Index

Functions

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

Types

type State

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

func SetRawTerminal

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

type Winsize

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

func GetWinsize

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

Source Files

term.go

Version
v0.4.7
Published
Jun 30, 2013
Platform
js/wasm
Imports
4 packages
Last checked
7 minutes ago

Tools for package owners.