testing box drawing

Former-commit-id: 6e30538ac45b91332555d679aff68cea5e5725e4
This commit is contained in:
Nathan 2017-09-07 17:13:29 -05:00
parent 64a0c13ab5
commit beff2fa966
4 changed files with 11 additions and 7 deletions

View file

@ -1 +1 @@
890272146e6936b8596ef44ad393d3987dab8418 f949a3ecfc90cfcc5b1b6fedbb8f447476e22b95

View file

@ -498,7 +498,7 @@ void interactiveShowData(void) {
unsigned char * pSig = a->signalLevel; unsigned char * pSig = a->signalLevel;
unsigned int signalAverage = (pSig[0] + pSig[1] + pSig[2] + pSig[3] + unsigned int signalAverage = (pSig[0] + pSig[1] + pSig[2] + pSig[3] +
pSig[4] + pSig[5] + pSig[6] + pSig[7] + 3) >> 9; //up to 4 bars pSig[4] + pSig[5] + pSig[6] + pSig[7] + 3) >> 3; //up to 4 bars
if (a->bFlags & MODES_ACFLAGS_AOG) { if (a->bFlags & MODES_ACFLAGS_AOG) {
snprintf(strFl, 6," grnd"); snprintf(strFl, 6," grnd");
@ -562,13 +562,17 @@ void interactiveShowData(void) {
*/ */
//formatted for terminusBold 10x20, no unicode //formatted for terminusBold 10x20, no unicode
if(count==3) {
printf("\n%lc%lc%lc%lc",0x250C,0x2500,0x2500,0x2510);
}
printf("\n \x1B[%d;31m%-8s\x1B[%d;32m%5s \x1B[%d;33m%3s \x1B[%d;34m%6s \x1B[%d;36m%c%c \x1B[%d;37m%d", printf("\n \x1B[%d;31m%-8s\x1B[%d;32m%5s \x1B[%d;33m%3s \x1B[%d;34m%6s \x1B[%d;36m%c%c \x1B[%d;37m%d",
count%2, a->flight, count%2, a->flight,
count%2, strFl, count%2, strFl,
count%2, strGs, count%2, strGs,
count%2, strD, count%2, strD,
count%2, cLat, cLon, count%2, cLat, cLon,
count%2, signalAverage); count%2, (int)(signalAverage/255));
count++; count++;
} else { } else {
numNoDir++; numNoDir++;
@ -583,7 +587,7 @@ void interactiveShowData(void) {
count++; count++;
} }
printf("\x1B[30;47m\e[1m\n%+3d %c \x1B[37;40m",numNoDir,progress); printf("%c%c%c%c\x1B[30;47m\e[1m\n%+3d %c \x1B[37;40m",192,196,191,179,numNoDir,progress);
fflush(stdout); fflush(stdout);
} }
// //

Binary file not shown.

View file

@ -1 +1 @@
2990254406871e42d1d8475d456da99985676d52 00de1e6ebbc58ed95c008847070cdc305ec2aca4