I need to draw graph in real time in the terminal from Perl program. But I have no ability to use third party modules.
I need to draw graph using only ASCII characters.
I have some problems with this.
My idea is just to print vertically sequence of characters according to data each period of time. Add new value to array and than just shift it to right or left. (Maybe there is better way to do this, please let me know).
So problems are :
How to get current terminal window height, than to use it while printing values. And when terminal window size has changed it should use new height to make it scalable.
How to get current width and calculate it according to the character width to get iteration count.