curstrace(3X) curstrace(3X)
NAME
tracef, tracedump, traceattr, traceattr2, nctracebits,
tracechar, tracechtype, tracechtype2, tracemouse, trace - curses
debugging routines
SYNOPSIS
##include <>
void tracef(const char **format,, ...);;
void tracedump(const char **label,, WINDOW **win);;
char **traceattr(attrt attr);;
char **traceattr2(int buffer,, chtype ch);;
char **nctracebits(void);;
char **tracechar(const unsigned char ch);;
char **tracechtype(chtype ch);;
char **tracechtype2(int buffer,, chtype ch);;
char **tracemouse(const MEVENT **event);;
void trace(const unsigned int param);;
DESCRIPTION
The trace 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 libncursesg.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 routine which
selectively enables different tracing features, and the tracef routine
which writes formatted data to the trace file.
Calling trace with a nonzero parameter opens the file trace in the cur-
rent directory for output. The parameter is formed by OR'ing values
from the list of TRACExxx definitions in <>. These include:
TRACEDISABLE
turn off tracing.
TRACETIMES
trace user and system times of updates.
TRACETPUTS
trace tputs calls.
TRACEUPDATE
trace update actions, old & new screens.
TRACEMOVE
trace cursor movement and scrolling.
TRACECHARPUT
trace all character outputs.
TRACEORDINARY
trace all update actions. The old and new screen contents are
written to the trace file for each refresh.
TRACECALS
trace all curses calls. The parameters for each call are traced,
as well as return values.
TRACEVIRTPUT
trace virtual character puts, i.e., calls to addch.
TRACEIEVENT
trace low-level input processing, including timeouts.
TRACEBITS
trace state of TY control bits.
TRACEICALS
trace internal/nested calls.
TRACECALS
trace per-character calls.
TRACEDATABASE
trace read/write of terminfo/termcap data.
TRACEATRS
trace changes to video attributes and colors.
TRACEMAXIMUM
maximum trace level, enables all of the separate trace features.
Some tracing features are enabled whenever the trace 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 features, but
they are not compatible with ncurses.
SEE ALSO
curses(3X).
curstrace(3X)
|