term

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeRaw

func MakeRaw(f *os.File) error

MakeRaw makes terminal raw

func SetParams

func SetParams(f *os.File, p Params) (err error)

SetParams applies provided params to terminal

func SetSize

func SetSize(f *os.File, ws Size) error

SetSize sets new terminsl size

Types

type Params

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

Params contains terminal state and size

func GetParams

func GetParams(f *os.File) (p Params, err error)

GetParams returns terminal params

type Size

type Size struct {
	Rows    uint16
	Cols    uint16
	Xpixels uint16
	Ypixels uint16
}

Size represents terminal size

func GetSize

func GetSize(f *os.File) (ws Size, err error)

GetSize returns terminal size

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL