Fix scrolling up bug.

This commit is contained in:
Greyscale 2020-11-24 12:19:20 +01:00
parent afe7d1f949
commit ccda858776
No known key found for this signature in database
GPG key ID: C6178C19949CFFE3

View file

@ -36,7 +36,7 @@ while(true) {
$table->injectData($data);
$table->display();
sleep(1);
for($i = 0; $i <= $rowsCount; $i++){
for($i = 0; $i < $rowsCount; $i++){
echo "\033[2K";
echo "\033[1A";
}