statusbar

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

Model is a status bar model.

func New

func New(c common.Common) *Model

New creates a new status bar component.

func (*Model) Init

func (s *Model) Init() tea.Cmd

Init implements tea.Model.

func (*Model) SetSize

func (s *Model) SetSize(width, height int)

SetSize implements common.Component.

func (*Model) SetStatus

func (s *Model) SetStatus(key, value, info, extra string)

SetStatus sets the status bar status.

func (*Model) Update

func (s *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update implements tea.Model.

func (*Model) View

func (s *Model) View() string

View implements tea.Model.

Jump to

Keyboard shortcuts

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