lib.py - add class colors_enabled for terminal.