Handle emacs prompt quirks.