delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT 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 DOT sanchez AT itautec DOT com> |
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> |
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 |
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 AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |