From ba0a9005b1cb9d3cb6441045a7cc589560551cc0 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Mon, 20 Nov 2017 18:46:00 +0300 Subject: [PATCH] prevent ansi code zero error --- ui.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ui.go b/ui.go index 9a8063e..542506f 100644 --- a/ui.go +++ b/ui.go @@ -23,6 +23,7 @@ import ( const gEscapeCode = 27 var gAnsiCodes = map[int]termbox.Attribute{ + 0: termbox.ColorDefault, 1: termbox.AttrBold, 4: termbox.AttrUnderline, 7: termbox.AttrReverse,