The start of a generic Text Display library to drive multiple types of text display in the same way

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 a TextDisplay using a VT100 Terminal and 
00006  * escape codes (e.g. Teraterm, Hyperterminal)
00007  */
00008 
00009 #include "TextDisplay.h"
00010 
00011 #ifndef MBED_TERMINAL_H
00012 #define MBED_TERMINAL_H
00013 
00014 class Terminal : public TextDisplay {
00015 public:
00016 
00017     Terminal(PinName tx, PinName rx);
00018 
00019     virtual void character(int column, int row, int c);
00020     virtual int rows(); 
00021     virtual int columns();  
00022 
00023     virtual void cls();
00024     virtual void foreground(int colour);
00025     virtual void background(int colour);
00026 
00027 protected:
00028 
00029     Serial _serial;
00030     
00031 };
00032 
00033 #endif