add support for setting TERM from COLORTERM