mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-26 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() {
|
||||
// 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 {
|
||||
&self.message
|
||||
self.message.as_str().blue()
|
||||
};
|
||||
frame.render_widget(
|
||||
Span::raw(message),
|
||||
message,
|
||||
Rect {
|
||||
x: 0,
|
||||
y: area.height - 1,
|
||||
|
|
Loading…
Reference in a new issue