Hi Pedro,
The Incentive PyMOL Qt GUI is able to handle a small subset of ANSI color codes.
pymol.colorprinting.error("Text in red")
pymol.colorprinting.warning("Text in magenta")
print("\033[31mRed \033[32mGreen \033[33mYellow\033[m Default")
https://en.wikipedia.org/wiki/ANSI_escape_code
Open-Source PyMOL will simply strip the color codes.
Cheers,
Thomas
> On Oct 26, 2020, at 3:10 AM, Pedro Lacerda <[email protected]> wrote:
>
> I see that probably you are using HTML for this.
> https://github.com/schrodinger/pymol-open-source/blob/69b1f0b53b4109c34604adcea3983e4d3886069e/modules/pymol/colorprinting.py
>
> But printing HTML directly into the console didn't worked.
>
> Em dom., 25 de out. de 2020 às 23:06, Pedro Lacerda <[email protected]>
> escreveu:
> Hi,
>
> How can I print formatted output into the PyMOL console?
>
> I see that on the incentive version the output is coloured (eg errors are
> red).
>
>
> --
> Pedro Sousa Lacerda
>
> Laboratório de Bioinformática e Modelagem Molecular / UFBA
> Mestrando em Ciências Farmácias / UEFS
>
> @pslacerda
> +55 71 9 9981-1856
> http://lattes.cnpq.br/8338596525330907
>
>
> --
> Pedro Sousa Lacerda
>
> Laboratório de Bioinformática e Modelagem Molecular / UFBA
> Mestrando em Ciências Farmácias / UEFS
>
> @pslacerda
> +55 71 9 9981-1856
> http://lattes.cnpq.br/8338596525330907
> _______________________________________________
> PyMOL-users mailing list
> Archives: http://www.mail-archive.com/[email protected]
> Unsubscribe:
> https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe
--
Thomas Holder
PyMOL Principal Developer
Schrödinger, Inc.
_______________________________________________
PyMOL-users mailing list
Archives: http://www.mail-archive.com/[email protected]
Unsubscribe:
https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe