emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/coterm f1cc63e 12/80: Support \e[6n for reporting curso


From: ELPA Syncer
Subject: [elpa] externals/coterm f1cc63e 12/80: Support \e[6n for reporting cursor position
Date: Wed, 13 Oct 2021 18:57:26 -0400 (EDT)

branch: externals/coterm
commit f1cc63e6665f201305c263df83719ad46c8556b5
Author: m <>
Commit: m <>

    Support \e[6n for reporting cursor position
---
 coterm.el | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/coterm.el b/coterm.el
index 25478df..2ebdcb8 100644
--- a/coterm.el
+++ b/coterm.el
@@ -417,7 +417,14 @@ initialize it sensibly."
                             ;; (49 ;; (terminfo: rmcup)
                             ;;  (coterm-t-switch-to-alternate-sub-buffer nil))
                             (4 ;; (terminfo: rmir)
-                             (setq coterm-t-insert-mode nil))))))))))))
+                             (setq coterm-t-insert-mode nil))))
+                         (?n ;; \E[6n - Report cursor position (terminfo: u7)
+                          (process-send-string
+                           process
+                           ;; (terminfo: u6)
+                           (format "\e[%s;%sR"
+                                   (1+ coterm--t-row)
+                                   (1+ coterm--t-col))))))))))))
 
             (cond
              ((setq match (string-match coterm-t-control-seq-prefix-regexp



reply via email to

[Prev in Thread] Current Thread [Next in Thread]