* Point manipulations in the term-mode buffer.
@ 2014-11-12 18:27 Constantin Kulikov
0 siblings, 0 replies; only message in thread
From: Constantin Kulikov @ 2014-11-12 18:27 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 949 bytes --]
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 ?
[-- Attachment #2: Type: text/html, Size: 1305 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-11-12 18:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-12 18:27 Point manipulations in the term-mode buffer Constantin Kulikov
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).