From b9c2955b88baaf0a6ce4340ef3e7a654c6f37618 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Mon, 17 Jul 2023 11:59:21 +0200 Subject: [PATCH] fix: Use ANSI escape codes for --plugins --- plugins/builtin/source/content/command_line_interface.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/builtin/source/content/command_line_interface.cpp b/plugins/builtin/source/content/command_line_interface.cpp index b59ad368a..cfba5b952 100644 --- a/plugins/builtin/source/content/command_line_interface.cpp +++ b/plugins/builtin/source/content/command_line_interface.cpp @@ -4,7 +4,6 @@ #include #include -#include #include #include @@ -112,13 +111,13 @@ namespace hex::plugin::builtin { hex::print("- "); if (plugin.isBuiltinPlugin()) - hex::print("{}", fmt::styled(plugin.getPluginName(), fmt::emphasis::bold | fmt::bg(fmt::terminal_color::yellow))); + hex::print("\033[1;43m{}\033[0m", plugin.getPluginName()); else - hex::print("{}", fmt::styled(plugin.getPluginName(), fmt::emphasis::bold)); + hex::print("\033[1m{}\033[0m", plugin.getPluginName()); hex::print(" by {}\n", plugin.getPluginAuthor()); - hex::print(" {}\n", fmt::styled(plugin.getPluginDescription(), fmt::emphasis::italic | fmt::emphasis::faint)); + hex::print(" \033[2;3m{}\033[0m\n", plugin.getPluginDescription()); } std::exit(EXIT_SUCCESS);