http://www.perlmonks.org?node_id=129702


in reply to problem: emacs interactive shell and cpan

I am not sure if I understand you right, but for a similar problem I used this little snippet for XEmacs:

;; stop ^M from appearing in shell window (add-hook 'comint-output-filter-functions 'shell-strip-ctrl-m nil t)

Christian Lemburg
Brainbench MVP for Perl
http://www.brainbench.com