Toon posts:

[c] Knipperende curser

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik heb een vraagje

Ik heb vorig jaar Pascal gehad op school en daar kon je dat irritante Knipperende curser dingetje weg halen.

Dit zal vast ook mogelijk zijn in C

Heeft iemand een idee hoe ik deze weg kan halen?
dus in het programma.

bv:
Geef je naam: _

_ knipperd dan

  • Pooh
  • Registratie: April 2001
  • Niet online

Pooh

Lees eens een boek

in conio.h : _setcursortype(int _type)
_setcursortype

Syntax
#include <conio.h>

void _setcursortype(int _type);

Description
Sets the cursor type. _type is one of the following:

_NOCURSOR
No cursor is displayed.
_SOLIDCURSOR
A solid block is displayed.
_NORMALCURSOR
An underline cursor is displayed.

Portability
not ANSI, not POSIX

Implementation Note
It's not safe to call this function inside static constructors, because conio needs to be initialized, and its initialization is done by a static constructor. Since you don't have any control on the order in which static constructors are called (it's entirely up to the linker), you could have problems.

If you can detect the situation when one of the conio functions is called for the very first time since program start, you could work around this problem by calling the gppconio_init function manually (this is the function called by a static constructor).