Skip to content

Commit 3d9e5d7

Browse files
default to no color for output
1 parent 2260df1 commit 3d9e5d7

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/direwolf.c

+1-13
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ int main (int argc, char *argv[])
208208
char input_file[80];
209209
char T_opt_timestamp[40];
210210

211-
int t_opt = 1; /* Text color option. */
211+
int t_opt = 0; /* Text color option. */
212212
int a_opt = 0; /* "-a n" interval, in seconds, for audio statistics report. 0 for none. */
213213
int g_opt = 0; /* G3RUH mode, ignoring default for speed. */
214214
int j_opt = 0; /* 2400 bps PSK compatible with direwolf <= 1.5 */
@@ -269,18 +269,6 @@ int main (int argc, char *argv[])
269269

270270
#endif
271271

272-
/*
273-
* Pre-scan the command line options for the text color option.
274-
* We need to set this before any text output.
275-
* Default will be no colors if stdout is not a terminal (i.e. piped into
276-
* something else such as "tee") but command line can override this.
277-
*/
278-
279-
#if __WIN32__
280-
t_opt = _isatty(_fileno(stdout)) > 0;
281-
#else
282-
t_opt = isatty(fileno(stdout));
283-
#endif
284272
/* 1 = normal, 0 = no text colors. */
285273
/* 2, 3, ... alternate escape sequences for different terminals. */
286274

0 commit comments

Comments
 (0)