Depending on what your frontend is written in, there are many libraries for turning ANSI text into HTML (or React elements):
https://www.npmjs.com/package/ansi-html https://github.com/nteract/ansi-to-react On Thu, Jul 6, 2017 at 5:20 PM, Jeff Zhang <[email protected]> wrote: > > Thanks Thomas. > > > 在 2017年7月7日星期五 UTC+8上午1:00:18,takowl写道: >> >> On 6 July 2017 at 16:11, Jeff Zhang <[email protected]> wrote: >> >>> Could you anyone point me how jupyter recognize the font color via these >>> specia characters ? Is there standards for that ? Thanks >>> >> >> Hi Jeff, >> >> These are ANSI escape codes. They're typically recognised by your >> terminal emulator, and our non-terminal frontends (notebook, qtconsole) >> have specific code to process them and show the colours. Wikipedia has some >> good info on them: >> https://en.wikipedia.org/wiki/ANSI_escape_code >> >> The ones we use are mainly the SGR ('Select Graphics Rendition') codes. >> >> Thomas >> > -- > You received this message because you are subscribed to the Google Groups > "Project Jupyter" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/jupyter/f0942aa9-e06d-4c04-9153-54108937dc24%40googlegroups.com > <https://groups.google.com/d/msgid/jupyter/f0942aa9-e06d-4c04-9153-54108937dc24%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Kyle Kelley (@rgbkrk <https://twitter.com/rgbkrk>; lambdaops.com) -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CA%2BtbMaVrNKeiB12KWpk%2B5oBo2Ug%3Df%3DEFBgrHyezdXTNKdbve_Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
