statusbar

package
v1.23.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) StatusBar

New creates a new StatusBar instance

func (*StatusBar) ClickedNewTab added in v1.23.4

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

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

func (*StatusBar) Height added in v1.23.4

func (s *StatusBar) Height() int

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

func (*StatusBar) InvalidateCache added in v1.20.0

func (s *StatusBar) InvalidateCache()

InvalidateCache clears all cached values.

func (*StatusBar) SetHelp added in v1.8.2

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

SetHelp sets the help provider for the status bar

func (*StatusBar) SetShowNewTab added in v1.23.4

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) cagent VERSION ]

Jump to

Keyboard shortcuts

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