From 1f8da4902761fc6f6eaf39b8711107c6b48a9c9a Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 5 Jan 2025 13:22:34 +0100 Subject: Debian build, colors, config filename --- UI.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'UI.cpp') diff --git a/UI.cpp b/UI.cpp index 9bf6632..a3501e4 100644 --- a/UI.cpp +++ b/UI.cpp @@ -115,13 +115,14 @@ void UI::draw() fmt::text_style editable_color{fg(fmt::color::crimson) | fmt::emphasis::bold}; fmt::text_style value_color{fg(fmt::color::blue) | fmt::emphasis::bold}; + fmt::text_style input_color{fg(fmt::color::green) | fmt::emphasis::bold}; // clear screen std::cout << "\x1B[2J\x1B[H"; //std::cout << std::endl; - std::cout << "- " << fmt::format(editable_color, "{:3}", bpm) << " BPM +" << std::endl; - std::cout << "Mode: "; + std::cout << fmt::format(editable_color, "{:3}", bpm) << " BPM " << fmt::format(input_color, "(+/-)") << std::endl; + std::cout << "Mode " << fmt::format(input_color, "(m)") << ": "; for (int i = 0; i < mode_names.size(); ++i) { if (i == mode) { std::cout << fmt::format(editable_color, " {}", mode_names[i]); @@ -130,9 +131,9 @@ void UI::draw() } } std::cout << std::endl; - std::cout << "MIDI Note: " << fmt::format(editable_color, "{}/{}", channel, note); + std::cout << "MIDI Note " << fmt::format(input_color, "(n)") << ": " << fmt::format(editable_color, "{}/{}", channel, note); std::cout << std::endl; - std::cout << "Audio Output: " << fmt::format(editable_color, "{}", output_names[output]); + std::cout << "Audio Output " << fmt::format(input_color, "(o)") << ": " << fmt::format(editable_color, "{}", output_names[output]); std::cout << std::endl; std::cout << std::endl; std::cout << "Status:" << std::endl; -- cgit v1.2.3