tui

package
v0.0.0-...-991d2c5 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Types

type Tab

type Tab struct {
	Title        string
	Content      *widgets.List
	AutoScroll   bool
	Mut          sync.RWMutex
	HistoryLimit int
	Scanner      *bufio.Scanner
}

func (*Tab) LengthEnforcer

func (tab *Tab) LengthEnforcer()

func (*Tab) Resize

func (tab *Tab) Resize(w, h int)

func (*Tab) Writer

func (tab *Tab) Writer()

type TabOpts

type TabOpts struct {
	Title        string
	HistoryLimit int
	Scanner      *bufio.Scanner
}

type Tui

type Tui struct {
	Header      *widgets.Paragraph
	ActiveTab   int
	Tabs        []*Tab
	TabPane     *widgets.TabPane
	Keymap      *widgets.Paragraph
	Error       *widgets.Paragraph
	ExitMessage *widgets.Paragraph
	// contains filtered or unexported fields
}

func Init

func Init(opts TuiOpts) (*Tui, error)

func (*Tui) AddTab

func (tui *Tui) AddTab(opts TabOpts) error

func (*Tui) Start

func (tui *Tui) Start() error

type TuiOpts

type TuiOpts struct {
	Header      string
	RefreshRate int
}

Jump to

Keyboard shortcuts

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