term

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RefreshKey

type RefreshKey struct {
	T time.Time
}

func (*RefreshKey) When

func (ev *RefreshKey) When() time.Time

Implementing When() to fulfil the tcell.Event interface

type Terminal

type Terminal struct {
	S tcell.Screen

	Editor string
	// contains filtered or unexported fields
}

func NewTerm

func NewTerm(db service.ListRepo, colour string, editor string) *Terminal

func (*Terminal) AwaitEvent

func (t *Terminal) AwaitEvent() interface{}

func (t *Terminal) AwaitEvent() tcell.Event {

func (*Terminal) HandleEvent

func (t *Terminal) HandleEvent(ev interface{}) (bool, error)

func (t *Terminal) HandleEvent(ev tcell.Event) (bool, error) {

func (*Terminal) Refresh

func (t *Terminal) Refresh()

Jump to

Keyboard shortcuts

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