trace


HOME

trace

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
PORTABILITY
SEE ALSO

NAME

_tracef, _tracedump, _traceattr, _traceattr2, _nc_tracebits, _tracecchar_t, _tracecchar_t2, _tracechar, _tracechtype, _tracechtype2, _tracemouse, tracecurses 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/glutSolidOctahedron.3.html
glutSolidOctahedron(3) - render a solid or wireframe octahed
glutSolidOctahedron and glutWireOctahedron render a solid or wireframe octahedron respectively centered at the modeling coordinates origin with a radius of 1.0.

manpages/sgetspent_r.3.html
sgetspent_r(3) - get shadow password file entry (Man Page)
Long ago it was considered safe to have encrypted passwords openly visible in the password file. When computers got faster and people got more security-consciou

manpages/newsgroups.5.html
newsgroups(5) - List of newsgroups and their short descripti
ENCODING OF THE DESCRIPTIONS MINIMAL NEWSGROUPS FILE HISTORY SEE ALSO NAME newsgroups - List of newsgroups and their short descriptions DESCRIPTION The file pat

manpages/lexgrog.1.html
lexgrog(1) - parse header information in man pages (ManPage)
lexgrog is an implementation of the traditional groff guess utility in lex. It reads the list of files on its command line as either man page source files or pr

manpages/ttyname.3.html
ttyname(3) - return name of a terminal - Linux manual page
The function ttyname() returns a pointer to the null-terminated pathname of the terminal device that is open on the file descriptor fd, or NULL on error (for ex

manpages/Tk_GetPixels.3.html
Tk_GetPixels(3) - translate between strings and screen units
These procedures take as argument a specification of distance on the screen (objPtr or string) and compute the corresponding distance either in integer pixels o

manpages/glMapGrid2d.3gl.html
glMapGrid2d(3gl) - define a one- or two-dimensional mesh....
glMapGrid and glEvalMesh are used together to efficiently generate and evaluate a series of evenly-spaced map domain values. glEvalMesh steps through the intege

manpages/Memoize::ExpireTest.3pm.html
Memoize::ExpireTest(3pm) - test for Memoize expiration seman
This module is just for testing expiration semantics. Its not a very good example of how to write an expiration module. If you are looking for an example, I rec

manpages/gnutls_x509_crt_get_proxy.3.html
gnutls_x509_crt_get_proxy(3) - API function - Linux man page
This function will get information from a proxy certificate. It reads the ProxyCertInfo X.509 extension (1.3.6.1.5.5.7.1.14). RETURNS On success, GNUTLS_E_SUCCE

manpages/XkbKeySymEntry.3.html
XkbKeySymEntry(3) - Returns the keysym corresponding to shif
XkbKeySymEntry.3 - The key width and number of groups associated with a key are used to form a small two-dimensional array of KeySyms for a key. This array may

manpages/TYPE_INTEGER.3form.html
TYPE_INTEGER(3form) - form system global variables (ManPage)
These are building blocks for the form library, defining fields that can be created using set_fieldtype(3X). Each provides functions for field- and character-va

manpages/Tcl_DeleteEvents.3.html
Tcl_DeleteEvents(3) - the event queue and notifier interface
The interfaces described here are used to customize the Tcl event loop. The two most common customizations are to add new sources of events and to merge Tcls ev





We can't live, work or learn in freedom unless the software we use is free.