Le 22/10/2015 10:03, Pierre Vuillemin a écrit :
Hello all,

I was wondering if it was possible to display coloured text in Scilab terminal with "mprintf" ?

It seems to be possible with printf in C : http://stackoverflow.com/questions/3219393/stdlib-and-colored-output-in-c
Indeed, it would be great. Unfortunately, trials do not work: Outputs from
mprintf("%s\n",ascii(27)+"[31mThis text is RED!"+ascii(27)+"[0m")
mprintf("%s\n",ascii([27 91 31])+"m This text is RED!"+ascii([27 91 0])+"m")
write(%io(2), ascii(27)+"[31m This text is RED!"+ascii(27)+"[0m")
write(%io(2), ascii([27 91 31])+"m This text is RED!"+ascii([27 91 0])+"m")

stand desperately black :(

With early 5.x Scilab releases, it was possible to print some text in color or even import images in the console (like Scilab's Puffin) through some JIMS commands (The JIMS portal on the Forge showed some examples). But these features were canceled since then.

Samuel Gougeon

_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

Reply via email to