v.0.2.3 ColorSerial, more usage

This commit is contained in:
tiijay
2025-11-09 19:57:01 +01:00
parent b501f2d0d2
commit dce7117267
3 changed files with 25 additions and 19 deletions

View File

@@ -451,4 +451,11 @@ void ColorSerial::weatherCondition(int code, const char *customLabel)
Serial.print(condition);
Serial.print(RESET);
Serial.println();
}
}
// Terminal Control Methods
void ColorSerial::clearScreen()
{
Serial.print("\033[2J"); // Clear entire screen
Serial.print("\033[H"); // Move cursor to home position (0,0)
}

View File

@@ -44,6 +44,8 @@ public:
static const char *BOX_DOUBLE_VERT;
static const char *BOX_SINGLE_VERT;
static void clearScreen();
// Main Logging Methods
static void success(const char *message, const char *details = "");
static void error(const char *message, const char *details = "");