Function: term-line-mode
term-line-mode is an interactive and byte-compiled function defined in
term.el.gz.
Signature
(term-line-mode)
Documentation
Switch to line ("cooked") sub-mode of term mode.
This means that Emacs editing commands work as normally, until
you type M-x term-send-input (term-send-input) which sends the current line to the inferior.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/term.el.gz
(defun term-line-mode ()
"Switch to line (\"cooked\") sub-mode of term mode.
This means that Emacs editing commands work as normally, until
you type \\[term-send-input] which sends the current line to the inferior."
(interactive)
(when (term-in-char-mode)
(when term-char-mode-buffer-read-only
(setq buffer-read-only term-line-mode-buffer-read-only))
(remove-hook 'pre-command-hook #'term-set-goto-process-mark t)
(remove-hook 'post-command-hook #'term-goto-process-mark-maybe t)
(use-local-map term-old-mode-map)
(term-update-mode-line)))