lagraph is a command-line utility that can be used to draw a ping graph over time.
- Bars drawn using Unicode or ASCII character, supporting "half characters" for increased precision
- True-color output with configurable saturation
- Setting ping interval and/or count
- Optional short or long timestamp
- Monitoring your connection quality and stability over time.
- This is especially useful when using Wi-Fi or mobile connections such as 4G.
cargo install lagraph
You need rustc 1.30 or later to build lagraph from source.
lagraph --help for a full list of command-line options.
Ping an host at the default interval (0.5 seconds):
Ping an host every 5 seconds, displaying a short timestamp on the left:
lagraph -i 5 -t short <host>
Ping an host with a maximum displayable ping value of 100 milliseconds and remove colors from the output:
lagraph -M 100 -C none <host>
Setting true-color output by default
To use true-color output by default, you need to set the environment variable
truecolor. You can make this permanent by adding the following
line to your shell startup file (such as
On Windows, this can be done using the following commands in a Command Prompt:
:: Permanently set COLORTERM to "truecolor" for the current user setx COLORTERM truecolor :: Sets the variable in the current shell set COLORTERM=truecolor
Note that not all terminals support true-color terminal output; see this gist for more information. Windows 10 supports true-color terminal output since the Creators Update (version 1703).
Copyright © 2018-2019 Hugo Locurcio and contributors