Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Terminal.h Source File

Terminal.h

00001 /* mbed Terminal TextDisplay Library
00002  * Copyright (c) 2007-2009 sford
00003  * Released under the MIT License: http://mbed.org/license/mit
00004  *
00005  * Implementation of ANSI/VT100 Terminal escape codes
00006  * for use with e.g. Teraterm, Hyperterminal
00007  */
00008 
00009 #include "mbed.h"
00010 
00011 #ifndef MBED_TERMINAL_H
00012 #define MBED_TERMINAL_H
00013 
00014 class Terminal : public Serial {
00015 public:
00016 
00017     Terminal(PinName tx, PinName rx);
00018 
00019     // printf(), put(), baud() etc - inherited from Serial
00020 
00021     void cls();
00022     void locate(int column, int row);
00023     void foreground(int colour);
00024     void background(int colour);
00025     void box(int x, int y, int w, int h); 
00026 };
00027 
00028 #endif