Refactor TERMINAL_MODE constants .. to TERMINAL_SET ...