aboutsummaryrefslogtreecommitdiff
path: root/src/print.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/print.rs')
-rw-r--r--src/print.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/print.rs b/src/print.rs
index 4019f34..f359c92 100644
--- a/src/print.rs
+++ b/src/print.rs
@@ -2,6 +2,7 @@
use crate::state::State;
use crate::stats::Stats;
+use std::net::IpAddr;
struct SymbolTableElement {
fg: &'static str,
@@ -180,6 +181,11 @@ const LEN_BY_NB_ELEMENT: [u32; 26] = [
16, 10, 4, 0,
];
+
+pub fn print_remainder_line(target_str: &String, ip: &IpAddr) {
+ println!("PING {} ({})", target_str, ip);
+}
+
pub fn print_legende_line() {
let nb_cols: u32 = if let Some((w, _)) = term_size::dimensions() {
w as u32