开发者

Is there a wx Widget to show ANSI escape code colored text?

I can't seem to find a control that will display text colored with ANSI escape codes. For example:

"\e[0;32mHello \e[0;37mWorld"

Would display a gr开发者_开发技巧een "Hello" and a white "World".

Does one exist?


I don't think that such a widget exists. You may look for some way of changing ANSI codes into HTML and then displaying it in wxWidgets. This may be useful: http://code.activestate.com/recipes/577349-convert-a-transcript-with-ansi-escape-sequences-to/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜