formatting console

This commit is contained in:
proddy
2024-03-09 14:50:23 +01:00
parent a5ef1d16d5
commit 68f09f03f8

View File

@@ -594,13 +594,15 @@ void EMSESPShell::stopped() {
// show welcome banner // show welcome banner
void EMSESPShell::display_banner() { void EMSESPShell::display_banner() {
println(); println();
printfln("┌───────────────────────────────────────┐"); printfln("┌──────────────────────────────────────────");
printfln("│ %sEMS-ESP version %-12s%s │", COLOR_BOLD_ON, EMSESP_APP_VERSION, COLOR_BOLD_OFF); printfln("│ %sEMS-ESP version %-12s%s ", COLOR_BOLD_ON, EMSESP_APP_VERSION, COLOR_BOLD_OFF);
printfln("%s%shttps://github.com/emsesp/EMS-ESP32%s │", COLOR_BRIGHT_GREEN, COLOR_UNDERLINE, COLOR_RESET); printfln("");
printfln(""); printfln("%shelp%s to show available commands │", COLOR_UNDERLINE, COLOR_RESET);
printfln("type %shelp%s to show available commands", COLOR_UNDERLINE, COLOR_RESET); printfln("%ssu%s to access admin commands ", COLOR_UNDERLINE, COLOR_RESET);
printfln("use %ssu%s to access Admin commands │", COLOR_UNDERLINE, COLOR_RESET); printfln("");
printfln("└───────────────────────────────────────┘"); printfln("│ %s%shttps://github.com/emsesp/EMS-ESP32%s │", COLOR_BRIGHT_GREEN, COLOR_UNDERLINE, COLOR_RESET);
printfln("│ │");
printfln("└──────────────────────────────────────────┘");
println(); println();
// set console name // set console name