Documentation
¶
Overview ¶
Package ui is the fullscreen Bubble Tea interface: status bar, message viewport, input line. Scrollback lives in the viewport (not the terminal's), so paging keys and spoiler re-rendering are handled here.
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 Bubble Tea root model.
func (Model) Denied ¶
Denied returns the server's entry-gate notice (supporter-only, under 18, e-mail not validated, banned) as terminal text when that is why the client stopped, else "". main prints it after the program exits: the notice is the whole answer and nothing in the TUI can act on it.
func (Model) SignedOut ¶
SignedOut reports whether the client stopped because the site refused the remember cookie. main reads it after the program exits.
type Options ¶
type Options struct {
// Channel is the name shown in the status bar and placeholder.
Channel string
// Quiet suppresses the terminal bell on mentions and DMs.
Quiet bool
// Theme colors the screen; the zero value means theme.Default().
Theme theme.Theme
// Splash is the opening animation; nil plays none.
Splash splash.Effect
}
Options configures the UI beyond the client it wraps.