Dependencies:   mbed

Committer:
ms523
Date:
Wed Jan 20 15:09:13 2010 +0000
Revision:
0:408a2c6feb1f

        

Who changed what in which revision?

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