tui

package
v0.0.0-...-59956df Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Enabled = true

Functions

This section is empty.

Types

type Application

type Application struct {
	// contains filtered or unexported fields
}

func New

func New() *Application

func (*Application) Run

func (a *Application) Run() error

func (*Application) ShowError

func (a *Application) ShowError(err error)
type Modal struct {
	*tview.Box
	// contains filtered or unexported fields
}

func NewModal

func NewModal() *Modal

func (*Modal) Blur

func (m *Modal) Blur()

func (*Modal) Draw

func (m *Modal) Draw(screen tcell.Screen)

Draw draws this primitive onto the screen.

func (*Modal) Focus

func (m *Modal) Focus(delegate func(p tview.Primitive))

func (*Modal) HasFocus

func (m *Modal) HasFocus() bool

func (*Modal) SetDoneFunc

func (m *Modal) SetDoneFunc(f func(string, string)) *Modal

func (*Modal) SetText

func (m *Modal) SetText(text string) *Modal

func (*Modal) SetURL

func (m *Modal) SetURL(url string) *Modal

type Viewer

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

func NewViewer

func NewViewer(app *tview.Application, commandBar *tview.InputField, tab *tview.TextView, errFunc func(error)) *Viewer

func (*Viewer) IsFollowMode

func (v *Viewer) IsFollowMode() bool

func (*Viewer) Load

func (v *Viewer) Load(path string) error

func (*Viewer) SetInputModal

func (v *Viewer) SetInputModal(f func(url, text string))

func (*Viewer) ToggleFollowMode

func (v *Viewer) ToggleFollowMode()

func (*Viewer) ToggleSource

func (v *Viewer) ToggleSource()

Jump to

Keyboard shortcuts

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