[Scilab-users] Colours in Scilab terminal
Samuel Gougeon
sgougeon at free.fr
Thu Oct 22 20:29:37 CEST 2015
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
More information about the users
mailing list