From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.devel Subject: Re: Block cursor in a tty Date: Sun, 25 Dec 2005 05:21:48 +0200 Message-ID: <20051225032148.GA3072@flame.pc> References: <87lkydexxv.fsf-monnier+emacs@gnu.org> <20051223153845.GA58153@flame.pc> <20051224042643.GB3972@flame.pc> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1135491708 16298 80.91.229.2 (25 Dec 2005 06:21:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 25 Dec 2005 06:21:48 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 25 07:21:47 2005 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EqPGN-0002bE-9k for ged-emacs-devel@m.gmane.org; Sun, 25 Dec 2005 07:21:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EqPHV-0002gd-Pp for ged-emacs-devel@m.gmane.org; Sun, 25 Dec 2005 01:22:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EqMUY-0003aL-Kz for emacs-devel@gnu.org; Sat, 24 Dec 2005 22:24:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EqMUY-0003a9-0J for emacs-devel@gnu.org; Sat, 24 Dec 2005 22:24:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EqMUX-0003a6-SL for emacs-devel@gnu.org; Sat, 24 Dec 2005 22:24:13 -0500 Original-Received: from [195.170.0.93] (helo=aiolos.otenet.gr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EqMU5-0004LE-Im; Sat, 24 Dec 2005 22:23:45 -0500 Original-Received: from flame.pc (patr530-a021.otenet.gr [212.205.215.21]) by aiolos.otenet.gr (8.13.4/8.13.4/Debian-8) with ESMTP id jBP3Mwaj008323; Sun, 25 Dec 2005 05:22:58 +0200 Original-Received: by flame.pc (Postfix, from userid 1001) id D5C381178B; Sun, 25 Dec 2005 05:21:48 +0200 (EET) Original-To: "Richard M. Stallman" Content-Disposition: inline In-Reply-To: X-Mailman-Approved-At: Sun, 25 Dec 2005 01:22:48 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:48347 Archived-At: I would not object to having an option to turn off use of vs. However, it will be nontrivial to implement one, since term_init is called before any Lisp code runs. So it can't be controlled by the init file. Currently, term_init sets TS_cursor_visible to tgetstr("vs", address), which then gets used in set_terminal_modes(). We could probably add term_init_cursor() and arrange for it to be called twice, once with the default "vs" capability before the init file is loaded and once if the init file specifies something different later on. By making an option that the init file can use to make TS_cursor_visible equal to TS_cursor_normal, we're set :) I'm not very acquainted with the way the terminal handling works though, so it may take a time before I have a patch ready and tested. - Giorgos