Home > Back-end >  C language may revoke the CLS
C language may revoke the CLS

Time:09-25

Excuse me, if the C language implementation system (after "CLS"), is there any way to cancel the black screen?

Because I recently to do c language design experiment, the need to design a system
Give an example of

If you select a function to clear after menu screen to the next level, but if you choose to return, then don't need to return to the higher level menu, so need to perform to cancel the screen clearing operation?

CodePudding user response:

Return to jump back at the next higher level menu to read at the next higher level menu display function better

CodePudding user response:

ReadConsoleOutput this it is recommended to use the API function, it can be used to replicate the console display of bytes, specific usage can find out our
Here give a link to https://docs.microsoft.com/en-us/windows/console/readconsoleoutput
After using ReadConsoleOutput CLS
Need to withdraw when using WriteConsoleOutput the content to display output
Link: https://docs.microsoft.com/en-us/windows/console/writeconsoleoutput

Defect is need memory storage, depends on the console display width, higher, so it is better to write your own menu to return

CodePudding user response:

Why to cancel? Reality again once the initial interface is nice to use while o {clear screen; Select operation, exit to return, the other is called function] so that you can

CodePudding user response:

This menu interface need to output it again
  • Related