page_view

package
v0.0.0-...-00ef510 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNewPageViewPageModel - page model construct error
	ErrNewPageViewPageModel = errors.New(`page_view.Init: page model "New" method returned error`)

	// ErrNewPageViewTermBoxDecorator - term box decorator init error
	ErrNewPageViewTermBoxDecorator = errors.New(`page_view.Init: termbox "Init" method returned error`)
)
View Source
var (
	// ErrRunProcess - PageView.process method returned error
	ErrRunProcess = errors.New(`PageView.Run.process call error`)

	// ErrRunTermBoxFlush - term box Flush method returned error
	ErrRunTermBoxFlush = errors.New(`PageView.Run: termbox.Flush call error`)
)
View Source
var (
	// ErrUpdateTermBoxClear - TermBoxDecorator.Clear method returned error
	ErrUpdateTermBoxClear = errors.New(`update: TermBoxDecorator.Clear method returned error`)

	// ErrUpdatePageModelUpdate - PageModel.Update method returned error
	ErrUpdatePageModelUpdate = errors.New(`update: PageModel.Update method returned error`)
)
View Source
var ErrProcessUpdate = errors.New(`PageView.process: update call error`)

ErrProcessUpdate - update method returned error

Functions

This section is empty.

Types

type PageView

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

PageView renders page of text

func NewPageView

func NewPageView(termBoxDecor tbd.TermBoxDecorator, appName coty.NameApp, pageBody page.Body) (*PageView, error)

NewPageView constructs PageView object

func (*PageView) Run

func (pv *PageView) Run() error

Run starts display help page session

Jump to

Keyboard shortcuts

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