Help us shape the future of Go! Take the 2026 Go Developer Survey

tty

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PipeLine

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

PipeLine Connect websocket and childprocess

func NewPipeLine

func NewPipeLine(conn *websocket.Conn, command string) (*PipeLine, error)

NewPipeLine Malloc PipeLine

func (*PipeLine) Close

func (w *PipeLine) Close()

func (*PipeLine) ReadPtyAndWriteSkt

func (w *PipeLine) ReadPtyAndWriteSkt(logChan chan string)

ReadPtyAndWriteSkt read pty and write skt

func (*PipeLine) ReadSktAndWritePty

func (w *PipeLine) ReadSktAndWritePty(logChan chan string)

ReadSktAndWritePty read skt and write pty

type TTY

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

func New

func New(conn *websocket.Conn, cmd string) (*TTY, error)

func (*TTY) Close

func (t *TTY) Close()

func (*TTY) RunCommand

func (t *TTY) RunCommand(args []string) error

func (*TTY) SetCWD

func (t *TTY) SetCWD(cwd string)

func (*TTY) SetENV

func (t *TTY) SetENV(environ []string)

func (*TTY) Start

func (t *TTY) Start()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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