Inspired by Simon Ford's "Terminal" library, this is a clean-room reimplementation that supports a larger set of the ANSI escape sequences and includes a few handy drawing routines. Useful for making console UIs for your projects. The box-drawing stuff requires your terminal to be set to codepage 850.

ANSITerm is a class extending the mbed Serial class, and is designed to wrap a serial connection.

In addition to the standard Serial functions, ANSITerm exposes a set of functions for moving the cursor around the screen, setting and getting the current cursor position, and setting text display colours and styles.

It's primarily a simple utility class, providing a set of simply-named functions that wrap the escape sequences, rather than requiring the programmer to remember the sequence of characters to perform a particular task.

Download repository: zip gz

Files at revision 1:e3403c93f864

Name Size Actions
[up]
ANSITerm.cpp 7498 Revisions Annotate
ANSITerm.h 15025 Revisions Annotate