summaryrefslogtreecommitdiffstats
path: root/src/history.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-11-17 02:06:15 -0500
committerJesse Luehrs <doy@tozt.net>2021-11-17 02:06:15 -0500
commita78ff323366b61f17628eebcb156b081d2f4504e (patch)
tree959346e2b58b2851d26c445e49751f9503d1849c /src/history.rs
parentb4df28fe916ab74fe66cba60eab193ebda398eb8 (diff)
downloadnbsh-a78ff323366b61f17628eebcb156b081d2f4504e.tar.gz
nbsh-a78ff323366b61f17628eebcb156b081d2f4504e.zip
add some more data to the prompt
Diffstat (limited to 'src/history.rs')
-rw-r--r--src/history.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/history.rs b/src/history.rs
index 1136821..5bd377a 100644
--- a/src/history.rs
+++ b/src/history.rs
@@ -272,13 +272,15 @@ impl HistoryEntry {
out.set_fgcolor(textmode::color::RED);
}
out.write_str(&crate::format::exit_status(info.status));
- out.reset_attributes();
} else {
out.write_str(" ");
}
+ out.reset_attributes();
if focused {
out.set_fgcolor(textmode::color::BLACK);
out.set_bgcolor(textmode::color::CYAN);
+ } else {
+ out.set_bgcolor(textmode::Color::Rgb(32, 32, 32));
}
out.write_str("$ ");
out.reset_attributes();