Initial commit
Fork of Terminal by
Revision 3:63c8617cf6d5, committed 2014-12-05
- Comitter:
- anmar
- Date:
- Fri Dec 05 10:25:54 2014 +0000
- Parent:
- 2:85184c13476c
- Commit message:
- Initial commit;
Changed in this revision
Terminal.cpp | Show annotated file Show diff for this revision Revisions of this file |
Terminal.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 85184c13476c -r 63c8617cf6d5 Terminal.cpp --- a/Terminal.cpp Tue Nov 23 16:03:35 2010 +0000 +++ b/Terminal.cpp Fri Dec 05 10:25:54 2014 +0000 @@ -22,9 +22,11 @@ #include "Terminal.h" -#include "mbed.h" -Terminal::Terminal(PinName tx, PinName rx) : Serial(tx, rx) {} +#include "mbed.h" +//#include "MODSERIAL.h" + +Terminal::Terminal(PinName tx, PinName rx) : MODSERIAL (tx, rx) {} //: Serial(tx, rx) {} void Terminal::cls() { this->printf("\033[2J"); @@ -32,7 +34,7 @@ void Terminal::locate(int column, int row) { // Cursor Home <ESC>[{ROW};{COLUMN}H - this->printf("\033[%d;%dH%c", row + 1, column + 1); + this->printf("\033[%d;%dH", row + 1, column + 1); } static int rgb888tobgr111(int colour) {
diff -r 85184c13476c -r 63c8617cf6d5 Terminal.h --- a/Terminal.h Tue Nov 23 16:03:35 2010 +0000 +++ b/Terminal.h Fri Dec 05 10:25:54 2014 +0000 @@ -21,6 +21,7 @@ */ #include "mbed.h" +#include "MODSERIAL.h" #ifndef MBED_TERMINAL_H #define MBED_TERMINAL_H @@ -29,7 +30,7 @@ * * This allows you to control an ANSI serial terminal */ -class Terminal : public Serial { +class Terminal : public MODSERIAL { //Serial { public: /** Create the Terminal interface *