madux_session

package
v0.0.0-...-014678a Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	Name string
	Id   int32

	Pty *madux_term.Pty
	// contains filtered or unexported fields
}

func NewSession

func NewSession(cmdStr string) (*Session, error)

func (*Session) GetOutput

func (s *Session) GetOutput(start int) ([]byte, int)

func (*Session) Size

func (s *Session) Size(w, h int32)

func (*Session) Start

func (s *Session) Start() error

func (*Session) String

func (s *Session) String() string

func (*Session) Wait

func (s *Session) Wait() error

type Sessions

type Sessions struct {
	IdSeq int32
	// contains filtered or unexported fields
}

func (*Sessions) Add

func (s *Sessions) Add(sess *Session)

func (*Sessions) GetById

func (s *Sessions) GetById(id int32) *Session

func (*Sessions) GetOutput

func (s *Sessions) GetOutput(idx int) []byte

func (*Sessions) List

func (s *Sessions) List() []*Session

Jump to

Keyboard shortcuts

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