Based on Terminal lib from Simon Ford, some adds
Fork of TerminalPlus by
Diff: Terminal.cpp
- Revision:
- 11:38e8a2260621
- Parent:
- 10:60b9f0462d03
- Child:
- 12:92f65f10a510
--- a/Terminal.cpp Sat Sep 26 01:01:44 2015 +0000 +++ b/Terminal.cpp Fri Oct 02 00:23:07 2015 +0000 @@ -230,43 +230,56 @@ forgcol(7); //3-4 formatPrintf(string2char(padstr("\n",78,char(196))),1,3,1); //top 1/2 + forgcol(6); formatPrintf("Funzione \n",2,4); //p01 formatPrintf("Numero \n",32,4); //p02 formatPrintf("Parametro \n",51,4); //p03 //5-6 - formatPrintf("Pattern 1......... \n",2,6); //p11 - formatPrintf("Pattern 2......... \n",42,6); //p12 + formatPrintf("Pattern 0......... \n",2,6); //p11 + formatPrintf("Pattern 1......... \n",42,6); //p12 //7-8 - formatPrintf("Pattern 3......... \n",2,8); //p21 - formatPrintf("Random Activate... \n",42,8); //p22 + formatPrintf("Pattern 2......... \n",2,8); //p21 + formatPrintf("Random Act (r1o/f) \n",42,8); //p22 //9-10 - formatPrintf("Real Serial(rso/f) \n",2,10); //p31 + formatPrintf("Serial Real(sro/f) \n",2,10); //p31 //11-12 + formatPrintf("Note Pattern......\n",2,12,99); //p41 //13-14 formatPrintf("Input string...... \n",2,14); //p51 formatPrintf("Command Type...... \n",42,14); //p52 //15-16 - formatPrintf(string2char(padstr("\n",78,char(196))),1,15,1); //bottom pot + forgcol(7); + formatPrintf("Serial Feedback \n",2,21); - formatPrintf(string2char(padstr("\n",78,char(196))),1,20); //azzo funziona... - formatPrintf("Serial Feedback \n",2,21); // grigino - foreground(0xF0F0F0); + formatPrintf(string2char(padstr("\n",78,char(196))),1,5); //top 3/4 - formatPrintf(string2char(padstr("\n",78,char(196))),1,7); //top 5/6 formatPrintf(string2char(padstr("\n",78,char(196))),1,9); //top 7/8 - formatPrintf(string2char(padstr("\n",78,char(196))),1,11); //top 9/10 formatPrintf(string2char(padstr("\n",78,char(196))),1,13); //top 11/12 + formatPrintf(string2char(padstr("\n",78,char(196))),1,15,1); //bottom pot + formatPrintf(string2char(padstr("\n",78,char(196))),1,20); //azzo funziona... - foreground(0xFfFfFF); - // bold(); + forgcol(2); + formatPrintf("Pattern: da 031 a 252 - Traccia 0-2, Note 3-6, Len 1-2 \n",2,16); //help + formatPrintf("Stato random: r1on-r1off \n",2,17); //help + formatPrintf("Cambia Note: da n01 a n53 - Nota 0-5, Val 1-3 \n",2,18); //help + forgcol(7); + locate(0, 23); + this->printf("Command: > "); + + // extra da attivare forse domani + // formatPrintf("Pattern \n",2,5); + // formatPrintf(string2char(padstr("\n",78,char(196))),1,7); //top 5/6 + // formatPrintf(string2char(padstr("\n",78,char(196))),1,11); //top 9/10 + // formatPrintf("Serial \n",2,9); + // formatPrintf("HELP \n",2,15); //help } void Terminal::readypos() { - locate(1, 23); - this->printf("Command: > "); + locate(11, 23); + //this->printf("Command: > "); }