When using eshell, if I run a command that outputs colored text, sometimes eshell will get 'stuck' in that color. For example if I use ack and press Ctrl+C before the output finishes this will happen. Is there something I can put in eshell-before-prompt-hook or elsewhere so that it will always close any left over coloring before drawing the prompt?
Edit: I've discovered that if I run "clear" (which which says is /usr/bin/clear, not an eshell builtin) the prompt goes bck to normal. Now if I could just automate this ;) I tried running
(eshell-command "clear") in
eshell-before-prompt-hook but it didn't help.