editor

package module
v0.0.0-...-2eb5832 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: MIT Imports: 3 Imported by: 0

README

tview-editor

A simple multi-line editor primitive for tview.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Editor

type Editor struct {
	*tview.TextView
	// contains filtered or unexported fields
}

func NewEditor

func NewEditor() *Editor

func (*Editor) AddHandler

func (e *Editor) AddHandler(handler handlerFunc)

func (*Editor) Draw

func (e *Editor) Draw(screen tcell.Screen)

func (*Editor) GetEditorText

func (e *Editor) GetEditorText() string

func (*Editor) GetHandlers

func (e *Editor) GetHandlers() []handlerFunc

func (*Editor) SetHandlers

func (e *Editor) SetHandlers(handlers []handlerFunc)

func (*Editor) SetSelectable

func (e *Editor) SetSelectable(selectable bool)

func (*Editor) SetText

func (e *Editor) SetText(text string)

func (*Editor) SetTitle

func (e *Editor) SetTitle(text string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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