added greyout for old messages, removed line count hard limit

Former-commit-id: 18867af6d89b684fb4a1334661d7535def164fac
This commit is contained in:
Nathan 2017-09-11 17:44:53 -05:00
parent f0ae33df5a
commit afdb4a8305
11 changed files with 24 additions and 15 deletions

Binary file not shown.

View file

@ -1 +1 @@
6f6bc86677ae1f1852853f24130b9039e026b7bc 6e78e92e9261a1c1a12064288f64a1786a246ec6

BIN
dump1090/dump1090.o Normal file

Binary file not shown.

View file

@ -1 +0,0 @@
ddb13620fcd71864b26415e0f2a4431a0ef1b6f2

View file

@ -453,7 +453,8 @@ void interactiveShowData(void) {
//"---------------------------------------"); //"---------------------------------------");
printf("\x1B[37;40m"); printf("\x1B[37;40m");
int numNoDir = 0; int numNoDir = 0;
while(a && (count < 10)) { // while(a && (count < 10)) {
while(a && (count < Modes.interactive_rows)) {
if ((now - a->seen) < Modes.interactive_display_ttl) if ((now - a->seen) < Modes.interactive_display_ttl)
{ {
int msgs = a->messages; int msgs = a->messages;
@ -566,22 +567,31 @@ void interactiveShowData(void) {
//formatted for terminusBold 10x20, no unicode //formatted for terminusBold 10x20, no unicode
if(d<5) { if(d<5) {
printf("%ls",L"\n\x1B[1;37m┌──────────────────────────────\n"); printf("%ls",L"\n\x1B[1;37m┌──────────────────────────────\n");
} else { } else {
printf("\n "); printf("\n ");
} }
printf("\x1B[1;31m%-8s\x1B[1;32m%5s \x1B[1;33m%4s \x1B[1;34m%5s \x1B[1;36m%c%c \x1B[1;35m%d", if ((now - a->seen) > 30 ) {
a->flight, printf("\x1B[1;30m%-8s%5s %4s %5s %c%c %d",
strFl, a->flight,
strGs, strFl,
strD, strGs,
cLat, cLon, strD,
(int)((float)signalAverage/25.0f)); cLat, cLon,
(int)((float)signalAverage/25.0f));
} else {
printf("\x1B[1;31m%-8s\x1B[1;32m%5s \x1B[1;33m%4s \x1B[1;34m%5s \x1B[1;36m%c%c \x1B[1;35m%d",
a->flight,
strFl,
strGs,
strD,
cLat, cLon,
(int)((float)signalAverage/25.0f));
}
if(d<5) { if(d<5) {
printf("%ls",L"\x1B[1;37m│\n└───────────────────────────────┘"); printf("%ls",L"\x1B[1;37m│\n└──────────────────────────────");
count+=2; count+=2;
} }

Binary file not shown.

Binary file not shown.

View file

@ -1 +1 @@
c5cca26f61b7bebfa4164ea741dd693aa78bf76c bdd60b55bc0624ff84544a794ae21d71eaf0adc8

Binary file not shown.

View file

@ -1 +1 @@
a747e61e42f6d5e47b99924389b8df5fa0c11786 f8df326f25fd1b7dcebda663d33f6c93ea268776

Binary file not shown.