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.
Revisions of ANSITerm.cpp
Revision | Date | Message | Actions |
---|---|---|---|
0:863811463610 | 2012-09-18 | ANSITerm first release: supports colour and styling, cursor movement, box drawing with Codepage850 box-drawing characters. | File Diff Annotate |