diff options
| author | Yubao Liu <yubao.liu@gmail.com> | 2021-01-11 12:32:08 +0800 |
|---|---|---|
| committer | Yubao Liu <yubao.liu@gmail.com> | 2021-01-11 12:32:08 +0800 |
| commit | efc75ea3f3a7338fb5c87e70ce8c501fb0b3549a (patch) | |
| tree | f1b930d3910b1d1c84fa309b652b2cddda76d333 /vterm.el | |
| parent | b6592f94d76098d19f242c0d09f660f6a6461b76 (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.el | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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) |
