xterm

package
v1.5.17 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	NUL    = "\000"
	SOH    = "\001" // Ctrl+A
	STX    = "\002" // Ctrl+B
	ETX    = "\003" // Ctrl+C
	EOT    = "\004" // Ctrl+D
	ENQ    = "\005" // Ctrl+E
	ACK    = "\006" // Ctrl+F
	BEL    = "\007" // Ctrl+G
	BS     = "\010" // Ctrl+H
	HT     = "\011" // Ctrl+I
	NL     = "\012" // Ctrl+J
	VT     = "\013" // Ctrl+K
	NP     = "\014" // Ctrl+L
	CR     = "\015" // Ctrl+M
	SO     = "\016" // Ctrl+N
	SI     = "\017" // Ctrl+O
	DLE    = "\020" // Ctrl+P
	DC1    = "\021" // Ctrl+Q
	DC2    = "\022" // Ctrl+R
	DC3    = "\023" // Ctrl+S
	DC4    = "\024" // Ctrl+T
	NAK    = "\025" // Ctrl+U
	SYN    = "\026" // Ctrl+V
	ETB    = "\027" // Ctrl+W
	CAN    = "\030" // Ctrl+X
	EM     = "\031" // Ctrl+Y
	SUB    = "\032" // Ctrl+Z
	ESC    = "\033" // Ctrl+[
	ESC_C  = "\033[C"
	ESC_H  = "\033[H"
	ESC_K  = "\033[K"
	ESC_2J = "\033[2J"
	ESC_s  = "\033[s"
	ESC_u  = "\033[u"
	DEL    = "\177"
	CRNL   = "\r\n"
)

AEBF UKHD ITWY JMCZ NPRS LGVQ XO

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 Setsid added in v1.5.7

func Setsid(cmd *exec.Cmd)

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 interface {
	Setsize(rows, cols string) error
	Writeln(data string, arg ...ice.Any)
	Write(buf []byte) (int, error)
	Read(buf []byte) (int, error)
	Close() error
}

func Command

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

func NewITerm added in v1.5.7

func NewITerm(m *ice.Message) (XTerm, error)

Jump to

Keyboard shortcuts

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