| Crates.io | lagraph |
| lib.rs | lagraph |
| version | 0.2.1 |
| created_at | 2018-08-21 19:56:41.379916+00 |
| updated_at | 2018-09-01 20:33:39.269805+00 |
| description | Display a ping graph in a terminal |
| homepage | |
| repository | https://github.com/Calinou/lagraph |
| max_upload_size | |
| id | 80622 |
| size | 38,911 |
lagraph is a command-line utility that can be used to draw a ping graph over time.
cargoIf you already have Rust installed, you can use Cargo to build and install lagraph:
cargo install lagraph
Use lagraph --help for a full list of command-line options.
Ping an host at the default interval (0.5 seconds):
lagraph <host>
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>
To use true-color output by default, you need to set the environment variable
COLORTERM to truecolor. You can make this permanent by adding the following
line to your shell startup file (such as ~/.bashrc or ~/.zshrc):
export COLORTERM="truecolor"
On Windows, this can be done using the following commands depending on your shell:
:: cmd.exe (Batch)
set COLORTERM=truecolor
# PowerShell
$env: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 Hugo Locurcio and contributors
Licensed (at your option) under the MIT or Apache 2.0 license.