Hiding the Console Cursor

This is a discussion on Hiding the Console Cursor within the C Programming forums, part of the General Programming Boards category; I used the method that adrianxw has on his site, but whenever I go to fullscreen mode, the cursor comes ...

  1. #1
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718

    Hiding the Console Cursor

    I used the method that adrianxw has on his site, but whenever I go to fullscreen mode, the cursor comes back. Any ideas?

    Code:
    void ShowConsoleCursor( BOOL bShow )
    {
    
    	static HANDLE		hOut;
    	static BOOL		firstTime = TRUE;
    	CONSOLE_CURSOR_INFO 	cursorInfo;
    
    	if( firstTime )
    	{
    
    		hOut		= GetStdHandle( STD_OUTPUT_HANDLE );
    		firstTime	= FALSE;
    
    	}
    
    	cursorInfo.dwSize	= 10;
    	cursorInfo.bVisible 	= bShow;
    
    	SetConsoleCursorInfo( hOut,
                                  &cursorInfo );
    
    }
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  2. #2
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    If I go into a full-screen console and then run the program, the cursor still shows up.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 12
    Last Post: 05-06-2006, 03:34 PM
  2. How to hide cursor in a Linux/Unix console?
    By Aidman in forum Linux Programming
    Replies: 2
    Last Post: 09-01-2004, 02:25 PM
  3. Get cursor position in Console
    By Rutabega in forum Windows Programming
    Replies: 3
    Last Post: 04-01-2004, 09:32 AM
  4. Just one Question?
    By Irish-Slasher in forum C++ Programming
    Replies: 6
    Last Post: 02-12-2002, 09:19 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21