Library which creates a serial test console, it supports pages and menu items. The items are added and the pages are added as necessary when the user sets it up. This is a great too for creating an easy to maintain menu system, whether for a test sytem, or anything else.

Dependencies:   Terminal

Revision:
2:399e080c4909
Parent:
1:c6deb449c132
Child:
3:f308cd7a34ed
--- a/testconsole.cpp	Fri May 01 04:24:48 2015 +0000
+++ b/testconsole.cpp	Fri May 01 13:34:09 2015 +0000
@@ -43,11 +43,13 @@
 int TestConsole::process_cmd(char cmd){
 
 
-    for(int index=0; index < page[current_page].num_menuitems; index++){
-                if('x' == cmd) {
-                    page_change(previous_page);
-                    return 0;
-                }
+       if('x' == cmd) {
+            page_change(previous_page);
+            return 0;
+                }   
+                 
+        for(int index=0; index < page[current_page].num_menuitems; index++){
+
             
         if(page[current_page].command_letter[index] == cmd) {