| Crates.io | pingcolor |
| lib.rs | pingcolor |
| version | 0.1.3 |
| created_at | 2025-12-20 09:45:40.910121+00 |
| updated_at | 2025-12-20 09:45:40.910121+00 |
| description | Colored ping output utility that supports multiplatform (Windows, Linux, macOS) with color configuration via TOML file. |
| homepage | https://github.com/cumulus13/pingcolor |
| repository | |
| max_upload_size | |
| id | 1996273 |
| size | 51,497 |
Colored ping output utility that supports multiplatform (Windows, Linux, macOS) with color configuration via TOML file.
✅ Multiplatform: Windows, Linux, macOS
🎨 True Color Support: Uses hex color (#RRGGBB)
⚙️ Configurable: All colors can be configured via pingcolor.toml
🎲 Smart Random Colors: The same value gets the same color consistently
🔄 Auto Config: Automatically creates pingcolor.toml if it doesn't already exist
# Clone or copy files
cargo build --release
# Binary is in target/release/pingcolor
# Or
cargo install pingcolor
# Basic usage
pingcolor google.com
pingcolor 8.8.8.8
# Windows (continuous ping)
pingcolor google.com
# Linux/macOS (default behavior)
pingcolor google.com
The file pingcolor.toml will be automatically created with default colors:
# Windows specific colors
reply = "#00FFFF"
timeout = "#FFFF00"
unreachable_fg = "#FFFFFF"
unreachable_bg = "#FF0000"
from = "#FF557F"
ip_fg = "#FFFFFF"
ip_bg = "#00007F"
bytes = "#AA55FF"
time = "#AAAA00"
time_value_fg = "#FFFFFF"
time_value_bg = "#AA00FF"
ms = "#FFAA7F"
ttl = "#55AAFF"
ttl_value_fg = "#FFFFFF"
ttl_value_bg = "#005500"
# Linux/Mac specific
icmp_seq = "#00FFAA"
transmitted = "#AAFFAA"
received = "#AAFFAA"
packet_loss = "#FFAA55"
statistics = "#55AAFF"
ping_statistics = "#55AAFF"
# Random colors for dynamic values (bytes, icmp_seq, etc)
random_colors = ["#FFAA00", "#0055FF", "#AAFFFF"]
# Generic
equals = "#777777"
general_text = "#CCCCCC"
Reply from 172.217.215.101: bytes=32 time=232ms TTL=101
64 bytes from 172.217.215.101: icmp_seq=1 ttl=57 time=15.2 ms
Reply from x.x.x.x: bytes=32 time=15ms TTL=64Request timed out, Destination host unreachable-t64 bytes from x.x.x.x: icmp_seq=1 ttl=64 time=15.2 msDestination Host Unreachable, Request timeout64 bytes from x.x.x.x: icmp_seq=0 ttl=57 time=15.234 msThe same value will get the same color during the session:
bytes=32 gets color #FFAA00colored = "2.1" # True color support
serde = "1.0" # Serialization
toml = "0.8" # Config parsing
regex = "1.10" # Pattern matching
rand = "0.8" # Random color selection
MIT
Created with ❤️ using Rust