X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=man%2Fcurs_trace.3x;h=792b7e95a4ab381d96b2dab3313946e9105cae18;hp=0627d1baf44b89884a4c10356ad26d1e3a4873ce;hb=97cb42f22c43eb31a4bf11475bd73ab0e0b10923;hpb=58552e8c761a70f8f0bd591fecdf576fa8216e3e;ds=sidebyside diff --git a/man/curs_trace.3x b/man/curs_trace.3x index 0627d1ba..792b7e95 100644 --- a/man/curs_trace.3x +++ b/man/curs_trace.3x @@ -26,9 +26,10 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_trace.3x,v 1.17 2017/01/07 18:45:42 tom Exp $ +.\" $Id: curs_trace.3x,v 1.19 2017/11/18 23:47:37 tom Exp $ .de bP -.IP \(bu 4 +.ie n .IP \(bu 4 +.el .IP \(bu 2 .. .TH curs_trace 3X "" .na @@ -190,6 +191,25 @@ use_tioctl .hy .ad .RE +.SS Command-line Utilities +.PP +The command-line utilities such as \fBtic\fP(1) provide a verbose option +which extends the set of messages written using the \fBtrace\fP function. +Both of these (\fB\-v\fP and \fBtrace\fP) +use the same variable (\fB_nc_tracing\fP), +which determines the messages which are written. +.PP +Because the command-line utilities may call initialization functions +such as \fBsetupterm\fP, \fBtgetent\fP or \fBuse_extended_names\fP, +some of their debugging output may be directed to the \fItrace\fP file +if the \fBNCURSES_TRACE\fP environment variable is set: +.bP +messages produced in the utility are written to the standard error. +.bP +messages produced by the underlying library are written to \fItrace\fP. +.PP +If ncurses is built without tracing, none of the latter are produced, +and fewer diagnostics are provided by the command-line utilities. .SH RETURN VALUE Routines which return a value are designed to be used as parameters to the \fB_tracef\fR routine.