I am looking to process telnet incoming text with ANSI exit codes. For generosity, I am looking for a complete implementation where I can simply add text to the end of the buffer. The control should be scrollable, but still be able to handle additional text, positioning the cursor, etc., while the user scrolls out of view.
For example,
"\e[0;32mHello \e[0;37mWorld"
A green “Hello” and a white “World” will appear.
Since this requires handling cursor positioning, setting 80 characters in each row (80 columns) will be fine, but other column sizes also need to be handled. It would also be nice to change the font.
See Wikipedia ANSI Escape Codes for details .
source
share