Variable: term-char-mode-point-at-process-mark
term-char-mode-point-at-process-mark is a customizable variable
defined in term.el.gz.
Value
t
Documentation
If non-nil, keep point at the process mark in char mode.
A non-nil value causes point to be moved to the current process
mark after each command in term-char-mode (provided that the
pre-command point position was also at the process mark). This
prevents commands that move point from making the buffer state
inconsistent with the state of the terminal understood by the
inferior process.
Mouse events are not affected, so moving point and selecting text is still possible in char mode via the mouse, after which other commands can be invoked on the mouse-selected point or region, until the process filter (or user) moves point to the process mark once again.
Customize this option to nil if you want the previous behavior.
This variable was added, or its default value changed, in Emacs 26.1.
Probably introduced at or before Emacs version 26.1.
Source Code
;; Defined in /usr/src/emacs/lisp/term.el.gz
(defcustom term-char-mode-point-at-process-mark t
"If non-nil, keep point at the process mark in char mode.
A non-nil value causes point to be moved to the current process
mark after each command in `term-char-mode' (provided that the
pre-command point position was also at the process mark). This
prevents commands that move point from making the buffer state
inconsistent with the state of the terminal understood by the
inferior process.
Mouse events are not affected, so moving point and selecting text
is still possible in char mode via the mouse, after which other
commands can be invoked on the mouse-selected point or region,
until the process filter (or user) moves point to the process
mark once again.
Customize this option to nil if you want the previous behavior."
:version "26.1"
:type 'boolean
:group 'term)