aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/term.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/term.el')
-rw-r--r--lisp/term.el15
1 files changed, 8 insertions, 7 deletions
diff --git a/lisp/term.el b/lisp/term.el
index 5259571eb6d..063a6ea592f 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -2901,15 +2901,16 @@ See `term-prompt-regexp'."
2901 ((eq char ?\017)) ; Shift In - ignored 2901 ((eq char ?\017)) ; Shift In - ignored
2902 ((eq char ?\^G) ;; (terminfo: bel) 2902 ((eq char ?\^G) ;; (terminfo: bel)
2903 (beep t)) 2903 (beep t))
2904 ((and (eq char ?\032) 2904 ((eq char ?\032)
2905 (not handled-ansi-message))
2906 (let ((end (string-match "\r?\n" str i))) 2905 (let ((end (string-match "\r?\n" str i)))
2907 (if end 2906 (if end
2908 (funcall term-command-hook 2907 (progn
2909 (decode-coding-string 2908 (unless handled-ansi-message
2910 (prog1 (substring str (1+ i) end) 2909 (funcall term-command-hook
2911 (setq i (1- (match-end 0)))) 2910 (decode-coding-string
2912 locale-coding-system)) 2911 (substring str (1+ i) end)
2912 locale-coding-system)))
2913 (setq i (1- (match-end 0))))
2913 (setq term-terminal-parameter (substring str i)) 2914 (setq term-terminal-parameter (substring str i))
2914 (setq term-terminal-state 4) 2915 (setq term-terminal-state 4)
2915 (setq i str-length)))) 2916 (setq i str-length))))