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/update-alternatives.8.html
update-alternatives(8) - maintain symbolic links determining
update-alternatives creates, removes, maintains and displays information about the symbolic links comprising the SUSE alternatives system. It is possible for se
manpages/Tcl_Concat.3.html
Tcl_Concat(3) - concatenate a collection of strings.........
Tcl_Concat is a utility procedure used by several of the Tcl commands. Given a collection of strings, it concatenates them together into a single string, with t
manpages/uname.1.html
uname(1) - print system information - Linux manual page.....
Print certain system information. With no OPTION, same as -s. -a, --all print all information, in the following order, except omit -p and -i if unknown: -s, --k
manpages/glutAddSubMenu.3.html
glutAddSubMenu(3) - adds a sub-menu trigger to the bottom of
glutAddSubMenu adds a sub-menu trigger to the bottom of the current menu. The string name will be displayed for the newly added sub-menu trigger. If the sub-men
manpages/start-pulseaudio-kde.1.html
start-pulseaudio-kde(1) - PulseAudio Sound Server KDE Startu
This script starts pulseaudio (if not already running) and loads module-device-manager to use KDE routing policies. All arguments are directly passed to pulseau
manpages/yaz-client.1.html
yaz-client(1) - Z39 (Commands - Linux manual page)..........
yaz-client is a Z39.50 [1] /SRU [2] client (origin) with a simple command line interface that allows you to test behavior and performance of Z39.50 targets and
manpages/bccmd.1.html
bccmd(1) Utility for the CSR BCCMD interface (Man Page).....
bccmd.1 - bccmd issues BlueCore commands to Cambridge Silicon Radio devices. If run without the <command> argument, a short help page will be displayed. OPTIONS
manpages/Tie::Handle.3pm.html
Tie::Handle(3pm) - base class definitions for tied handles
This module provides some skeletal methods for handle-tying classes. See perltie for a list of the functions required in tying a handle to a package. The basic
manpages/spfquery.1.html
spfquery(1) - (Mail::SPF) - Checks if a given set of e-mail
spfquery checks if a given set of e-mail parameters (e.g., the SMTP senders IP address) matches the responsible domains Sender Policy Framework ( SPF ) policy.
manpages/pthread_getcpuclockid.3.html
pthread_getcpuclockid(3) - retrieve ID of a thread's CPU tim
The pthread_getcpuclockid() function returns the clock ID for the CPU time clock of the thread thread. RETURN VALUE On success, this function returns 0; on erro
manpages/XkbVirtualModsToReal.3.html
XkbVirtualModsToReal(3) - Determines the mapping of virtual
Xkb maintains a virtual modifier mapping, which lists the virtual modifiers associated with, or bound to, each key. The real modifiers bound to a virtual modifi
manpages/bsd_signal.3.html
bsd_signal(3) - signal handling with BSD semantics (ManPage)
The bsd_signal() function takes the same arguments, and performs the same task, as signal(2). The difference between the two is that bsd_signal() is guaranteed
