Terminal putchar, clear and internal color state