Article View: es.comp.os.linux.programacion
Article #12491Re: Ocultar cursor en la consola
From: J.A. Gutierrez
Date: Mon, 25 Jun 2001 18:20
Date: Mon, 25 Jun 2001 18:20
25 lines
2165 bytes
2165 bytes
Jos� Antonio Calvo <josh@escomposlinux.org> wrote:
: �Alguien sabe como hacer que en un programa en C no se muestre el cursor?
: Me refiero sin usar ncurses ni ninguna libreria adicional.
: Imagino que podr� hacerse con un codigo de escape, al igual que borrar
: la pantalla o mover el cursor, pero ignoro cual es.
Usar codigos de escape es una mala idea (no portable)
Mejor usar curses:
Normally, the hardware cursor is left at the location of the window
cursor being refreshed. The leaveok option allows the cursor to be left
wherever the update happens to leave it. It is useful for applications
where the cursor is not used, since it reduces the need for cursor
motions. If possible, the cursor is made invisible when this option is
enabled.
(de todas formas, me parece que en la mayor parte de los
terminales no se puede hacer invisible)
--
PGP and other useless info at \
http://www.cps.unizar.es/~spd/ \
finger://daphne.cps.unizar.es/spd \ Timeo Danaos et dona ferentes
ftp://ivo.cps.unizar.es/pub/ \ (Virgilio)
Technical Details
Message-ID:
<9h7vcj$k24$1@news.unizar.es>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.251.151.101!opentransit.net!jussieu.fr!news.rediris.es!news.unizar.es!not-for-mailReferences:
<slrn9jf3mg.5nk.josh@monegros.homeip.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,bd4e99d567dad338
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-06-25 11:07:35 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.251.151.101!opentransit.net!jussieu.fr!news.rediris.es!news.unizar.es!not-for-mail
From: "J.A. Gutierrez" <spd@daphne.cps.unizar.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Ocultar cursor en la consola
Date: 25 Jun 2001 18:20:03 GMT
Organization: Rank
Lines: 25
Message-ID: <9h7vcj$k24$1@news.unizar.es>
References: <slrn9jf3mg.5nk.josh@monegros.homeip.net>
NNTP-Posting-Host: daphne.cps.unizar.es
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.unizar.es 993493203 20548 155.210.152.20 (25 Jun 2001 18:20:03 GMT)
X-Complaints-To: usenet@news.unizar.es
NNTP-Posting-Date: 25 Jun 2001 18:20:03 GMT
User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (IRIX/6.2 (IP22))