Clear terminal on resize. (#99)

This commit is contained in:
Arthur Sonzogni
2021-05-17 00:44:37 +02:00
committed by GitHub
parent e520ac59f9
commit 30a85c4c5b
3 changed files with 22 additions and 11 deletions

View File

@@ -63,7 +63,7 @@ class Screen {
int dimy() { return dimy_; }
// Move the terminal cursor n-lines up with n = dimy().
std::string ResetPosition();
std::string ResetPosition(bool clear = false);
// Fill with space.
void Clear();