editorview

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

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

Go to latest
Published: Jul 10, 2021 License: GPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultHelpMessage = `` /* 334-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func Escape

func Escape(s string) string

func PlainText

func PlainText(s string) string

Types

type Editor

type Editor struct {
	Screen      tcell.Screen
	EventFilter func(tcell.Event) []tcell.Event
	HelpMessage string
	// contains filtered or unexported fields
}

func (*Editor) Content

func (e *Editor) Content() string

func (*Editor) Edit

func (e *Editor) Edit(s string) (string, error)

func (*Editor) SetContent

func (e *Editor) SetContent(s string)

Jump to

Keyboard shortcuts

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