branch: externals/coterm
commit d5042f649983f5e08b931038f965a0af3e1979a9
Author: m <>
Commit: m <>
Inhibit Emacs from automatically decoding \r\n into \n
---
coterm.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/coterm.el b/coterm.el
index d1ead36..61b3c3b 100644
--- a/coterm.el
+++ b/coterm.el
@@ -147,12 +147,13 @@ variables `coterm-term-name' and `coterm-termcap-format'."
ret)))
(setq coterm-start-process-function
(lambda (name buffer command &rest switches)
- (apply #'start-file-process name buffer
- ;; Adapted from `term-exec-1'
- "sh" "-c"
- (format "stty -nl sane -echo 2>%s;\
+ ;; Adapted from `term-exec-1'
+ (let ((inhibit-eol-conversion t))
+ (apply #'start-file-process name buffer
+ "sh" "-c"
+ (format "stty -nl sane -echo 2>%s;\
if [ $1 = .. ]; then shift; fi; exec \"$@\"" null-device)
- ".." command switches))))
+ ".." command switches)))))
(remove-hook 'comint-mode-hook #'coterm--init)
(setq coterm-term-environment-function #'comint-term-environment)