Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: UARTSnoop BaseJpegDecode_example
Fork of Terminal by
Terminal.h@0:2bf27af3c759, 2009-12-31 (annotated)
- Committer:
- simon
- Date:
- Thu Dec 31 09:50:48 2009 +0000
- Revision:
- 0:2bf27af3c759
- Child:
- 1:96ae39e58792
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| simon | 0:2bf27af3c759 | 1 | /* mbed Terminal TextDisplay Library |
| simon | 0:2bf27af3c759 | 2 | * Copyright (c) 2007-2009 sford |
| simon | 0:2bf27af3c759 | 3 | * Released under the MIT License: http://mbed.org/license/mit |
| simon | 0:2bf27af3c759 | 4 | * |
| simon | 0:2bf27af3c759 | 5 | * Implementation of ANSI/VT100 Terminal escape codes |
| simon | 0:2bf27af3c759 | 6 | * for use with e.g. Teraterm, Hyperterminal |
| simon | 0:2bf27af3c759 | 7 | */ |
| simon | 0:2bf27af3c759 | 8 | |
| simon | 0:2bf27af3c759 | 9 | #include "mbed.h" |
| simon | 0:2bf27af3c759 | 10 | |
| simon | 0:2bf27af3c759 | 11 | #ifndef MBED_TERMINAL_H |
| simon | 0:2bf27af3c759 | 12 | #define MBED_TERMINAL_H |
| simon | 0:2bf27af3c759 | 13 | |
| simon | 0:2bf27af3c759 | 14 | class Terminal : public Serial { |
| simon | 0:2bf27af3c759 | 15 | public: |
| simon | 0:2bf27af3c759 | 16 | |
| simon | 0:2bf27af3c759 | 17 | Terminal(PinName tx, PinName rx); |
| simon | 0:2bf27af3c759 | 18 | |
| simon | 0:2bf27af3c759 | 19 | // printf(), put(), baud() etc - inherited from Serial |
| simon | 0:2bf27af3c759 | 20 | |
| simon | 0:2bf27af3c759 | 21 | void cls(); |
| simon | 0:2bf27af3c759 | 22 | void locate(int column, int row); |
| simon | 0:2bf27af3c759 | 23 | void foreground(int colour); |
| simon | 0:2bf27af3c759 | 24 | void background(int colour); |
| simon | 0:2bf27af3c759 | 25 | }; |
| simon | 0:2bf27af3c759 | 26 | |
| simon | 0:2bf27af3c759 | 27 | #endif |
