BUG DESCRIPTION:
----------------
I wished to update a counter on the fixed current console line, but
clc(1) clears 2 lines instead of 1. Proof: run
clc
for i = 1:30, mprintf("%d\n",i), end
for i = 1:10, mprintf("%d\n",i), sleep(1000), clc(1), end
Result:
--> for i = 1:30, mprintf("%d\n",i), end
1
2
3
4
5
6
7
8
9
10
11
12
-->
While clc(0) behaves as expected:
--------------------------------
clc
for i = 1:30, mprintf("%d\n",i), end
for i = 1:10, mprintf("%d\n",i), sleep(1000), clc(0), end
Result:
...
27
28
29
30
--> for i = 1:10, mprintf("%d\n",i), sleep(1000), clc(0), end
1
2
3
4
5
6
7
8
9
10
-->
ERROR LOG:
----------
HOW TO REPRODUCE THE BUG:
-------------------------
for i = 1:10, mprintf("%d\n",i), sleep(1000), clc(1), end
OTHER INFORMATION:
------------------
Already in Scilab 4 and 5.