From: Random832 <random832@fastmail.com>
To: help-gnu-emacs@gnu.org
Subject: Setting cursor shape in terminals.
Date: Thu, 15 Oct 2015 00:49:10 -0400 [thread overview]
Message-ID: <878u74ka7t.fsf@fastmail.com> (raw)
I have a script (modified from the one posted in discussion section of
Emacs Wiki linked below) for changing the cursor shape depending on
whether I am in a read-only buffer or in overwrite mode. It's set to box
for read-only, hbar for overwrite, bar otherwise.
It works well in the GUI, but I would like to extend it to terminal
mode. My terminal (this seems to be something of a standard) allows the
escape sequence ESC [ n SPC q, where n is:
- 0 default
- 1 box blinking
- 2 box non-blinking
- 3 hbar blinking
- 4 hbar non-blinking
- 5 bar [extension of iTerm2]
- 6 bar non-blinking
I don't know enough to know where to even look for how to add a way for
Emacs to emit these escape sequences whenever the cursor changes.
http://emacswiki.org/emacs/ChangingCursorDynamically
next reply other threads:[~2015-10-15 4:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-15 4:49 Random832 [this message]
2015-10-15 15:36 ` Setting cursor shape in terminals Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878u74ka7t.fsf@fastmail.com \
--to=random832@fastmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.