shiena / ansicolor

Ansicolor library provides color console in Windows as ANSICON for Golang.
https://pkg.go.dev/github.com/shiena/ansicolor
MIT License
229 stars 40 forks source link

(refs #7) Output unknown esc code #8

Closed shiena closed 9 years ago

shiena commented 9 years ago

ansicolor compatibility will be lost when the output of the unknown escape sequence. For that reason, I've prepared two modes.

DiscardNonColorEscSeq is the same output as before. OutputNonColorEscSeq outputs the unknown escape sequence, but does not support the divided escape sequence as shown in the following test case. https://github.com/shiena/ansicolor/blob/unknown_esc_code/ansicolor_windows_test.go#L70