Get ansi-term working nicely