cterm

package module
v0.0.0-...-e94c6e3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Terminal

type Terminal struct {
	*cview.Box

	sync.RWMutex
	// contains filtered or unexported fields
}

func NewTerminal

func NewTerminal(cmd *exec.Cmd) *Terminal

func (*Terminal) Draw

func (t *Terminal) Draw(s tcell.Screen)

func (*Terminal) GetFocusable

func (t *Terminal) GetFocusable() cview.Focusable

func (*Terminal) HandleEvent

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

func (*Terminal) InputHandler

func (t *Terminal) InputHandler() func(event *tcell.EventKey, setFocus func(p cview.Primitive))

func (*Terminal) MouseHandler

func (t *Terminal) MouseHandler() func(action cview.MouseAction, event *tcell.EventMouse, setFocus func(p cview.Primitive)) (consumed bool, capture cview.Primitive)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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