all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Setting cursor shape in terminals.
@ 2015-10-15  4:49 Random832
  2015-10-15 15:36 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Random832 @ 2015-10-15  4:49 UTC (permalink / raw)
  To: help-gnu-emacs


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




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Setting cursor shape in terminals.
  2015-10-15  4:49 Setting cursor shape in terminals Random832
@ 2015-10-15 15:36 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2015-10-15 15:36 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Random832 <random832@fastmail.com>
> Date: Thu, 15 Oct 2015 00:49:10 -0400
> 
> 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.

I don't think you can do that.  Emacs doesn't support changing the
cursor shape on text-mode terminals.  I suggest to request a feature
by posting a bug report via "M-x report-emacs-bug RET".



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-15 15:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-15  4:49 Setting cursor shape in terminals Random832
2015-10-15 15:36 ` Eli Zaretskii

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.