Home
last modified time | relevance | path

Searched refs:is_a_tty (Results 1 – 1 of 1) sorted by relevance

/babblesim_base-3.6.0-3.5.0/libUtilv1/src/
Dbs_tracing.c20 static int is_a_tty[2] = {-1,-1}; //-1 = we do not know yet ; Indexed 0:stdout, 1:stderr variable
31 is_a_tty[0] = 0; in bs_trace_disable_color()
32 is_a_tty[1] = 0; in bs_trace_disable_color()
37 is_a_tty[0] = -1; in bs_trace_enable_color()
38 is_a_tty[1] = -1; in bs_trace_enable_color()
42 is_a_tty[0] = 1; in bs_trace_force_color()
43 is_a_tty[1] = 1; in bs_trace_force_color()
47 if (is_a_tty[file_index] == -1) { in bs_trace_is_tty()
49 is_a_tty[file_index] = isatty(fileno(fptrs[file_index])); in bs_trace_is_tty()
51 return is_a_tty[file_index]; in bs_trace_is_tty()
[all …]