client

package
v0.0.0-...-b1099fc Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clearall

func Clearall()

func Clearline

func Clearline()

func CursorHide

func CursorHide()

func Gotoxy

func Gotoxy(x, y int)

func WinSize

func WinSize() (int, int)

Types

type Client

type Client struct {
	Display  *Display
	Operator *Operator
	// contains filtered or unexported fields
}

func New

func New() *Client

func (*Client) Exit

func (c *Client) Exit()

func (*Client) PaintFrame

func (c *Client) PaintFrame()

func (*Client) PaintUI

func (c *Client) PaintUI()

func (*Client) Start

func (c *Client) Start()

type Display

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

func (*Display) Output

func (d *Display) Output() string

func (*Display) SetData

func (d *Display) SetData(data interface{})

func (*Display) SetOps

func (d *Display) SetOps(ops interface{})

func (*Display) SetTemplate

func (d *Display) SetTemplate(tpl string) error

type Operator

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

func (*Operator) Bind

func (o *Operator) Bind(op, tips string, handlers ...func())

func (*Operator) Ops

func (o *Operator) Ops() []string

func (*Operator) Scan

func (o *Operator) Scan()

Jump to

Keyboard shortcuts

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