www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/01/08/10:16:46

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
X-Mail-Handler: Dyn Standard SMTP by Dyn
X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX18cwaCsnjFvzPHT85yPSu2g
Date: Tue, 8 Jan 2013 10:16:17 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: RES: hiding cursor on text terminals
Message-ID: <20130108151617.GA18749@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <50eb1c84 DOT 44be440a DOT 27d8 DOT 18c2SMTPIN_ADDED_BROKEN AT mx DOT google DOT com> <CAHWeT-aHUGHXd9wU_jcAXsZVyJETtd2unpv-d2yYpdTwFhFKfw AT mail DOT gmail DOT com> <004901cdedad$2cf6f680$86e4e380$@sanchez AT itautec DOT com>
MIME-Version: 1.0
In-Reply-To: <004901cdedad$2cf6f680$86e4e380$@sanchez@itautec.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Tue, Jan 08, 2013 at 12:33:49PM -0200, Damian Rodriguez Sanchez wrote:
>>> I have compiled a Linux ncurses gcc application on Cygwin. Everything works
>>> fine except for curs_set(0) calls which do not hide the cursor on text mode
>>> terminals (they work on X though). Does anybody know of a way to achieve
>>> this, even if it's not a portable solution?
>>
>>What terminals have you tried running it in? There's a DEC control
>>sequence called DECTCEM for hiding or showing the cursor, which is
>>implemented in mintty (the default Cygwin terminal), xterm, rxvt, and
>>presumably others.
>>
>>However, it isn't implemented in the Cygwin console layer used when
>>running a Cygwin program in a console window. (It could probably be
>>implemented in the Cygwin DLL using Windows' SetConsoleCursorInfo()
>>function.)
>>
>>Andy
>
>Well, I've tried using things like printf("\e[?25l") and
>printf("\e[?25h") in my code, if that's what you mean.
>But, yes, just like curs_set(), it only works on terminals
>running in graphics mode, not in the console windows.
>
>I wonder why it hasn't been implemented.

Probably just sheer orneriness.  We like to leave some things undone
just to mess with people's minds.

cgf

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019