From 0612074abee2392da57a0ed0a79cd3046ec5f298 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 25 Sep 2016 18:11:35 +0900 Subject: [PATCH] Support high intensity colors Close #671 --- src/ansi.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ansi.go b/src/ansi.go index 0a52567..b870fe6 100644 --- a/src/ansi.go +++ b/src/ansi.go @@ -140,6 +140,10 @@ func interpretCode(ansiCode string, prevState *ansiState) *ansiState { state.fg = num - 30 } else if num >= 40 && num <= 47 { 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: