![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Diff: Terminal.h
- Revision:
- 0:9b63dfb366dd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Terminal.h Fri Jul 02 15:36:51 2010 +0000 @@ -0,0 +1,27 @@ +/* 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); +}; + +#endif