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