X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-5.1 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <50eb1c84.44be440a.27d8.18c2SMTPIN_ADDED_BROKEN@mx.google.com>
References: <50eb1c84.44be440a.27d8.18c2SMTPIN_ADDED_BROKEN@mx.google.com>
Date: Tue, 8 Jan 2013 12:32:09 +0000
Message-ID: <CAHWeT-aHUGHXd9wU_jcAXsZVyJETtd2unpv-d2yYpdTwFhFKfw@mail.gmail.com>
Subject: Re: hiding cursor on text terminals
From: Andy Koppe <andy.koppe@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 7 January 2013 18:24, 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

--
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

