[skip travis] Minor README and help updates to be more clear.

This commit is contained in:
ClementTsang 2019-10-09 22:50:36 -04:00
parent 396360cdbf
commit 726006dbec
2 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ Currently, I'm unable to really dev or test on MacOS, so I'm not sure how well t
- `q`, `Ctrl-C` to quit. - `q`, `Ctrl-C` to quit.
- `f` to freeze updating. Press `f` again to unfreeze. Note updating will still continue in the background. - `f` to freeze the screen from updating with new data. Press `f` again to unfreeze. Note that monitoring will still continue in the background.
- `Up/k`, `Down/j`, `Left/h`, `Right/l` to navigate between panels. - `Up/k`, `Down/j`, `Left/h`, `Right/l` to navigate between panels.
@ -55,7 +55,7 @@ Currently, I'm unable to really dev or test on MacOS, so I'm not sure how well t
- `Esc` to close a dialog window. - `Esc` to close a dialog window.
- `?` to get a help screen explaining the controls. - `?` to get a help screen explaining the controls. Note all controls except `Esc` to close the dialog will be disabled while this is open.
#### Processes Panel #### Processes Panel

View File

@ -66,7 +66,7 @@ pub fn draw_data<B : backend::Backend>(terminal : &mut Terminal<B>, app_state :
Text::raw("Shift+Up and Shift+Down scrolls through the list.\n"), Text::raw("Shift+Up and Shift+Down scrolls through the list.\n"),
Text::raw("Esc to close a dialog window (help or dd confirmation).\n"), Text::raw("Esc to close a dialog window (help or dd confirmation).\n"),
Text::raw("? to get this help screen.\n"), Text::raw("? to get this help screen.\n"),
Text::raw("\nProcess Panel Keybinds\n"), Text::raw("\n Process Panel Keybinds\n"),
Text::raw("dd to kill the selected process.\n"), Text::raw("dd to kill the selected process.\n"),
Text::raw("c to sort by CPU usage.\n"), Text::raw("c to sort by CPU usage.\n"),
Text::raw("m to sort by memory usage.\n"), Text::raw("m to sort by memory usage.\n"),
@ -75,7 +75,7 @@ pub fn draw_data<B : backend::Backend>(terminal : &mut Terminal<B>, app_state :
]; ];
Paragraph::new(text.iter()) Paragraph::new(text.iter())
.block(Block::default().title("Help").borders(Borders::ALL)) .block(Block::default().title("Help (Press Esc to close)").borders(Borders::ALL))
.style(Style::default().fg(Color::Gray)) .style(Style::default().fg(Color::Gray))
.alignment(Alignment::Left) .alignment(Alignment::Left)
.wrap(true) .wrap(true)