Support high intensity colors

Close #671
This commit is contained in:
Junegunn Choi 2016-09-25 18:11:35 +09:00
parent 3bf51d8362
commit 0612074abe
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -140,6 +140,10 @@ func interpretCode(ansiCode string, prevState *ansiState) *ansiState {
state.fg = num - 30 state.fg = num - 30
} else if num >= 40 && num <= 47 { } else if num >= 40 && num <= 47 {
state.bg = num - 40 state.bg = num - 40
} else if num >= 90 && num <= 97 {
state.fg = num - 90 + 8
} else if num >= 100 && num <= 107 {
state.bg = num - 100 + 8
} }
} }
case 1: case 1: