commit 2415e2c569863079e50f18cd2f24f96493773eb1 parent 8497b7811a35b273ad523ebd1dfe55c8a38307f7 Author: FIGBERT <figbert@figbert.com> Date: Wed, 8 Dec 2021 11:10:15 -0800 Run TUI in the alt screen Diffstat:
M | main.go | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/main.go b/main.go @@ -30,7 +30,7 @@ func (m model) View() string { func main() { rand.Seed(time.Now().UnixNano()) - if err := tea.NewProgram(model{}).Start(); err != nil { + if err := tea.NewProgram(model{}, tea.WithAltScreen()).Start(); err != nil { log.Fatal(err) } }