Commit 85eaac84 authored by aligungr's avatar aligungr

CLI shell colored

parent 6bfd6255
...@@ -211,10 +211,12 @@ static bool HandleMessage(const app::CliMessage &msg, bool isOneShot) ...@@ -211,10 +211,12 @@ static bool HandleMessage(const app::CliMessage &msg, bool isOneShot)
{ {
while (true) while (true)
{ {
std::cout << "\x1b[1m";
std::string line{}; std::string line{};
std::vector<std::string> tokens{}; std::vector<std::string> tokens{};
if (!opt::ReadLine(std::cin, std::cout, line, tokens)) if (!opt::ReadLine(std::cin, std::cout, line, tokens))
exit(0); exit(0);
std::cout << "\x1b[0m";
if (line.empty()) if (line.empty())
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment