shell_service

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetWinsize

func SetWinsize(fd uintptr, w, h uint32)

SetWinsize sets the size of the given pty.

Types

type Option

type Option func(*ShellService)

type ShellService

type ShellService struct {
	Conn        net.Conn
	Interactive int
	Name        string
	NamedPipe   string
	Args        []string
}

func NewShellService

func NewShellService(conn net.Conn, namedPipe string, name string, args ...string) *ShellService

func (*ShellService) Start

func (ss *ShellService) Start()

type Winsize

type Winsize struct {
	Height uint16
	Width  uint16
	// contains filtered or unexported fields
}

Winsize stores the Height and Width of a terminal.

Jump to

Keyboard shortcuts

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