X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=2.4 required=5.0	tests=AWL,BAYES_05,KHOP_THREADED,MIME_QP_LONG_LINE,MSGID_MULTIPLE_AT,RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
From: Damian Rodriguez Sanchez <damian.sanchez@itautec.com>
To: <cygwin@cygwin.com>
References: <50eb1c84.44be440a.27d8.18c2SMTPIN_ADDED_BROKEN@mx.google.com> <CAHWeT-aHUGHXd9wU_jcAXsZVyJETtd2unpv-d2yYpdTwFhFKfw@mail.gmail.com>
In-Reply-To: <CAHWeT-aHUGHXd9wU_jcAXsZVyJETtd2unpv-d2yYpdTwFhFKfw@mail.gmail.com>
Subject: RES: hiding cursor on text terminals
Date: Tue, 8 Jan 2013 12:33:49 -0200
Message-ID: <004901cdedad$2cf6f680$86e4e380$@sanchez@itautec.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
x-cr-hashedpuzzle: AGPy AZa1 AoXA BQgv DQXI Emz8 EsNZ FdvE GVlW HV2i In9k JJ6L Jq5E J08P KNGq Kjly;1;YwB5AGcAdwBpAG4AQABjAHkAZwB3AGkAbgAuAGMAbwBtAA==;Sosha1_v1;7;{10C5939D-9CB6-4631-BE7F-45620572E8FA};ZABhAG0AaQBhAG4ALgBzAGEAbgBjAGgAZQB6AEAAaQB0AGEAdQB0AGUAYwAuAGMAbwBtAA==;Tue, 08 Jan 2013 14:33:45 GMT;UgBFAFMAOgAgAGgAaQBkAGkAbgBnACAAYwB1AHIAcwBvAHIAIABvAG4AIAB0AGUAeAB0ACAAdABlAHIAbQBpAG4AYQBsAHMA
x-cr-puzzleid: {10C5939D-9CB6-4631-BE7F-45620572E8FA}
X-EXCLAIMER-MD-CONFIG: 2a5522f3-b02f-4167-9a1b-830c3e94590c
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id r08FEdlY025147

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

Damian.


0

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


