Documentation
¶
Overview ¶
Package layout computes terminal layout metrics for codexsm TUI rendering.
Index ¶
Constants ¶
View Source
const ( // MinWidth is the minimal terminal width required by TUI. // The current TUI needs more than the theoretical keybar width once // border/padding, proportional pane split, and terminal-edge autowrap // behavior are accounted for. Keep a small safety margin so boundary // widths fall back to the min-size warning instead of partial rendering. MinWidth = 134 // MinHeight is the minimal terminal height required by TUI. MinHeight = 24 )
Variables ¶
This section is empty.
Functions ¶
func IsTooSmall ¶
IsTooSmall reports whether current terminal size is below supported bounds.
func NormalizeSize ¶
NormalizeSize applies fallback values when terminal size is unavailable.
func RenderWidth ¶ added in v0.2.5
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 ¶
Click to show internal directories.
Click to hide internal directories.