tty

package
v0.1.3-0...-08ec195 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2018 License: BSD-4-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandLine

type CommandLine struct {
	Command string
}

type Environ

type Environ struct {
	Key   string
	Value string
}

type ExitStatus

type ExitStatus struct {
	Status uint32
}

type Pty

type Pty struct {
	Term     string
	Columns  uint32
	Rows     uint32
	Width    uint32
	Height   uint32
	Modelist string
}

Pty represents a PTY request and configuration.

func (*Pty) ToTermInfo

func (p *Pty) ToTermInfo() *TermInfo

func (*Pty) ToWindow

func (p *Pty) ToWindow() *Window

type TermInfo

type TermInfo struct {
	Term     string
	Cols     uint32
	Rows     uint32
	Modelist string
}

func (*TermInfo) TermMap

func (i *TermInfo) TermMap() (mode map[uint8]uint32)

func (*TermInfo) ToPty

func (i *TermInfo) ToPty() *Pty

func (*TermInfo) ToWindow

func (i *TermInfo) ToWindow() *Window

type Window

type Window struct {
	Columns uint32
	Rows    uint32
	Width   uint32
	Height  uint32
}

Window represents the size of a PTY window.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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