Live data from Hacker News

Show HN: Simple tool for creating command-line bar charts

github.com

1–10 of 24 posts

Re: Show HN: Simple tool for creating command-line bar charts

#3
post #2

Anyway we could use this with realtime rendering? For eg: I pipe data from top command to this script to see graphs/charts change it dynamically?

You would probably need a wrapper script to do this. The script could periodically clear the screen and call "barchart" with the new input data, re-rendering the chart from scratch.

"barchart" is a very simple shell script that doesn't do much on its own.

Re: Show HN: Simple tool for creating command-line bar charts

#5
post #2

Anyway we could use this with realtime rendering? For eg: I pipe data from top command to this script to see graphs/charts change it dynamically?

Slightly relevant: The program "htop" displays CPU usage with bars on the command line. https://htop.dev/
Post reply on HN