internal

package
v0.0.0-...-18ff31d Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsStdinTerminal

func IsStdinTerminal() bool

func NewTtyShareClient

func NewTtyShareClient(url string, detachKeys string) *ttyShareClient

func OnWindowChanges

func OnWindowChanges(wcCB onWindowChangedCB)

Types

type PtyMaster

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

This defines a PTY Master whih will encapsulate the command we want to run, and provide simple access to the command, to write and read IO, but also to control the window size.

func PtyMasterNew

func PtyMasterNew() *PtyMaster

func (*PtyMaster) GetWinSize

func (pty *PtyMaster) GetWinSize() (int, int, error)

func (*PtyMaster) MakeRaw

func (pty *PtyMaster) MakeRaw() (err error)

func (*PtyMaster) Read

func (pty *PtyMaster) Read(b []byte) (int, error)

func (*PtyMaster) Refresh

func (pty *PtyMaster) Refresh()

func (*PtyMaster) Restore

func (pty *PtyMaster) Restore()

func (*PtyMaster) SetWinChangeCB

func (pty *PtyMaster) SetWinChangeCB(winChangedCB onWindowChangedCB)

func (*PtyMaster) SetWinSize

func (pty *PtyMaster) SetWinSize(rows, cols int)

func (*PtyMaster) Start

func (pty *PtyMaster) Start(command string, args []string, envVars []string) (err error)

func (*PtyMaster) Stop

func (pty *PtyMaster) Stop() (err error)

func (*PtyMaster) Wait

func (pty *PtyMaster) Wait() (err error)

func (*PtyMaster) Write

func (pty *PtyMaster) Write(b []byte) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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