Terminal Library - To interface with a termainal application (e.g. Terterm) to give some more functionallity
Dependents: TestConsoleLib MAX32600MBED_MAX31723_Temperature_Sensor
Diff: Terminal.h
- Revision:
- 0:3bea6f596c03
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Terminal.h Sun Nov 21 08:33:20 2010 +0000 @@ -0,0 +1,29 @@ +/* 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 HideCursor(); + 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