Dependencies:   mbed

Committer:
ms523
Date:
Tue Feb 09 15:05:33 2010 +0000
Revision:
0:bd5143ec272b

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ms523 0:bd5143ec272b 1 /* mbed Terminal TextDisplay Library
ms523 0:bd5143ec272b 2 * Copyright (c) 2007-2009 sford
ms523 0:bd5143ec272b 3 * Released under the MIT License: http://mbed.org/license/mit
ms523 0:bd5143ec272b 4 *
ms523 0:bd5143ec272b 5 * Implementation of ANSI/VT100 Terminal escape codes
ms523 0:bd5143ec272b 6 * for use with e.g. Teraterm, Hyperterminal
ms523 0:bd5143ec272b 7 */
ms523 0:bd5143ec272b 8
ms523 0:bd5143ec272b 9 #include "mbed.h"
ms523 0:bd5143ec272b 10
ms523 0:bd5143ec272b 11 #ifndef MBED_TERMINAL_H
ms523 0:bd5143ec272b 12 #define MBED_TERMINAL_H
ms523 0:bd5143ec272b 13
ms523 0:bd5143ec272b 14 class Terminal : public Serial {
ms523 0:bd5143ec272b 15 public:
ms523 0:bd5143ec272b 16
ms523 0:bd5143ec272b 17 Terminal(PinName tx, PinName rx);
ms523 0:bd5143ec272b 18
ms523 0:bd5143ec272b 19 // printf(), put(), baud() etc - inherited from Serial
ms523 0:bd5143ec272b 20
ms523 0:bd5143ec272b 21 void cls();
ms523 0:bd5143ec272b 22 void locate(int column, int row);
ms523 0:bd5143ec272b 23 void foreground(int colour);
ms523 0:bd5143ec272b 24 void background(int colour);
ms523 0:bd5143ec272b 25 void box(int x, int y, int w, int h);
ms523 0:bd5143ec272b 26 };
ms523 0:bd5143ec272b 27
ms523 0:bd5143ec272b 28 #endif