add color.py library, some functions from gui2term.py