Seth Woolley's Man Viewer

_nc_tracebits(3x) - _nc_tracebits, _traceattr, _traceattr2, _tracechar, _tracechtype, _tracechtype2, _tracedump, _tracef, _tracemouse, trace - curses debugging routines - man 3x _nc_tracebits

([section] manual, -k keyword, -K [section] search, -f whatis)
man plain no title

curs_trace(3X)                                                  curs_trace(3X)



NAME
       _tracef,    _tracedump,    _traceattr,    _traceattr2,   _nc_tracebits,
       _tracechar, _tracechtype, _tracechtype2, _tracemouse,  trace(3x,n,3x _nc_tracebits)  -  curses
       debugging routines

SYNOPSIS
       #include <curses.h>
       void _tracef(const char *format, ...);
       void _tracedump(const char *label, WINDOW *win);
       char *_traceattr(attr_t attr(1,5));
       char *_traceattr2(int buffer, chtype ch);
       char *_nc_tracebits(void);
       char *_tracechar(const unsigned char ch);
       char *_tracechtype(chtype ch);
       char *_tracechtype2(int buffer, chtype ch);
       char *_tracemouse(const MEVENT *event);
       void trace(3x,n,3x _nc_tracebits)(const unsigned int param);

DESCRIPTION
       The  trace(3x,n,3x _nc_tracebits)  routines  are  used for debugging the ncurses libraries, as
       well as applications which use the ncurses libraries.  These  functions
       are  normally available only with the debugging library libncurses_g.a,
       but may be compiled into any model (shared, static, profile) by  defin-
       ing the symbol TRACE.

       The  principal  parts  of  this  interface  are the trace(3x,n,3x _nc_tracebits) routine which
       selectively enables different tracing features, and the _tracef routine
       which writes formatted data to the trace(3x,n,3x _nc_tracebits) file.

       Calling trace(3x,n,3x _nc_tracebits) with a nonzero parameter opens the file(1,n) trace(3x,n,3x _nc_tracebits) in(1,8) the cur-
       rent directory for output.  The parameter is formed  by  OR'ing  values
       from the list of TRACE_xxx definitions in(1,8) <curses.h>.  These include:

       TRACE_DISABLE
            turn off tracing.

       TRACE_TIMES
            trace(3x,n,3x _nc_tracebits) user and system times of updates.

       TRACE_TPUTS
            trace(3x,n,3x _nc_tracebits) tputs calls.

       TRACE_UPDATE
            trace(3x,n,3x _nc_tracebits) update(7,n) actions, old & new screens.

       TRACE_MOVE
            trace(3x,n,3x _nc_tracebits) cursor movement and scrolling.

       TRACE_CHARPUT
            trace(3x,n,3x _nc_tracebits) all character outputs.

       TRACE_ORDINARY
            trace(3x,n,3x _nc_tracebits)  all  update(7,n)  actions.   The old and new screen contents are
            written to the trace(3x,n,3x _nc_tracebits) file(1,n) for each refresh.

       TRACE_CALLS
            trace(3x,n,3x _nc_tracebits) all curses calls.  The parameters for each call are  traced,
            as well as return values.

       TRACE_VIRTPUT
            trace(3x,n,3x _nc_tracebits) virtual(5,8) character puts(3,n), i.e., calls to addch.

       TRACE_IEVENT
            trace(3x,n,3x _nc_tracebits) low-level input processing, including timeouts.

       TRACE_BITS
            trace(3x,n,3x _nc_tracebits) state of TTY control bits.

       TRACE_ICALLS
            trace(3x,n,3x _nc_tracebits) internal/nested calls.

       TRACE_CCALLS
            trace(3x,n,3x _nc_tracebits) per-character calls.

       TRACE_DATABASE
            trace(3x,n,3x _nc_tracebits) read(2,n,1 builtins)/write(1,2) of terminfo/termcap data.

       TRACE_ATTRS
            trace(3x,n,3x _nc_tracebits) changes to video attributes and colors.

       TRACE_MAXIMUM
            maximum trace(3x,n,3x _nc_tracebits) level, enables all of the separate trace(3x,n,3x _nc_tracebits) features.

            Some  tracing features are enabled whenever the trace(3x,n,3x _nc_tracebits) parameter is
            nonzero.  Some features overlap.  The specific names are used as a
            guideline.

RETURN VALUE
       Routines  which return a value are designed to be used as parameters to
       the _tracef routine.

PORTABILITY
       These functions are not part of the XSI interface.  Some  other  curses
       implementations  are  known to have similar, undocumented(2,3) features, but
       they are not compatible with ncurses.

SEE ALSO
       curses(3X).



                                                                curs_trace(3X)

References for this manual (incoming links)