xui

package
v0.0.0-...-0e0b088 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UI

type UI interface {
	io.Reader
	io.Writer
}

UI is the interface that wraps basic methods for user interface

type XUI

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

XUI is an extensible UI object

func NewXUI

func NewXUI() *XUI

NewXUI create new XUI

func (*XUI) Attach

func (ui *XUI) Attach(name string, detach bool)

Attach will attach to specified session

name  : string, session name
detach: bool, if detach other

func (*XUI) Read

func (ui *XUI) Read(p []byte) (int, error)

Read data into p

func (*XUI) Write

func (ui *XUI) Write(p []byte) (int, error)

Write p into XUI

Jump to

Keyboard shortcuts

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