Clear screen before displaying panel in stats mode.

This commit is contained in:
Kistaro Windrider 2023-04-02 19:37:55 -07:00
parent 2c2e68ff93
commit 74a2493ef4
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -375,6 +375,7 @@ func statsMode[C StatsCollection](p *Player[C]) error {
} else if v <= 0 || v > n { } else if v <= 0 || v > n {
fmt.Println("There's no info panel with that index.") fmt.Println("There's no info panel with that index.")
} else { } else {
cls()
err := displayOnePanel(p, p.InfoPanels[v-1]) err := displayOnePanel(p, p.InfoPanels[v-1])
errs.Add(err) errs.Add(err)
if IsSeriousError(err) { if IsSeriousError(err) {