added greyout for old messages, removed line count hard limit
Former-commit-id: f5f1e2f1215127bc65b1f125206f5aa554edb0f1
This commit is contained in:
parent
ff1eadd0a5
commit
7250a70654
BIN
dump1090/anet.o
BIN
dump1090/anet.o
Binary file not shown.
|
@ -1 +1 @@
|
|||
6f6bc86677ae1f1852853f24130b9039e026b7bc
|
||||
6e78e92e9261a1c1a12064288f64a1786a246ec6
|
BIN
dump1090/dump1090.o
Normal file
BIN
dump1090/dump1090.o
Normal file
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
ddb13620fcd71864b26415e0f2a4431a0ef1b6f2
|
|
@ -453,7 +453,8 @@ void interactiveShowData(void) {
|
|||
//"---------------------------------------");
|
||||
printf("\x1B[37;40m");
|
||||
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)
|
||||
{
|
||||
int msgs = a->messages;
|
||||
|
@ -566,22 +567,31 @@ void interactiveShowData(void) {
|
|||
//formatted for terminusBold 10x20, no unicode
|
||||
|
||||
if(d<5) {
|
||||
printf("%ls",L"\n\x1B[1;37m┌───────────────────────────────┐\n│");
|
||||
printf("%ls",L"\n\x1B[1;37m┌──────────────────────────────┐\n│");
|
||||
} else {
|
||||
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",
|
||||
a->flight,
|
||||
strFl,
|
||||
strGs,
|
||||
strD,
|
||||
cLat, cLon,
|
||||
(int)((float)signalAverage/25.0f));
|
||||
|
||||
if ((now - a->seen) > 30 ) {
|
||||
printf("\x1B[1;30m%-8s%5s %4s %5s %c%c %d",
|
||||
a->flight,
|
||||
strFl,
|
||||
strGs,
|
||||
strD,
|
||||
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) {
|
||||
printf("%ls",L"\x1B[1;37m│\n└───────────────────────────────┘");
|
||||
printf("%ls",L"\x1B[1;37m│\n└──────────────────────────────┘");
|
||||
count+=2;
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -1 +1 @@
|
|||
c5cca26f61b7bebfa4164ea741dd693aa78bf76c
|
||||
bdd60b55bc0624ff84544a794ae21d71eaf0adc8
|
Binary file not shown.
|
@ -1 +1 @@
|
|||
a747e61e42f6d5e47b99924389b8df5fa0c11786
|
||||
f8df326f25fd1b7dcebda663d33f6c93ea268776
|
Binary file not shown.
Loading…
Reference in a new issue