charmbracelet / bubbletea

A powerful little TUI framework 🏗
MIT License
25.65k stars 744 forks source link

fix: program renderer commands #1030

Closed aymanbagabas closed 1 month ago

aymanbagabas commented 1 month ago

Using program commands like p.EnableMouseCellMotion and p.SetWindowTitle before the program starts can panic the application since renderer hasn't been initialized yet. Use program options to enable and set these options if renderer is not initialized.

Fixes: https://github.com/charmbracelet/bubbletea/issues/1029