<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Besides the clc bug, why don't we try to repair mprinf ?<br>
</p>
<div class="moz-cite-prefix">Le 12/12/2019 à 23:19, Samuel Gougeon a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:ace3a517-9fb7-4b63-8d01-ed12164f9212@free.fr">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div class="moz-cite-prefix">Hello Chin Luh</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Le 12/12/2019 à 17:10, Chin Luh Tan a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:16efae04743.c61a96ce454183.7920217350096248729@bytecode-asia.com">
<meta content="text/html; charset=UTF-8"
http-equiv="Content-Type">
<div style="font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10pt;">
<div>Hi Samuel, <br>
</div>
<div><br>
</div>
<div>Thanks for your reply. <br>
</div>
<div><br>
</div>
<div>Previously I was using clc(linenumtoclear) for showing
this effect in scilab, but i never thought of the mprintf, i
was using disp that time<br>
</div>
<div><br>
</div>
<div>for i = 1:100 <br>
</div>
<div>disp("Static counter : " + string(i)); <br>
</div>
<div>sleep(1); clc(1) <br>
</div>
<div>end<br>
</div>
</div>
</blockquote>
<br>
<p>I could not think using disp(). According to its expected
behavior, it always appends an \n, while we want to stay on the
line, what's the purpose of \r instead of \n, and mprintf() does
not append anything to what it is requested to display.<br>
</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:16efae04743.c61a96ce454183.7920217350096248729@bytecode-asia.com">
<div style="font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10pt;">it seems that the mprintf also kind of
broken? as it needs 3 \n to get this result?<br>
</div>
</blockquote>
<p><br>
I do not think that disp() is broken. It looks OK, while <a
moz-do-not-send="true"
href="https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/bugzilla.scilab.org/show_bug.cgi?id=16143">clc(1)
is bugged</a>. This is why extra \n are required for this
workaround using clc.<br>
<br>
</p>
<blockquote type="cite"
cite="mid:16efae04743.c61a96ce454183.7920217350096248729@bytecode-asia.com">
<div style="font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10pt;">I also tried to look into the clc C source
and see whether I could use the c code of clc in scilab api
but no luck, but your example of mprintf which need 3 \n
inspired me to look into the mprintf c code and see how it
works. <br>
</div>
</blockquote>
<p><br>
</p>
<p>Now that you know the clc code, please do not hesitate to
propose a patch for its clc(1) bug ;-))</p>
Regards<br>
<p>Samuel</p>
<p><br>
</p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users">https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
<a class="moz-txt-link-freetext" href="http://www.utc.fr/~mottelet">http://www.utc.fr/~mottelet</a>
</pre>
</body>
</html>