diff --git a/Cargo.lock b/Cargo.lock index 1ff46393e..c33834f66 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -491,7 +491,7 @@ checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439" [[package]] name = "linutil_core" -version = "24.9.23" +version = "24.9.28" dependencies = [ "ego-tree", "include_dir", @@ -503,7 +503,7 @@ dependencies = [ [[package]] name = "linutil_tui" -version = "24.9.23" +version = "24.9.28" dependencies = [ "ansi-to-tui", "anstyle", diff --git a/tui/src/running_command.rs b/tui/src/running_command.rs index 7b654b6d0..068158672 100644 --- a/tui/src/running_command.rs +++ b/tui/src/running_command.rs @@ -52,16 +52,20 @@ impl FloatContent for RunningCommand { let (content, content_style) = if !self.is_finished() { (" Running command... ", Style::default().reversed()) } else if self.wait_command().success() { - (" Success ", Style::default().green().reversed()) + (" Success ", Style::default().bold().green().reversed()) } else { - (" Failed ", Style::default().red().reversed()) + (" Failed ", Style::default().bold().red().reversed()) }; Some(Line::from(content).style(content_style)) } fn bottom_title(&self) -> Option> { - Some(Line::from("Press Ctrl-C to KILL the command")) + Some(Line::from(if !self.is_finished() { + " Press [CTRL-c] to KILL the command " + } else { + " Press [Enter] to close this window " + })) } fn draw(&mut self, frame: &mut Frame, area: Rect) {