Dependencies:   mbed

Committer:
jigr69
Date:
Fri Jul 02 15:36:51 2010 +0000
Revision:
0:9b63dfb366dd

        

Who changed what in which revision?

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