I've noticed that down(0) actually moves down one line when it's at the bottom of the terminal. Any ideas why?
I've had to 'if' it out.
See here :
https://github.com/davidmaxwaterman/progress
commit b86f400f3d05faed70b0468e38bba6f830b844f1 shows the error (and the commit after it has the 'if'to fix it)
$ cat tests/test1.txt | bin/progress
If you do the above at the top of the terminal window, it scrolls down endlessly, but if at the bottom, it doesn't. Having said that, while writing this, it doesn't seem to make sense, so perhaps I'm not completely understanding what's happening, but anyway, the if seems to fix it.
Comments/help welcome.
I've noticed that down(0) actually moves down one line when it's at the bottom of the terminal. Any ideas why?
I've had to 'if' it out.
See here :
https://github.com/davidmaxwaterman/progress
commit b86f400f3d05faed70b0468e38bba6f830b844f1 shows the error (and the commit after it has the 'if'to fix it)
If you do the above at the top of the terminal window, it scrolls down endlessly, but if at the bottom, it doesn't. Having said that, while writing this, it doesn't seem to make sense, so perhaps I'm not completely understanding what's happening, but anyway, the if seems to fix it.
Comments/help welcome.