Hello. Can somebody explain me about using (point) function or some equivalent in the term-mode buffers? :
emacs -Q
C-x 3
M-x ielm RET
C-x o
M-x term RET
RET (run /bin/bash by default)
C-c C-j (switch term to line mode)
C-x o (go back to ielm)
In the ielm:
(with-current-buffer "*terminal*"
(term-char-mode) ;; actually line/char mode doesn't change anything for this example
(message "1: %s %s" (point) (term-current-column))
(term-send-raw-string "asd")
(message "2: %s %s" (point) (term-current-column))
(term-send-left)
(term-send-left)
(message "3: %s %s" (point) (term-current-column))
(term-send-right)
(message "4: %s %s" (point) (term-current-column)))
All of the four messages gives me an equal numbers for point and term-current-column, while point(or cursor) actually moves on the screen.
Is it possible and if possible -- how to track the input point movement in a term-mode buffer ?