Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jhthorsen/app-achart
A program to print ascii charts in the terminal
https://github.com/jhthorsen/app-achart
Last synced: 27 days ago
JSON representation
A program to print ascii charts in the terminal
- Host: GitHub
- URL: https://github.com/jhthorsen/app-achart
- Owner: jhthorsen
- Created: 2021-08-24T05:23:51.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-08-24T07:18:24.000Z (over 3 years ago)
- Last Synced: 2024-10-16T11:58:29.606Z (3 months ago)
- Language: Perl
- Size: 16.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
Awesome Lists containing this project
README
# NAME
App::achart - A program to print ASCII charts in the terminal
# SYNOPSIS
# Read a number from stdin
$ perl -E'while (sleep 1) { $|=1; say 10 + 200 * rand }' | achart# Read multiple numbers from stdin
# echo "x=10,y=42;z=23" | achart# Run a program that output rows of numbers
$ achart --program "perl -lE'say x=>int 100*rand; say y=>100+int 50*rand'"# Example environment variables
ACHART_BAR_CHAR="-";
ACHART_COLORS="green,green-on_black,red-on_black";# DESCRIPTION
[App::achart](https://metacpan.org/pod/App%3A%3Aachart) is a program that produces colorful ASCII-based bar charts.
$ achart --program "perl -lE'say x=>int 100*rand; say y=>100+int 50*rand'"
09:16:56 x 56 ∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎
09:16:56 y 140 ∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎
09:16:57 x 22 ∎∎∎∎∎∎∎∎∎
09:16:57 y 141 ∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎# AUTHOR
Jan Henning Thorsen
# COPYRIGHT AND LICENSE
Copyright (C), Jan Henning Thorsen
This program is free software, you can redistribute it and/or modify it under
the terms of the Artistic License version 2.0.