From 36282e750de13f88bef50947d5b3ab560263f3ad Mon Sep 17 00:00:00 2001 From: defnax Date: Thu, 26 Oct 2023 18:31:37 +0200 Subject: [PATCH 1/3] update output colors --- retroshare-service/src/retroshare-service.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/retroshare-service/src/retroshare-service.cc b/retroshare-service/src/retroshare-service.cc index d643fc36f..76162647c 100644 --- a/retroshare-service/src/retroshare-service.cc +++ b/retroshare-service/src/retroshare-service.cc @@ -188,12 +188,12 @@ int main(int argc, char* argv[]) if(webui_pass1 != webui_pass2) { - std::cout << "Passwords do not match!" << std::endl; + std::cout << "\033[1;31mPasswords do not match!\033[0m" << std::endl; continue; } if(webui_pass1.empty()) { - std::cout << "Password cannot be empty!" << std::endl; + std::cout << "\033[1;31mPassword cannot be empty!\033[0m" << std::endl; continue; } @@ -223,7 +223,7 @@ int main(int argc, char* argv[]) if(locations.size() == 0) { - RsErr() << "\033[1;33mNo available accounts. You cannot use option -U list\033[0m" << std::endl; + RsErr() << "\033[1;31mNo available accounts. You cannot use option -U list\033[0m" << std::endl; return -RsInit::ERR_NO_AVAILABLE_ACCOUNT; } @@ -234,8 +234,8 @@ int main(int argc, char* argv[]) for( uint32_t i=0; i