diff --git a/src/aprs_tt.c b/src/aprs_tt.c index 7b12575..f8c8edb 100644 --- a/src/aprs_tt.c +++ b/src/aprs_tt.c @@ -2078,6 +2078,7 @@ static void check_result (void) int main (int argc, char *argv[]) { + text_color_init (1, 0); aprs_tt_init (NULL, 0); error_count = 0; diff --git a/src/ax25_pad2.c b/src/ax25_pad2.c index 347df4b..8b57f5b 100644 --- a/src/ax25_pad2.c +++ b/src/ax25_pad2.c @@ -792,6 +792,8 @@ int main () strcpy (addrs[1], "WB2OSZ-15"); num_addr = 2; + text_color_init (1, 0); + /* U frame */ for (ftype = frame_type_U_SABME; ftype <= frame_type_U_TEST; ftype++) { diff --git a/src/digipeater.c b/src/digipeater.c index 4daf189..e384982 100644 --- a/src/digipeater.c +++ b/src/digipeater.c @@ -765,6 +765,7 @@ int main (int argc, char *argv[]) strlcpy(mycall, "WB2OSZ-9", sizeof(mycall)); dedupe_init (4); + text_color_init (1, 0); /* * Compile the patterns. diff --git a/src/dtmf.c b/src/dtmf.c index 953b0f7..f8a49da 100644 --- a/src/dtmf.c +++ b/src/dtmf.c @@ -532,6 +532,7 @@ int main () my_audio_config.chan_medium[c] = MEDIUM_RADIO; my_audio_config.achan[c].dtmf_decode = DTMF_DECODE_ON; + text_color_init (1, 0); dtmf_init(&my_audio_config, 50); text_color_set(DW_COLOR_INFO); diff --git a/src/encode_aprs.c b/src/encode_aprs.c index 20992bf..bf2636a 100644 --- a/src/encode_aprs.c +++ b/src/encode_aprs.c @@ -853,6 +853,7 @@ int main (int argc, char *argv[]) char result[100]; int errors = 0; + text_color_init (1, 0); /*********** Position ***********/ diff --git a/src/fx25_rec.c b/src/fx25_rec.c index 9cb5c4d..77a064d 100644 --- a/src/fx25_rec.c +++ b/src/fx25_rec.c @@ -73,6 +73,7 @@ static int fx25_test_count = 0; int main () { + text_color_init(1, 0); fx25_init(3); for (int i = CTAG_MIN; i <= CTAG_MAX; i++) { @@ -480,4 +481,4 @@ static int my_unstuff (int chan, int subchan, int slice, unsigned char * restric } // my_unstuff -// end fx25_rec.c \ No newline at end of file +// end fx25_rec.c diff --git a/src/fx25_send.c b/src/fx25_send.c index 7435be9..0ad5a3e 100644 --- a/src/fx25_send.c +++ b/src/fx25_send.c @@ -55,6 +55,7 @@ static unsigned char preload[] = { int main () { + text_color_init(1, 0); text_color_set(DW_COLOR_ERROR); dw_printf("fxsend - FX.25 unit test.\n"); dw_printf("This generates 11 files named fx01.dat, fx02.dat, ..., fx0b.dat\n"); @@ -333,4 +334,4 @@ static int stuff_it (unsigned char *in, int ilen, unsigned char *out, int osize) } // end stuff_it -// end fx25_send.c \ No newline at end of file +// end fx25_send.c diff --git a/src/gen_packets.c b/src/gen_packets.c index 57b2741..2315e1e 100644 --- a/src/gen_packets.c +++ b/src/gen_packets.c @@ -265,6 +265,8 @@ int main(int argc, char **argv) strlcpy (output_file, "", sizeof(output_file)); + text_color_init (1, 0); + /* * Parse the command line options. */ diff --git a/src/latlong.c b/src/latlong.c index d5f2336..731452d 100644 --- a/src/latlong.c +++ b/src/latlong.c @@ -899,6 +899,8 @@ int main (int argc, char *argv[]) double dlat, dlon; double d, b; + text_color_init (1, 0); + /* Latitude to APRS format. */ latitude_to_str (45.25, 0, result); @@ -1086,4 +1088,4 @@ int main (int argc, char *argv[]) #endif -/* end latlong.c */ \ No newline at end of file +/* end latlong.c */ diff --git a/src/pfilter.c b/src/pfilter.c index 35767a6..0811c00 100644 --- a/src/pfilter.c +++ b/src/pfilter.c @@ -1527,6 +1527,7 @@ static void pftest (int test_num, char *filter, char *packet, int expected); int main () { + text_color_init (1, 0); dw_printf ("Quick test for packet filtering.\n"); dw_printf ("Some error messages are normal. Look at the final success/fail message.\n"); diff --git a/src/telemetry.c b/src/telemetry.c index 2a6c690..ce06623 100644 --- a/src/telemetry.c +++ b/src/telemetry.c @@ -1069,6 +1069,7 @@ int main ( ) strlcpy (comment, "", sizeof(comment)); + text_color_init(1, 0); text_color_set(DW_COLOR_INFO); dw_printf ("Unit test for telemetry decoding functions...\n"); diff --git a/src/tt_text.c b/src/tt_text.c index 112adfe..e13ac96 100644 --- a/src/tt_text.c +++ b/src/tt_text.c @@ -1782,6 +1782,7 @@ static void test_tt2text (char *buttons, char *expect_mp, char *expect_2k, char int main (int argc, char *argv[]) { + text_color_init (1, 0); text_color_set (DW_COLOR_INFO); dw_printf ("Test conversions between normal text and DTMF representation.\n"); dw_printf ("Some error messages are normal. Just look for number of errors at end.\n"); diff --git a/src/xid.c b/src/xid.c index 14e67e8..f1f7981 100644 --- a/src/xid.c +++ b/src/xid.c @@ -653,6 +653,7 @@ int main (int argc, char *argv[]) { unsigned char info[40]; // Currently max of 27 but things can change. char desc[150]; // I've seen 109. + text_color_init (1, 0); /* parse example. */