Cool Fancy Terminal

Dependencies:   Terminal mbed

Fork of Terminal_HelloWorld by Simon Ford

Committer:
madmonkeyman82
Date:
Thu Oct 15 16:36:35 2015 +0000
Revision:
2:89b263d1a399
Parent:
1:dae8b7bc926d
Child:
3:35b0711f1832
Cool Fancy Terminal

Who changed what in which revision?

UserRevisionLine numberNew contents of line
simon 0:93888862261d 1 // simple test for a ANSI/VT100 Terminal, sford
simon 0:93888862261d 2
simon 0:93888862261d 3 #include "mbed.h"
simon 0:93888862261d 4 #include "Terminal.h"
simon 0:93888862261d 5
simon 0:93888862261d 6 Terminal term(USBTX, USBRX); // tx, rx
simon 0:93888862261d 7
simon 0:93888862261d 8 int main() {
madmonkeyman82 2:89b263d1a399 9
madmonkeyman82 2:89b263d1a399 10
madmonkeyman82 2:89b263d1a399 11 while(1)
madmonkeyman82 2:89b263d1a399 12 {
madmonkeyman82 2:89b263d1a399 13 term.cls();
madmonkeyman82 2:89b263d1a399 14 term.locate(20,10);
madmonkeyman82 2:89b263d1a399 15 term.printf("How are you?");
simon 0:93888862261d 16 wait(2);
madmonkeyman82 2:89b263d1a399 17 term.locate(20,11);
simon 0:93888862261d 18 term.foreground(0xFF0000);
madmonkeyman82 2:89b263d1a399 19 term.foreground(0xFF0000);
simon 0:93888862261d 20 term.printf("I'm Great!");
madmonkeyman82 2:89b263d1a399 21 wait(2);
madmonkeyman82 2:89b263d1a399 22 }
simon 0:93888862261d 23 }