开发者

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

开发者 https://www.devze.com 2023-03-17 18:12 出处:网络
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\"

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

精彩评论

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

关注公众号