mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-27 00:00:03 +03:00
Use a color for the message
This commit is contained in:
parent
7c46e7ac69
commit
d0fcd8ae8a
|
@ -156,12 +156,14 @@ impl<'a> UiState<'a> {
|
||||||
|
|
||||||
let message = if self.message.is_empty() {
|
let message = if self.message.is_empty() {
|
||||||
// Help footer.
|
// Help footer.
|
||||||
"↓/j ↑/k home/g end/G │ filter <d>one/<p>ending │ <r>eset │ <c>ontinue at │ <q>uit"
|
Span::raw(
|
||||||
|
"↓/j ↑/k home/g end/G │ filter <d>one/<p>ending │ <r>eset │ <c>ontinue at │ <q>uit",
|
||||||
|
)
|
||||||
} else {
|
} else {
|
||||||
&self.message
|
self.message.as_str().blue()
|
||||||
};
|
};
|
||||||
frame.render_widget(
|
frame.render_widget(
|
||||||
Span::raw(message),
|
message,
|
||||||
Rect {
|
Rect {
|
||||||
x: 0,
|
x: 0,
|
||||||
y: area.height - 1,
|
y: area.height - 1,
|
||||||
|
|
Loading…
Reference in a new issue