0 is a valid fg/bg color
also handle bold/italic/underline