Re: [Scilab-users] Scilab API sciprint to print on the same line

2019-12-13 Thread Samuel Gougeon
Le 13/12/2019 à 18:00, Stéphane Mottelet a écrit : Besides the clc bug, why don't we try to repair mprinf ? Please follow the report , the dedicated commit, and comment it. ___ users mailing

Re: [Scilab-users] Scilab API sciprint to print on the same line

2019-12-13 Thread Samuel Gougeon
Le 13/12/2019 à 09:08, P M a écrit : .../... code directly put into console...do this step by step --> clc(); --> for i=1:10 mprintf("%d\n",i) end 1 2 3 4 5 6 7 8 9 10 --> clc(1) 1 2 3 4 5 6 7 8 9 -->  // works as expected No, 2 lines preceding the prompt are cleared instead of one: the 10,

Re: [Scilab-users] Scilab API sciprint to print on the same line

2019-12-13 Thread Stéphane Mottelet
Besides the clc bug, why don't we try to repair mprinf ? Le 12/12/2019 à 23:19, Samuel Gougeon a écrit : Hello Chin Luh Le 12/12/2019 à 17:10, Chin Luh Tan a écrit : Hi Samuel, Thanks for your reply. Previously I was using clc(linenumtoclear) for showing this effect in scilab, but i never

[Scilab-users] sleep 100 crashes scilab : http://bugzilla.scilab.org/show_bug.cgi?id=14791

2019-12-13 Thread Antoine Monmayrant
Hello all, Replying my previous email about sleep 100 crashing scilab: it's already reported as bug #14791 Antoine ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

Re: [Scilab-users] ?==?utf-8?q? Scilab API sciprint to print on the same line

2019-12-13 Thread Antoine Monmayrant
Well, I can see the same behaviour under linux. But while playing with your example, I discovered a nice bug: sleep 100 just kills scilab (Segmentation fault (core dumped)). It works from both scinotes or the console. Can anyone give it a try under windows so that I can make an accurate bug

Re: [Scilab-users] Scilab API sciprint to print on the same line

2019-12-13 Thread P M
...even more strange than the reported bug: clc(1) seems to behave different when directly written into the console vs used from SciNotes. from SciNotes: clc();for i=1:10 mprintf("%d\n",i)endclc(1) result in console: 1 2 3 4 5 6 7 // note that number 8,9,10 are cleared..so it's 3 lines, not