tui

package
v0.40.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionLogScreen      = ActionName("log_screen")
	ActionFollowLog      = ActionName("log_follow")
	ActionWrapLog        = ActionName("log_wrap")
	ActionLogSelection   = ActionName("log_select")
	ActionProcessStart   = ActionName("process_start")
	ActionProcessInfo    = ActionName("process_info")
	ActionProcessStop    = ActionName("process_stop")
	ActionProcessRestart = ActionName("process_restart")
	ActionProcessScreen  = ActionName("process_screen")
	ActionQuit           = ActionName("quit")
)
View Source
const (
	LogFull     FullScrState = 0
	ProcFull                 = 1
	LogProcHalf              = 2
)
View Source
const (
	PageMain   = "main"
	PageDialog = "dialog"
)

Variables

This section is empty.

Functions

func SetupTui

func SetupTui()

func Stop added in v0.21.0

func Stop()

Types

type Action added in v0.24.0

type Action struct {
	Description       string          //`yaml:"description,omitempty"`
	ToggleDescription map[bool]string //`yaml:"toggle_description,omitempty"`
	ShortCut          string          `yaml:"shortcut"`
	// contains filtered or unexported fields
}

type ActionName added in v0.24.0

type ActionName string

type FullScrState added in v0.17.0

type FullScrState int

type LogView added in v0.10.0

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

func NewLogView added in v0.10.0

func NewLogView(maxLines int) *LogView

func (*LogView) AddLine added in v0.10.0

func (l *LogView) AddLine(line string)

func (*LogView) AddLines added in v0.10.0

func (l *LogView) AddLines(lines []string)

func (*LogView) Flush added in v0.10.0

func (l *LogView) Flush()

func (*LogView) IsWrapOn added in v0.10.0

func (l *LogView) IsWrapOn() bool

func (*LogView) SetLines added in v0.10.0

func (l *LogView) SetLines(lines []string)

func (*LogView) ToggleWrap added in v0.10.0

func (l *LogView) ToggleWrap()

type ShortCuts added in v0.24.0

type ShortCuts struct {
	ShortCutKeys map[ActionName]*Action `yaml:"shortcuts"`
}

Jump to

Keyboard shortcuts

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