iface

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Console

type Console interface {
	io.Reader
	io.Writer
	// close the pty and kill the subroutine
	io.Closer

	// start pty subroutine
	Start(dir string, command []string) error

	// set pty window size
	SetSize(cols uint, rows uint) error

	// ResizeWithString("50,50")
	ResizeWithString(sizeText string) error

	// Get pty window size
	GetSize() (uint, uint)

	// Add environment variables before start
	AddENV(environ []string) error

	// Get the process id of the pty subprogram
	Pid() int

	// wait for the pty subroutine to exit
	Wait() (*os.ProcessState, error)

	// Force kill pty subroutine,try to kill all child processes
	Kill() error

	// Send system signals to pty subroutines
	Signal(sig os.Signal) error

	StdIn() io.Writer

	StdOut() io.Reader

	// nil in unix
	StdErr() io.Reader
}

Console communication interface

Jump to

Keyboard shortcuts

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