summaryrefslogtreecommitdiffhomepage
path: root/UI.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2025-01-05 13:22:34 +0100
committerRoland Reichwein <mail@reichwein.it>2025-01-05 13:22:34 +0100
commit1f8da4902761fc6f6eaf39b8711107c6b48a9c9a (patch)
treea0a4f0a1c164080fc313fe37cbb5a91f6ce883d1 /UI.cpp
parent770540693fd4a5f9b64c1b2bc8183be3f72ab314 (diff)
Debian build, colors, config filename
Diffstat (limited to 'UI.cpp')
-rw-r--r--UI.cpp9
1 files changed, 5 insertions, 4 deletions
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;