aboutsummaryrefslogtreecommitdiff
path: root/src/print.rs
diff options
context:
space:
mode:
authorache <ache@ache.one>2026-08-16 21:57:55 +0200
committerache <ache@ache.one>2026-08-16 21:57:55 +0200
commitf31f02f6bee6bf5d98d2d9468762cf6ea9d4360a (patch)
tree5effa2c2351f7f4901b52f7026dccab2f9c3fcad /src/print.rs
parentRemove unusde import and cast (diff)
Add the remainder line option
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