pingcolor-0.1.3 is not a library.
PingColor 🎨
Colored ping output utility that supports multiplatform (Windows, Linux, macOS) with color configuration via TOML file.
Features
- ✅ 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.tomlif it doesn't already exist
Installation
# Clone or copy files
# Binary is in target/release/pingcolor
# Or
Usage
# Basic usage
# Windows (continuous ping)
# Linux/macOS (default behavior)
Configuration
The file pingcolor.toml will be automatically created with default colors:
# Windows specific colors
= "#00FFFF"
= "#FFFF00"
= "#FFFFFF"
= "#FF0000"
= "#FF557F"
= "#FFFFFF"
= "#00007F"
= "#AA55FF"
= "#AAAA00"
= "#FFFFFF"
= "#AA00FF"
= "#FFAA7F"
= "#55AAFF"
= "#FFFFFF"
= "#005500"
# Linux/Mac specific
= "#00FFAA"
= "#AAFFAA"
= "#AAFFAA"
= "#FFAA55"
= "#55AAFF"
= "#55AAFF"
# Random colors for dynamic values (bytes, icmp_seq, etc)
= ["#FFAA00", "#0055FF", "#AAFFFF"]
# Generic
= "#777777"
= "#CCCCCC"
Color Mapping
Windows Output
Reply from 172.217.215.101: bytes=32 time=232ms TTL=101
- Reply → Cyan (#00FFFF)
- from → Pink (#FF557F)
- 172.217.215.101 → White on Blue (#FFFFFF on #00007F)
- bytes → Purple (#AA55FF)
- 32 → Random dari 3 warna, konsisten per nilai
- time → Yellow (#AAAA00)
- 232 → White on Purple (#FFFFFF on #AA00FF)
- ms → Orange (#FFAA7F)
- TTL → Light Blue (#55AAFF)
- 101 → White on Green (#FFFFFF on #005500)
Linux/macOS Output
64 bytes from 172.217.215.101: icmp_seq=1 ttl=57 time=15.2 ms
- 64 → Random dari 3 warna, konsisten per nilai
- bytes → Purple (#AA55FF)
- from → Pink (#FF557F)
- 172.217.215.101 → White on Blue
- icmp_seq → Aqua (#00FFAA)
- 1 → Random warna
- ttl → Light Blue (#55AAFF)
- 57 → White on Green (#FFFFFF on #005500)
- time → Yellow (#AAAA00)
- 15.2 → White on Purple (#FFFFFF on #AA00FF)
- ms → Orange (#FFAA7F)
Platform Differences
Windows
- Output:
Reply from x.x.x.x: bytes=32 time=15ms TTL=64 - Errors:
Request timed out,Destination host unreachable - Ping continuous by default dengan flag
-t
Linux
- Output:
64 bytes from x.x.x.x: icmp_seq=1 ttl=64 time=15.2 ms - Errors:
Destination Host Unreachable,Request timeout - Lowercase keywords (ttl, icmp_seq)
macOS
- Similar to Linux
- Output:
64 bytes from x.x.x.x: icmp_seq=0 ttl=57 time=15.234 ms
Smart Random Colors
The same value will get the same color during the session:
- If
bytes=32gets color #FFAA00 - As long as the value remains 32, the color remains #FFAA00
- If you change to 64, you get a new color (random from the pool)
Dependencies
= "2.1" # True color support
= "1.0" # Serialization
= "0.8" # Config parsing
= "1.10" # Pattern matching
= "0.8" # Random color selection
Notes
- Terminal should be support true color (24-bit color)
- Modern terminals such as Windows Terminal, iTerm2, or GNOME Terminal are supported
- If the color does not appear, check the terminal emulator usedused
License
MIT
👤 Author
Created with ❤️ using Rust

