Martin Smith
/
Countdown
Diff: Terminal.h
- Revision:
- 0:bd5143ec272b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Terminal.h Tue Feb 09 15:05:33 2010 +0000 @@ -0,0 +1,28 @@ +/* mbed Terminal TextDisplay Library + * Copyright (c) 2007-2009 sford + * Released under the MIT License: http://mbed.org/license/mit + * + * Implementation of ANSI/VT100 Terminal escape codes + * for use with e.g. Teraterm, Hyperterminal + */ + +#include "mbed.h" + +#ifndef MBED_TERMINAL_H +#define MBED_TERMINAL_H + +class Terminal : public Serial { +public: + + Terminal(PinName tx, PinName rx); + + // printf(), put(), baud() etc - inherited from Serial + + void cls(); + void locate(int column, int row); + void foreground(int colour); + void background(int colour); + void box(int x, int y, int w, int h); +}; + +#endif