prevent ansi code zero error
This commit is contained in:
parent
9b7bf63096
commit
ba0a9005b1
1
ui.go
1
ui.go
@ -23,6 +23,7 @@ import (
|
|||||||
const gEscapeCode = 27
|
const gEscapeCode = 27
|
||||||
|
|
||||||
var gAnsiCodes = map[int]termbox.Attribute{
|
var gAnsiCodes = map[int]termbox.Attribute{
|
||||||
|
0: termbox.ColorDefault,
|
||||||
1: termbox.AttrBold,
|
1: termbox.AttrBold,
|
||||||
4: termbox.AttrUnderline,
|
4: termbox.AttrUnderline,
|
||||||
7: termbox.AttrReverse,
|
7: termbox.AttrReverse,
|
||||||
|
Loading…
Reference in New Issue
Block a user