From b278e81533e709554c40c04c8605c820f90f7b42 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 18 May 2025 14:03:12 +1200 Subject: [PATCH] info for table print --- source/src/utils/tableprint.cpp | 99 ++++++++++++++++++--------------- 1 file changed, 54 insertions(+), 45 deletions(-) diff --git a/source/src/utils/tableprint.cpp b/source/src/utils/tableprint.cpp index 4d2d184..380e3f9 100644 --- a/source/src/utils/tableprint.cpp +++ b/source/src/utils/tableprint.cpp @@ -9,6 +9,8 @@ #include #include +#include "output.hpp" + enum kTextColors { kTextColor_Default, kTextColor_Red, @@ -32,7 +34,7 @@ const std::map kReplacements = { {":tick:", {"+", kTextColor_Green}}, {":cross:", {"x", kTextColor_Red}}, {":warning:", {"!", kTextColor_Yellow}}, - {":info:", {"i", kTextColor_Blue}}, + {":dropshell::info:", {"i", kTextColor_Blue}}, {":check:", {"+", kTextColor_Green}}, {":x:", {"x", kTextColor_Red}}, {":error:", {"!", kTextColor_Red}}, @@ -115,12 +117,12 @@ std::string width_print_centered(std::string str,int width, std::string rowcolor oss << rowcolor << std::string(lpad, ' ') << process_cell(str, rowcolor) << std::string(rpad, ' ') << "\033[0m"; - // std::cout << "str = "<