well?:rolleyes:
Printable View
well?:rolleyes:
Are you sure you can clear it ????:rolleyes:
well if I was SURE about that, then I wouldnt post this here :p
Little upset about the MCP MrPolite? Just thought I would change my sig for you...lol.
To answer your question, I got this code from this sample code:
http://www.c-sharpcorner.com/Code/20...SysConsole.asp
I leave it to you to figure out, at least it may get you started. And of course, it is in C#....you should know it by now...lol.Code:static public void ClearScreen()
{
// First, fisical clear screen.
int writted = 0;
Win32Native.COORD start = new Win32Native.COORD();
start.x = start.y = 0;
Win32Native.FillConsoleOutputCharacter(m_hCon, ' ', m_Info.MaxSize.y * m_Info.MaxSize.x,
start, ref writted);
Win32Native.FillConsoleOutputAttribute(m_hCon, m_BackAtt, m_Info.MaxSize.y * m_Info.MaxSize.x,
start, ref writted);
// Cursor go at left/top.
Locate(1, 1);
}
:D:D:D:DQuote:
Originally posted by hellswraith
Little upset about the MCP MrPolite? Just thought I would change my sig for you...lol.
btw that "for mendhak" in my sig refers to the other pic following it....
It's a great honor to have my name in our sig! ;)
thanks alot, it works fine, just tested it....
I'm lazy! gutto get used to API's in .NET:D:D
in psc theres a far more complicatted example for vb.net if u want to knowlol
well there aren't that many API's for console apps. So I dont know how much more complicated it can be ;)
can you send a link anyways?;)