File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -52,16 +52,20 @@ impl FloatContent for RunningCommand {
52
52
let ( content, content_style) = if !self . is_finished ( ) {
53
53
( " Running command... " , Style :: default ( ) . reversed ( ) )
54
54
} else if self . wait_command ( ) . success ( ) {
55
- ( " Success " , Style :: default ( ) . green ( ) . reversed ( ) )
55
+ ( " Success " , Style :: default ( ) . bold ( ) . green ( ) . reversed ( ) )
56
56
} else {
57
- ( " Failed " , Style :: default ( ) . red ( ) . reversed ( ) )
57
+ ( " Failed " , Style :: default ( ) . bold ( ) . red ( ) . reversed ( ) )
58
58
} ;
59
59
60
60
Some ( Line :: from ( content) . style ( content_style) )
61
61
}
62
62
63
63
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
+ } ) )
65
69
}
66
70
67
71
fn draw ( & mut self , frame : & mut Frame , area : Rect ) {
You can’t perform that action at this time.
0 commit comments