Documentation
¶
Index ¶
- type LogLineMsg
- type Model
- func (m Model) BorderView(width, height int) string
- func (m Model) Buffer() *buffer
- func (m Model) Focused() bool
- func (m *Model) NewLogger(w *Writer) *log.Logger
- func (m *Model) SetFocused(f bool)
- func (m *Model) SetSize(w, h int)
- func (m *Model) SetTheme(t theme.Theme) *log.Styles
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
- func (m Model) Wrap() bool
- type Styles
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogLineMsg ¶
type LogLineMsg struct{}
LogLineMsg signals the TUI to re-render after new log output.
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is a Bubble Tea model that displays log lines in a bordered panel.
func (Model) BorderView ¶
BorderView renders the panel with its own border.
func (Model) Buffer ¶
func (m Model) Buffer() *buffer
Buffer returns the underlying buffer pointer (for sharing with Writer).
func (*Model) NewLogger ¶
NewLogger returns a charmbracelet/log Logger that writes styled output into this panel's buffer. Pass the returned logger to log.SetDefault or use it directly so all log calls are captured and rendered with theme-derived colors.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer implements io.Writer and feeds log output into a shared buffer.
func (*Writer) SetProgram ¶
SetProgram sets the tea.Program used to send re-render messages.
Click to show internal directories.
Click to hide internal directories.