Hello, how can i clean only part of the screen in C++? Please | SoloLearn: Learn to code for FREE!

0

Hello, how can i clean only part of the screen in C++? Please

c++

4/16/2020 9:05:38 AM

Bryan Carrera

2 Answers

New Answer

0

There are no standard screen cleaning functions in C++. You would have to look up any commands your terminal implements for this purpose and forward them to the host environment via std::system: https://en.cppreference.com/w/cpp/utility/program/system Alternatively, to mimic such a behaviour, you can always insert a specific number of newlines, but that would depend on the terminal size.

0

You could take a look at the ncurses library: it's a robust cross-platform/terminal handler ;) http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/