trace
NAMESYNOPSIS
DESCRIPTION
RETURN VALUE
PORTABILITY
SEE ALSO
NAME
_tracef, _tracedump, _traceattr, _traceattr2, _nc_tracebits, _tracecchar_t, _tracecchar_t2, _tracechar, _tracechtype, _tracechtype2, _tracemouse, trace − curses debugging routines
SYNOPSIS
#include <ncurses/curses.h>
void
_tracef(const char *format, ...);
void _tracedump(const char *label, WINDOW *win);
char *_traceattr(attr_t attr);
char *_traceattr2(int buffer, chtype ch);
char *_nc_tracebits(void);
char * _tracecchar_t(const cchar_t *string);
char * _tracecchar_t2(int buffer, const cchar_t *string);
char *_tracechar(int 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 libncurses_g.a, but may be compiled into any model (shared, static, profile) by defining the symbol TRACE. Additionally, some functions are only available with the wide-character configuration of the libraries.
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 current directory for output. The
parameter is formed by OR’ing values from the list of
TRACE_xxx definitions in
<curses.h>. These include:
TRACE_DISABLE
turn off tracing.
TRACE_TIMES
trace user and system times of updates.
TRACE_TPUTS
trace tputs calls.
TRACE_UPDATE
trace update actions, old & new screens.
TRACE_MOVE
trace cursor movement and scrolling.
TRACE_CHARPUT
trace all character outputs.
TRACE_ORDINARY
trace all update actions. The old and new screen contents are written to the trace file for each refresh.
TRACE_CALLS
trace all curses calls. The parameters for each call are traced, as well as return values.
TRACE_VIRTPUT
trace virtual character puts, i.e., calls to addch.
TRACE_IEVENT
trace low-level input processing, including timeouts.
TRACE_BITS
trace state of TTY control bits.
TRACE_ICALLS
trace internal/nested calls.
TRACE_CCALLS
trace per-character calls.
TRACE_DATABASE
trace read/write of terminfo/termcap data.
TRACE_ATTRS
trace changes to video attributes and colors.
TRACE_MAXIMUM
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.
These functions check the NCURSES_TRACE environment variable, to set the tracing feature as if trace was called:
filter, initscr, new_prescr, newterm, nofilter, ripoffline, setupterm, slk_init, tgetent
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
ncurses(3NCURSES).
More Linux Commands
manpages/glMultiTexCoord2sARB.3gl.html
glMultiTexCoord2sARB(3gl) - set the current texture coordina
glMultiTexCoordARB specifies texture coordinates in one, two, three, or four dimensions. glMultiTexCoord1ARB sets the current texture coordinates to (s, 0, 0, 1
manpages/dbwrap_tool.1.html
dbwrap_tool(1) low level TDB CTDB manipulation tool using th
This tool is part of the samba(7) suite. The dbwrap_tool program is used to read and manipulate TDB/CTDB databases using the dbwrap interface. The following dat
manpages/vfs_preopen.8.html
vfs_preopen(8) - Hide read latencies for applications readin
This VFS module is part of the samba(7) suite. This module assists applications that want to read numbered files in sequence with very strict latency requiremen
manpages/gdk-pixbuf-csource.1.html
gdk-pixbuf-csource(1) - C code generation utility for GdkPix
gdk-pixbuf-csource is a small utility that generates C code containing images, useful for compiling images directly into programs. gdk-pixbuf-csource either tak
manpages/postkick.1.html
postkick(1) - kick a Postfix service - Linux manual page....
The postkick(1) command sends request to the specified service over a local transport channel. This command makes Postfix private IPC accessible for use in, for
manpages/re_comp.3.html
re_comp(3) - BSD regex functions (Library - Linux man page)
re_comp() is used to compile the null-terminated regular expression pointed to by regex. The compiled pattern occupies a static area, the pattern buffer, which
manpages/set_item_userptr.3menu.html
set_item_userptr(3menu) - associate application data with a
Every menu item has a field that can be used to hold application-specific data (that is, the menu-driver code leaves it alone). These functions get and set that
manpages/png2yuv.1.html
png2yuv(1) - Convert PNG images to the YUV4MPEG stream forma
png2yuv decompresses a sequence of PNG files and pipes the image data to stdout as a YUV4MPEG2 stream. Any 8bit/pixel PNG format supported by libpng can be read
manpages/string.3.html
string(3) - string operations (Library - Linux man page)....
The string functions perform string operations on null-terminated strings. See the individual man pages for descriptions of each function. SEE ALSO index(3), ri
manpages/Module::Build::YAML.3pm.html
Module::Build::YAML(3pm) - DEPRECATED - Linux manual page...
This module was originally an inline copy of YAML::Tiny. It has been deprecated in favor of using CPAN::Meta::YAML directly. This module is kept as a subclass w
manpages/Xutf8LookupString.3.html
Xutf8LookupString(3) - obtain composed input from an input m
The XmbLookupString, XwcLookupString and Xutf8LookupString functions return the string from the input method specified in the buffer_return argument. If no stri
manpages/isdnctrl.4.html
isdnctrl.4 (Manual - Linux man page).......................
/dev/isdnctrl is a character device with major number 45 and minor numbers 64 to 127. It allows controlling functionality of the Linux ISDN subsystem. IOCTL FUN
