cterm

package
v0.0.0-...-806ab7b Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 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.Once
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewTerminal

func NewTerminal(cmd *exec.Cmd) *Terminal

func (*Terminal) Attach

func (t *Terminal) Attach(eventHandler func(ev tcell.Event))

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)

func (*Terminal) SetRect

func (t *Terminal) SetRect(x, y, w, h int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳