xterm

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	TIOCGWINSZ = syscall.TIOCGWINSZ
	TIOCSWINSZ = syscall.TIOCSWINSZ
)

Variables

This section is empty.

Functions

func Open added in v1.5.6

func Open() (*os.File, *os.File, error)

func Setsize added in v1.5.6

func Setsize(t *os.File, ws *Winsize) error

Types

type Winsize added in v1.5.6

type Winsize struct {
	Rows uint16 // ws_row: Number of rows (in cells)
	Cols uint16 // ws_col: Number of columns (in cells)
	X    uint16 // ws_xpixel: Width in pixels
	Y    uint16 // ws_ypixel: Height in pixels
}

type XTerm

type XTerm struct {
	*exec.Cmd
	*os.File
}

func Command

func Command(m *ice.Message, dir string, cli string, arg ...string) (*XTerm, error)

func (XTerm) Close

func (s XTerm) Close() error

func (XTerm) Setsize

func (s XTerm) Setsize(rows, cols string) error

func (XTerm) Write

func (s XTerm) Write(data string) (int, error)

func (XTerm) Writeln

func (s XTerm) Writeln(data string, arg ...ice.Any)

Jump to

Keyboard shortcuts

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