I'm writing a program supporting both interactive/non-interactive mode (e.g. the cli is running in a pipe), the following init function crashes my program in non-interactive mode:
func init() {
if !term.SupportANSI() {
panic("Your terminal does not support ANSI")
}
}