comparison rvinterf/lowlevel/output.c @ 899:a1065c17429c

rvinterf: implement TCH hiding mode and -v option for verbose
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 12 Dec 2022 22:15:25 +0000
parents e7502631a0f9
children 65953c172f24
comparison
equal deleted inserted replaced
898:203c025e71ab 899:a1065c17429c
12 12
13 extern int no_output; 13 extern int no_output;
14 extern FILE *logF; 14 extern FILE *logF;
15 extern time_t logtime; 15 extern time_t logtime;
16 16
17 void (*output_hook)();
18
17 static struct tm last_tm; 19 static struct tm last_tm;
18 20
19 void 21 void
20 output_line(item) 22 output_line(item)
21 char *item; 23 char *item;
22 { 24 {
23 struct tm *curtm; 25 struct tm *curtm;
24 26
27 if (output_hook)
28 output_hook();
25 if (!no_output) 29 if (!no_output)
26 printf("%s\n", item); 30 printf("%s\n", item);
27 if (!logF) 31 if (!logF)
28 return; 32 return;
29 curtm = gmtime(&logtime); 33 curtm = gmtime(&logtime);