statusbar

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 7 Imported by: 0

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 the status bar component.

func New

func New(s *store.Store, th *theme.Theme) Model

New creates a new status bar model.

func (*Model) SetActiveChatId

func (m *Model) SetActiveChatId(chatID int64)

SetActiveChatId sets the currently viewed chat.

func (*Model) SetConnected

func (m *Model) SetConnected(connected bool)

SetConnected sets the connection indicator directly.

func (*Model) SetSize

func (m *Model) SetSize(width int)

SetSize sets the component width.

func (*Model) SetUserName

func (m *Model) SetUserName(name string)

SetUserName sets the current user's display name.

func (Model) TypingIndicator

func (m Model) TypingIndicator() string

TypingIndicator returns a typing indicator string for the active chat.

func (Model) Update

func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)

Update handles messages.

func (Model) View

func (m Model) View() string

View renders the status bar.

Jump to

Keyboard shortcuts

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