Can I hide the slash in a console window?

This is a discussion on Can I hide the slash in a console window? within the C Programming forums, part of the General Programming Boards category; The slash that apears under the text. Thankz in advance....

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    118

    Can I hide the slash in a console window?

    The slash that apears under the text.
    Thankz in advance.
    Why drink and drive when you can smoke and fly?

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826

    Re: Can I hide the slash in a console window?

    Originally posted by Marcos
    The slash that apears under the text.
    Thankz in advance.
    Sure, if you know how. This is OS specific. So in short, yes, it's possible.

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Jan 2003
    Posts
    118
    Ok, I am using XP, Anyone know how to do it?
    Why drink and drive when you can smoke and fly?

  4. #4
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669
    You must use WINAPI functions. First include header windows.h and copy this into your program.

    This function is a part of my CGE SDK.
    Code:
    BOOL ShowScreenCursor (BOOL Show)
    {
    	CONSOLE_CURSOR_INFO cci = {0};
    	BOOL StatusCCI = FALSE;
    
    
    
    	if (Show) // show screen cursor
    	{
    		cci.dwSize   = 30;
    		cci.bVisible = TRUE;
    		StatusCCI    = SetConsoleCursorInfo (GetStdHandle (STD_OUTPUT_HANDLE), &cci);		
    	}
    	else // hide screen cursor
    	{
    		cci.dwSize   = 100;
    		cci.bVisible = FALSE;
    		StatusCCI    = SetConsoleCursorInfo (GetStdHandle (STD_OUTPUT_HANDLE), &cci);
    	}
    	return StatusCCI;
    }
    Note: This works only on NT based OS.
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C or C++
    By AcerN30 in forum Game Programming
    Replies: 41
    Last Post: 05-30-2008, 06:57 PM
  2. Just starting Windows Programming, School me!
    By Shamino in forum Windows Programming
    Replies: 17
    Last Post: 02-22-2008, 07:14 AM
  3. Adding buttons, edit boxes, etc to the window
    By rainmanddw in forum Windows Programming
    Replies: 1
    Last Post: 04-10-2006, 03:07 PM
  4. my wndProc is out of scope
    By Raison in forum Windows Programming
    Replies: 35
    Last Post: 06-25-2004, 07:23 AM
  5. Console hide
    By geek@02 in forum Windows Programming
    Replies: 1
    Last Post: 06-17-2004, 04:45 AM

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