@@ -41,6 +41,10 @@ type WOPR struct {
StopIt chan bool
}
+func (w *WOPR) Clear() string {
+ return w.ElapsedPanel.Clear() + w.RemainingPanel.Clear()
+}
+
// Initialize, Set X, Y on Panels, Animate()
// Initialize, and create panels
@@ -725,6 +725,8 @@ func main() {
option := mainmenu.GetOption(choice)
wopr.Stop()
+ // Clear WOPR panels.
+ d.Write(door.Reset + wopr.Clear())
// fmt.Printf("Choice: %d, Option: %c\n", choice, option)