Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Looking for a UserControl which supports ANSI escape codes

I am looking to handle incoming telnet text that has ANSI escape codes. For the bounty I am looking for a full implementation where I can just append text to the end of a buffer. The control should be scrollable, yet still be able to handle appending text, cursor positioning, etc.. while the user is scrolled out of view.

For example,

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

Would display a green "Hello" and a white "World"

As this would need to handle cursor positioning, setting a default 80 characters per row (80 columns) would be fine, but also needs to handle other column sizes. Would be nice to be able to change the font as well.

See Wikipedia ANSI Escape Codes for more information.

like image 775
esac Avatar asked Oct 16 '25 20:10

esac


1 Answers

Take a look at Dart's Vt.NET control (assuming that a VTxxx emulation is close enough to an ansi emulation).

like image 60
jdigital Avatar answered Oct 18 '25 13:10

jdigital



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!