From f31f02f6bee6bf5d98d2d9468762cf6ea9d4360a Mon Sep 17 00:00:00 2001 From: ache Date: Sun, 16 Aug 2026 21:57:55 +0200 Subject: Add the remainder line option --- src/print.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/print.rs') 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 -- cgit v1.3-2-g11bf