Based on Terminal lib from Simon Ford, some adds
Fork of Terminal by
Revision 9:82803dacf475, committed 2015-09-23
- Comitter:
- MaxScorda
- Date:
- Wed Sep 23 23:57:08 2015 +0000
- Parent:
- 8:e3c6d6322506
- Commit message:
- Minor
Changed in this revision
| Terminal.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Terminal.cpp Wed Sep 23 00:04:05 2015 +0000
+++ b/Terminal.cpp Wed Sep 23 23:57:08 2015 +0000
@@ -198,6 +198,7 @@
B_BR =188;
break;
}
+
//riga superiore
formatPrintf(createStr(B_TL) ,x,y);
formatPrintf(string2char(padstr("\n",78,char(B_H))),x+1,y);
@@ -217,17 +218,19 @@
void Terminal::bannerAdv()
{
+ reset();
cls();
frame(0, 0, 79, 22,1);
forgcol(3);
-
+ bold();
formatPrintf("_____ Boot screen _____\n",27,1);
formatPrintf("___ Nucleo Scorda IO Terminal ___\n",22,2);
- //resetattrib();
+ resetattrib();
forgcol(7);
- formatPrintf(string2char(padstr("\n",78,char(196))),1,3); //top 1/2
+ //foreground(0xFfFfFf);
+ formatPrintf(string2char(padstr("\n",78,char(196))),1,3,1); //top 1/2
formatPrintf("Funzione \n",2,4);
formatPrintf("Numero \n",32,4);
formatPrintf("Parametro \n",51,4);
@@ -242,19 +245,20 @@
formatPrintf("Result............ \n",42,10);
//9-10
//11-12
- formatPrintf(string2char(padstr("\n",78,char(196))),1,15); //bottom pot
+ formatPrintf(string2char(padstr("\n",78,char(196))),1,15,1); //bottom pot
formatPrintf(string2char(padstr("\n",78,char(196))),1,20); //azzo funziona...
formatPrintf("Serial Feedback \n",2,21);
// grigino
- foreground(0x0f0f0f);
+ 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
- resetattrib();
+
+ foreground(0xFfFfFF);
// bold();
}
