Terminal Library - To interface with a termainal application (e.g. Terterm) to give some more functionallity
Dependents: TestConsoleLib MAX32600MBED_MAX31723_Temperature_Sensor
Terminal.h@0:3bea6f596c03, 2010-11-21 (annotated)
- Committer:
- ms523
- Date:
- Sun Nov 21 08:33:20 2010 +0000
- Revision:
- 0:3bea6f596c03
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ms523 | 0:3bea6f596c03 | 1 | /* mbed Terminal TextDisplay Library |
ms523 | 0:3bea6f596c03 | 2 | * Copyright (c) 2007-2009 sford |
ms523 | 0:3bea6f596c03 | 3 | * Released under the MIT License: http://mbed.org/license/mit |
ms523 | 0:3bea6f596c03 | 4 | * |
ms523 | 0:3bea6f596c03 | 5 | * Implementation of ANSI/VT100 Terminal escape codes |
ms523 | 0:3bea6f596c03 | 6 | * for use with e.g. Teraterm, Hyperterminal |
ms523 | 0:3bea6f596c03 | 7 | */ |
ms523 | 0:3bea6f596c03 | 8 | |
ms523 | 0:3bea6f596c03 | 9 | #include "mbed.h" |
ms523 | 0:3bea6f596c03 | 10 | |
ms523 | 0:3bea6f596c03 | 11 | #ifndef MBED_TERMINAL_H |
ms523 | 0:3bea6f596c03 | 12 | #define MBED_TERMINAL_H |
ms523 | 0:3bea6f596c03 | 13 | |
ms523 | 0:3bea6f596c03 | 14 | class Terminal : public Serial { |
ms523 | 0:3bea6f596c03 | 15 | public: |
ms523 | 0:3bea6f596c03 | 16 | |
ms523 | 0:3bea6f596c03 | 17 | Terminal(PinName tx, PinName rx); |
ms523 | 0:3bea6f596c03 | 18 | |
ms523 | 0:3bea6f596c03 | 19 | // printf(), put(), baud() etc - inherited from Serial |
ms523 | 0:3bea6f596c03 | 20 | |
ms523 | 0:3bea6f596c03 | 21 | void cls(); |
ms523 | 0:3bea6f596c03 | 22 | void HideCursor(); |
ms523 | 0:3bea6f596c03 | 23 | void locate(int column, int row); |
ms523 | 0:3bea6f596c03 | 24 | void foreground(int colour); |
ms523 | 0:3bea6f596c03 | 25 | void background(int colour); |
ms523 | 0:3bea6f596c03 | 26 | void box(int x, int y, int w, int h); |
ms523 | 0:3bea6f596c03 | 27 | }; |
ms523 | 0:3bea6f596c03 | 28 | |
ms523 | 0:3bea6f596c03 | 29 | #endif |