Fixes to fix strange coloring issues with emacs ansi-term