From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Setting cursor shape in terminals. Date: Thu, 15 Oct 2015 18:36:14 +0300 Message-ID: <83r3kw87pt.fsf@gnu.org> References: <878u74ka7t.fsf@fastmail.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1444923475 6244 80.91.229.3 (15 Oct 2015 15:37:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Oct 2015 15:37:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 15 17:37:47 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZmkbC-0001Ph-6N for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Oct 2015 17:37:46 +0200 Original-Received: from localhost ([::1]:48169 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmkbB-0005x7-Le for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Oct 2015 11:37:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmkZp-0005os-Sm for help-gnu-emacs@gnu.org; Thu, 15 Oct 2015 11:36:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZmkZl-0006kH-MC for help-gnu-emacs@gnu.org; Thu, 15 Oct 2015 11:36:21 -0400 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:39774) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmkZl-0006j4-80 for help-gnu-emacs@gnu.org; Thu, 15 Oct 2015 11:36:17 -0400 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NW900K00Q0WD700@mtaout26.012.net.il> for help-gnu-emacs@gnu.org; Thu, 15 Oct 2015 18:39:23 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NW900ICVQ5NIZ20@mtaout26.012.net.il> for help-gnu-emacs@gnu.org; Thu, 15 Oct 2015 18:39:23 +0300 (IDT) In-reply-to: <878u74ka7t.fsf@fastmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.182 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107654 Archived-At: > From: Random832 > 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".