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

tui

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Colors
	ColorUser   = lipgloss.Color("#87d7af") // Soft Green
	ColorAI     = lipgloss.Color("#87afff") // Soft Blue
	ColorSystem = lipgloss.Color("#767676") // Grey
	ColorError  = lipgloss.Color("#ff5f5f") // Soft Red
	ColorHeader = lipgloss.Color("#bd93f9") // Purple
	ColorBorder = lipgloss.Color("#444444") // Dark Grey

)

Functions

This section is empty.

Types

type Message

type Message struct {
	internal.Message
	Rendered string
}

Message represents a chat message with its rendered view.

type Model

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

Model is the Bubble Tea model for the chat application.

func NewModel

func NewModel(client *internal.Client, cfg *config.Config, _ *storage.Store) Model

NewModel initializes the TUI model.

func (Model) Init

func (m Model) Init() tea.Cmd

Init initializes the program.

func (Model) Update

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

Update handles events.

func (Model) View

func (m Model) View() string

View renders the UI.

Jump to

Keyboard shortcuts

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