Skip to content

Commit 9e8dc0e

Browse files
committed
fix RunningCommand title formatting
1 parent 78b308a commit 9e8dc0e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tui/src/running_command.rs

+7-3
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,20 @@ impl FloatContent for RunningCommand {
5252
let (content, content_style) = if !self.is_finished() {
5353
(" Running command... ", Style::default().reversed())
5454
} else if self.wait_command().success() {
55-
(" Success ", Style::default().green().reversed())
55+
(" Success ", Style::default().bold().green().reversed())
5656
} else {
57-
(" Failed ", Style::default().red().reversed())
57+
(" Failed ", Style::default().bold().red().reversed())
5858
};
5959

6060
Some(Line::from(content).style(content_style))
6161
}
6262

6363
fn bottom_title(&self) -> Option<Line<'_>> {
64-
Some(Line::from("Press Ctrl-C to KILL the command"))
64+
Some(Line::from(if !self.is_finished() {
65+
" Press [CTRL-c] to KILL the command "
66+
} else {
67+
" Press [Enter] to close this window "
68+
}))
6569
}
6670

6771
fn draw(&mut self, frame: &mut Frame, area: Rect) {

0 commit comments

Comments
 (0)