Based on Terminal lib from Simon Ford, some adds
Fork of TerminalPlus by
Diff: Terminal.cpp
- Revision:
- 13:09eb30497e78
- Parent:
- 12:92f65f10a510
- Child:
- 14:3da6173413b7
--- a/Terminal.cpp Fri Nov 06 20:14:36 2015 +0000 +++ b/Terminal.cpp Fri Nov 06 22:30:56 2015 +0000 @@ -181,21 +181,30 @@ // BLOCK=219; SE SI VORRA' USARE IL FILL switch (boxtype) { case 0: //singolo - B_H =196; + B_H =196; + B_V =179; + B_TL =218; + B_TR =191; + B_BL =192; + B_BR =217; + break; + + case 1: //doppio + B_H =205; B_V =186; B_TL =201; B_TR =187; - B_BL= 200; + B_BL =200; B_BR =188; break; - case 1: //doppio - B_H =205; + case 2: //misto 1 + B_H =196; B_V =186; - B_TL =201; - B_TR =187; - B_BL= 200; - B_BR =188; + B_TL =214; + B_TR =183; + B_BL =212; + B_BR =189; break; } @@ -216,67 +225,6 @@ formatPrintf(createStr(B_BR),x+w,y+h); } -void Terminal::bannerAdv() -{ - reset(); - cls(); - frame(0, 0, 79, 22,1); - forgcol(3); - bold(); - formatPrintf("_____ Glass Project Console _____\n",22,1); - formatPrintf("___ Nucleo Scorda IO Terminal ___\n",22,2); - - resetattrib(); - 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 0......... \n",2,6); //p11 - formatPrintf("Pattern 1......... \n",42,6); //p12 -//7-8 - formatPrintf("Pattern 2......... \n",2,8); //p21 - formatPrintf("Random Act (r1o/f) \n",42,8); //p22 -//9-10 - 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 - forgcol(7); - formatPrintf("Serial Feedback \n",2,21); - - -// grigino - - formatPrintf(string2char(padstr("\n",78,char(196))),1,5); //top 3/4 - formatPrintf(string2char(padstr("\n",78,char(196))),1,9); //top 7/8 - 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... - - 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 - formatPrintf("start, stop, dstop (delay) - rl: reload value\n",2,19); //help - forgcol(7); - locate(0, 23); - this->printf("Command: > "); - - // extra da attivare forse - // 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(11, 23);