Home > Software engineering >  The console program how to ban frequent refresh
The console program how to ban frequent refresh

Time:10-19

I wrote a console application, first need to output a lot of content

To turn off refresh, reunification, all of the content after the output refresh

Function for solving the realization of the function, haven't find online

CodePudding user response:

Is a WINDOWS console, could you tell me which API can be implemented?

CodePudding user response:

The console screen processing example program and a terminal window screen processing related API use examples, from MSVC20 \ SAMPLES \ win32 \ console \ http://download.csdn.net/detail/zhao4zhong1/3461309

CodePudding user response:

To solve what API can not refresh the console

CodePudding user response:

The Console Functions provides
The following functions provides informs The to access a console.



AllocConsole
CreateConsoleScreenBuffer
FillConsoleOutputAttribute
FillConsoleOutputCharacter
FlushConsoleInputBuffer
FreeConsole
GenerateConsoleCtrlEvent
GetConsoleCP
GetConsoleCursorInfo
GetConsoleMode
GetConsoleOutputCP
GetConsoleScreenBufferInfo
GetConsoleTitle
GetLargestConsoleWindowSize
GetNumberOfConsoleInputEvents
GetNumberOfConsoleMouseButtons
The GetStdHandle
HandlerRoutine
PeekConsoleInput
ReadConsole
ReadConsoleInput
ReadConsoleOutput
ReadConsoleOutputAttribute
ReadConsoleOutputCharacter
ScrollConsoleScreenBuffer
SetConsoleActiveScreenBuffer
SetConsoleCP
SetConsoleCtrlHandler
SetConsoleCursorInfo
SetConsoleCursorPosition
SetConsoleMode
SetConsoleOutputCP
SetConsoleScreenBufferSize
SetConsoleTextAttribute
SetConsoleTitle
SetConsoleWindowInfo
SetStdHandle
WriteConsole
WriteConsoleInput
WriteConsoleOutput
WriteConsoleOutputAttribute
WriteConsoleOutputCharacter



CodePudding user response:

Now that is oneself write it is good to modify the code
The printf output to a string or a file first, praising the output to the screen

CodePudding user response:

Put the things well, overall output at a time is not to go

CodePudding user response:

When you control need printf print well
  • Related