aboutsummaryrefslogtreecommitdiff
path: root/vterm.el
diff options
context:
space:
mode:
authorYubao Liu <yubao.liu@gmail.com>2021-01-11 12:32:08 +0800
committerYubao Liu <yubao.liu@gmail.com>2021-01-11 12:32:08 +0800
commitefc75ea3f3a7338fb5c87e70ce8c501fb0b3549a (patch)
treef1b930d3910b1d1c84fa309b652b2cddda76d333 /vterm.el
parentb6592f94d76098d19f242c0d09f660f6a6461b76 (diff)
fix cursor type after hide cursor and show again
This patch also adds support for cursor blink. VIM emits these ANSI escape sequences in insert mode: \x1b[?25h show cursor \x1b[?25l hide cursor
Diffstat (limited to 'vterm.el')
-rw-r--r--vterm.el11
1 files changed, 10 insertions, 1 deletions
diff --git a/vterm.el b/vterm.el
index 9371df7..3ea54bd 100644
--- a/vterm.el
+++ b/vterm.el
@@ -339,6 +339,14 @@ This means that vterm will render bold with the default face weight."
:type 'boolean
:group 'vterm)
+(defcustom vterm-ignore-blink-cursor t
+ "When t, vterm will ignore request from application to turn on or off cursor blink.
+
+If nil, cursor in any window may begin to blink or not blink because `blink-cursor-mode`
+is a global minor mode in Emacs, you can use `M-x blink-cursor-mode` to toggle."
+ :type 'boolean
+ :group 'vterm)
+
(defcustom vterm-copy-exclude-prompt t
"When not-nil, the prompt is not included by `vterm-copy-mode-done'."
:type 'boolean
@@ -627,7 +635,8 @@ Exceptions are defined by `vterm-keymap-exceptions'."
width vterm-max-scrollback
vterm-disable-bold-font
vterm-disable-underline
- vterm-disable-inverse-video))
+ vterm-disable-inverse-video
+ vterm-ignore-blink-cursor))
(setq buffer-read-only t)
(setq-local scroll-conservatively 101)
(setq-local scroll-margin 0)