localcmd

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package localcommand provides an implementation of webtty.Slave that launches a local command with a PTY.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	Args []string
}

Factory implements the server.Factory interface

func (*Factory) New

func (factory *Factory) New() (*Lc, error)

type Lc

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

Lc implements the server.Slave interface {io.ReadWriteCloser,ResizeTerminal()}

func NewLc

func NewLc(args []string) (*Lc, error)

func (*Lc) Close

func (lcmd *Lc) Close() error

func (*Lc) Read

func (lcmd *Lc) Read(p []byte) (n int, err error)

func (*Lc) Resize

func (lcmd *Lc) Resize(rows, cols int) error

func (*Lc) Write

func (lcmd *Lc) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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