From c73545fd07269b1dcf313bb6c762e965ba4711fa Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Sun, 2 Apr 2023 00:02:25 -0700 Subject: [PATCH] Implement screen clear. --- cardsim/terminalui.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cardsim/terminalui.go b/cardsim/terminalui.go index 7283528..5f29064 100644 --- a/cardsim/terminalui.go +++ b/cardsim/terminalui.go @@ -119,3 +119,7 @@ func pickNextAction[C StatsCollection](p *Player[C]) (isCard bool, cardIdx int, } return pickNextAction(p) } + +func cls() { + fmt.Println("\033[H\033[2J") +}