func (s *Display) CleanUp() { ansi.ClearScreen() ansi.ShowCursor() ansi.SetForeground(ansi.BLACK) ansi.SetBackground(ansi.BRIGHT | ansi.WHITE) exec.Command("setfont").Run() }
func (s *Display) init() { if err := exec.Command("setfont", "-h4").Run(); err != nil { log.Panicln("Failed to set font height") } ansi.HideCursor() ansi.ClearScreen() ansi.DefineColor(ansi.BLACK, 0x000000) ansi.DefineColor(ansi.BLUE, 0x555555) ansi.DefineColor(ansi.CYAN, 0xAAAAAA) ansi.DefineColor(ansi.WHITE, 0xFFFFFF) s.initOffset() }