Преглед на файлове

detect unicode -- reset, clear, and home afterwards!

Steve Thielemann преди 4 години
родител
ревизия
fe1662f35f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      door.cpp

+ 1 - 1
door.cpp

@@ -325,7 +325,7 @@ void Door::detect_unicode_and_screen(void) {
   *this << door::nl << "\u2615"
         << "\x1b[6n";                   // hot beverage + cursor pos
   *this << "\x1b[999C\x1b[999B\x1b[6n"; // goto end of screen + cursor pos
-  *this << "\x1b[H";                    // go home
+  *this << reset << "\x1b[2J\x1b[H";    // reset, cls, go home
 
   this->flush();
   usleep(1000 * 1000);