From 74a2493ef4396426f7ccf2f41239e71e13058f0a Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Sun, 2 Apr 2023 19:37:55 -0700 Subject: [PATCH] Clear screen before displaying panel in stats mode. --- cardsim/terminalui.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cardsim/terminalui.go b/cardsim/terminalui.go index 028b8e7..1c77f09 100644 --- a/cardsim/terminalui.go +++ b/cardsim/terminalui.go @@ -375,6 +375,7 @@ func statsMode[C StatsCollection](p *Player[C]) error { } else if v <= 0 || v > n { fmt.Println("There's no info panel with that index.") } else { + cls() err := displayOnePanel(p, p.InfoPanels[v-1]) errs.Add(err) if IsSeriousError(err) {