Newsgroups: comp.os.msdos.djgpp Subject: _setcursortype problem in DOS window From: robwg AT DELETEclara DOT co DOT uk (Robert W. Griffiths) Message-ID: <8F0B1097robwgclaracouk@195.8.69.73> User-Agent: Xnews/03.03.12 Lines: 35 Date: Sun, 02 Apr 2000 23:00:27 GMT NNTP-Posting-Host: 195.8.90.116 X-Complaints-To: abuse AT clara DOT net X-Trace: nnrp4.clara.net 954716427 195.8.90.116 (Mon, 03 Apr 2000 00:00:27 BST) NNTP-Posting-Date: Mon, 03 Apr 2000 00:00:27 BST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, I'm using DJGPP (version 2.02 I think), and am trying to adapt some text mode programs. I've come across a strange problem with the _setcursortype function. A small test program is included below. The solid and normal cursors are OK, but instead of the cursor disappearing after the middle call, I get a sort of inverted normal cursor ie the flashing line is at the top of the character cell. This only seems to happen when running in a Win98 DOS window - full screen works fine. #include #include #include int main( void ) { int i; _setcursortype( _SOLIDCURSOR ); printf( "Solid cursor\n" ); i = getxkey(); _setcursortype( _NOCURSOR ); printf( "No cursor\n" ); i = getxkey(); _setcursortype( _NORMALCURSOR ); printf( "Normal cursor\n" ); i = getxkey(); return 0; } Any help would be much appreciated. Thank you. Robert.