From 4b6bf2141459caf628f952678bf886a18927d8d2 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 13 Nov 2021 04:36:45 -0500 Subject: highlight the focused entry --- src/history.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/history.rs') diff --git a/src/history.rs b/src/history.rs index 3615ec9..83744ce 100644 --- a/src/history.rs +++ b/src/history.rs @@ -233,7 +233,12 @@ impl History { out.write_str(&format!("{} ", status.code().unwrap())); } } + if focus == Some(idx) { + out.set_fgcolor(textmode::color::BLACK); + out.set_bgcolor(textmode::color::CYAN); + } out.write_str("$ "); + out.reset_attributes(); if entry.running() { out.set_bgcolor(textmode::Color::Rgb(16, 64, 16)); } -- cgit v1.2.3-54-g00ecf