How To Performing Clear Screen (CLS) in a Console Application (99261)
The information in this article applies to:
- Microsoft Win32 Application Programming Interface (API), when used with:
- the operating system: Microsoft Windows NT 3.51
- the operating system: Microsoft Windows NT 4.0
- the operating system: Microsoft Windows 95
- the operating system: Microsoft Windows 98
- the operating system: Microsoft Windows 2000
- the operating system: Microsoft Windows Millennium Edition
- the operating system: Microsoft Windows XP
This article was previously published under Q99261 SUMMARY
Some non-Microsoft versions of C++ provide a clrscr function for clearing the screen in a DOS application. However, there is no Win32 Application Programming Interface (API) or C-Runtime function that will perform this function. To accomplish this task for a Win32 console application, use one of the following methods: - Use a system function.
- Write a function that will programmatically clear the screen.
These methods are described in the following "More Information" section.
| Modification Type: | Minor | Last Reviewed: | 9/27/2004 |
|---|
| Keywords: | kbAPI kbcode kbConsole kbhowto kbKernBase KB99261 |
|---|
|