I am trying to use ansi-term in emacs (configured to tcsh shell). I see some issues with newline characters being displayed. If I try the following from the terminal (ansi-term), I get the correct output:
myterm > echo "Line1"; echo "Line2"; echo "Line3";
echo "Line1"; echo "Line2"; echo "Line3";
myterm > ./test
(setq default-process-coding-system '((utf-8-unix . utf-8-unix)))
You need to
stty onlcr in your script.
I will leave the forensics of exactly where this is being unset in the tcsh environment as a exercise for the questioner ;)