Help us shape the future of Go! Take the 2026 Go Developer Survey

statusbar

package
v1.152.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option added in v1.44.0

type Option func(*StatusBar)

Option is a functional option for configuring a StatusBar.

func WithTitle added in v1.44.0

func WithTitle(title string) Option

WithTitle sets a custom title for the status bar.

If not provided, defaults to "docker agent".

type StatusBar

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

StatusBar displays key-binding help on the left and version info on the right. When the tab bar is hidden (single tab), it also shows a clickable "+ new tab" button.

func New

func New(help core.KeyMapHelp, opts ...Option) StatusBar

New creates a new StatusBar instance

func (*StatusBar) ClickedNewTab

func (s *StatusBar) ClickedNewTab(x int) bool

ClickedNewTab returns true if the given X coordinate hits the "+" button.

func (*StatusBar) Height

func (s *StatusBar) Height() int

Height returns the rendered height of the status bar (always 1).

func (*StatusBar) InvalidateCache

func (s *StatusBar) InvalidateCache()

InvalidateCache clears all cached values.

func (*StatusBar) SetHelp

func (s *StatusBar) SetHelp(help core.KeyMapHelp)

SetHelp sets the help provider for the status bar

func (*StatusBar) SetShowNewTab

func (s *StatusBar) SetShowNewTab(show bool)

SetShowNewTab controls whether the "+" button is shown.

func (*StatusBar) SetWidth

func (s *StatusBar) SetWidth(width int)

SetWidth sets the width of the status bar

func (*StatusBar) View

func (s *StatusBar) View() string

View renders the status bar.

Layout: [ help text ... (+ new tab) docker agent VERSION ]

Jump to

Keyboard shortcuts

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