Documentation
¶
Index ¶
- Constants
- func DefaultThemeName() string
- func IsTooSmall(width, height int) bool
- func NewCommand(deps CommandDeps) *cobra.Command
- func NormalizeSize(width, height int) (int, int)
- func RenderWidth(width int) int
- func ValidateTheme(cfgName string, cfgColors map[string]string, flagName string, ...) error
- type CommandDeps
- type Metrics
Constants ¶
View Source
const ( // MinWidth is the minimal terminal width required by TUI. // This is driven by the main panes, not the keybar. The keybar can degrade // to shorter variants at narrower widths, so the minimum should reflect the // actual split-pane layout requirement plus the terminal-edge safety margin. MinWidth = 118 // MinHeight is the minimal terminal height required by TUI. MinHeight = 24 )
Variables ¶
This section is empty.
Functions ¶
func DefaultThemeName ¶
func DefaultThemeName() string
func IsTooSmall ¶ added in v0.3.1
IsTooSmall reports whether current terminal size is below supported bounds.
func NewCommand ¶
func NewCommand(deps CommandDeps) *cobra.Command
func NormalizeSize ¶ added in v0.3.1
NormalizeSize applies fallback values when terminal size is unavailable.
func RenderWidth ¶ added in v0.3.1
RenderWidth returns a width safe for rendering without hitting the terminal's last column, which can trigger autowrap and break borders in some terminals.
Types ¶
type CommandDeps ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.