Best Practices
- •AltScreen Mode: Always use
tea.WithAltScreen()for full-screen apps to prevent polluting the user's terminal scrollback history. - •Unicode/Emoji Safety: Lipgloss can miscalculate width for double-width characters (emojis). Use
runewidth.StringWidth()for manual calculations if Lipgloss's default.Width()fails. - •Help Bubble: Use
bubbles/helpto automatically generate a keybinding footer. Do not hardcode help strings. - •Graceful Exit: Ensure
tea.Quitis the only way to exit so the terminal is properly restored from raw mode.