No description
This repository has been archived on 2026-08-22. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Henning Thorsen 9178eda41e
Add some tests
2021-08-25 17:14:30 +02:00
lib/App Add basic repo files and documentation 2021-08-24 09:17:40 +02:00
script Fix typo 2021-08-24 14:50:23 +02:00
t Add some tests 2021-08-25 17:14:30 +02:00
.gitignore git ship start 2021-08-21 08:56:29 +02:00
.perltidyrc Add perltidyrc 2021-08-23 13:13:07 +02:00
.travis.yml git ship start 2021-08-21 08:56:29 +02:00
Changes Changed the regex for finding label/value pairs 2021-08-24 14:48:59 +02:00
cpanfile Add basic repo files and documentation 2021-08-24 09:17:40 +02:00
Makefile.PL Add basic repo files and documentation 2021-08-24 09:17:40 +02:00
MANIFEST.SKIP git ship start 2021-08-21 08:56:29 +02:00
README.md Add basic repo files and documentation 2021-08-24 09:17:40 +02:00

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 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.