mirror of
https://github.com/theopfr/somo.git
synced 2025-06-10 01:33:32 +03:00
update preview image, change amount-connection info text
This commit is contained in:
@@ -11,7 +11,11 @@
|
||||
- interactive killing of processes
|
||||
- from ``nestat -tulpn`` to ``somo -l`` (almost half the characters, can you believe it?)
|
||||
|
||||

|
||||
<br />
|
||||
|
||||
<p align="center">
|
||||
<img src="./images/somo-example.png" />
|
||||
</p>
|
||||
|
||||
---
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 100 KiB |
@@ -126,7 +126,7 @@ pub fn print_connections_table(all_connections: &Vec<Connection>) {
|
||||
|
||||
println!("{}", skin.term_text(&markdown));
|
||||
|
||||
utils::pretty_print_info(&format!("Connections: **{}**", all_connections.len()));
|
||||
utils::pretty_print_info(&format!("**{} Connections**", all_connections.len()));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ pub fn get_address_parts(address: &str) -> (String, String) {
|
||||
/// # Returns
|
||||
/// None
|
||||
pub fn pretty_print_info(text: &str) {
|
||||
let mut skin = MadSkin::default();
|
||||
let mut skin: MadSkin = MadSkin::default();
|
||||
skin.bold.set_fg(White);
|
||||
skin.italic = CompoundStyle::new(Some(gray(11)), None, Encircled.into());
|
||||
skin.strikeout = CompoundStyle::new(Some(Cyan), None, Encircled.into());
|
||||
|
||||
Reference in New Issue
Block a user