⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 curs_trace.3x

📁 ncurses 库 可能有用酒用 没用就算了 我觉得还可以用
💻 3X
字号:
.\"***************************************************************************.\" Copyright (c) 2000-2002,2005 Free Software Foundation, Inc.              *.\"                                                                          *.\" Permission is hereby granted, free of charge, to any person obtaining a  *.\" copy of this software and associated documentation files (the            *.\" "Software"), to deal in the Software without restriction, including      *.\" without limitation the rights to use, copy, modify, merge, publish,      *.\" distribute, distribute with modifications, sublicense, and/or sell       *.\" copies of the Software, and to permit persons to whom the Software is    *.\" furnished to do so, subject to the following conditions:                 *.\"                                                                          *.\" The above copyright notice and this permission notice shall be included  *.\" in all copies or substantial portions of the Software.                   *.\"                                                                          *.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *.\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *.\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *.\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *.\" THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *.\"                                                                          *.\" Except as contained in this notice, the name(s) of the above copyright   *.\" holders shall not be used in advertising or otherwise to promote the     *.\" sale, use or other dealings in this Software without prior written       *.\" authorization.                                                           *.\"***************************************************************************.\".\" $Id: curs_trace.3x,v 1.7 2005/05/15 17:02:54 tom Exp $.TH curs_trace 3X "".na.hy 0.SH NAME\fB_tracef\fR,\fB_tracedump\fR,\fB_traceattr\fR,\fB_traceattr2\fR,\fB_nc_tracebits\fR,\fB_tracechar\fR,\fB_tracechtype\fR,\fB_tracechtype2\fR,\fB_tracemouse\fR,\fBtrace\fR - \fBcurses\fR debugging routines.ad.hy.SH SYNOPSIS\fB#include <curses.h>\fR.sp\fBvoid _tracef(const char *format, ...);\fR.br\fBvoid _tracedump(const char *label, WINDOW *win);\fR.br\fBchar *_traceattr(attr_t attr);\fR.br\fBchar *_traceattr2(int buffer, chtype ch);\fR.br\fBchar *_nc_tracebits(void);\fR.br\fBchar *_tracechar(const unsigned char ch);\fR.br\fBchar *_tracechtype(chtype ch);\fR.br\fBchar *_tracechtype2(int buffer, chtype ch);\fR.br\fBchar *_tracemouse(const MEVENT *event);\fR.br\fBvoid trace(const unsigned int param);\fR.SH DESCRIPTIONThe \fBtrace\fR 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\fIlibncurses_g.a\fR, but may be compiled into any model (shared, static,profile) by defining the symbol \fBTRACE\fR..PPThe principal parts of this interface are the \fBtrace\fR routine whichselectively enables different tracing features, and the \fB_tracef\fRroutine which writes formatted data to the \fItrace\fR file..PPCalling \fBtrace\fR with a nonzero parameter opens the file \fBtrace\fRin the current directory for output.  The parameter is formed by OR'ingvalues from the list of \fBTRACE_\fP\fIxxx\fR definitions in \fB<curses.h>\fR.These include:.TP 5TRACE_DISABLEturn off tracing..TP 5TRACE_TIMEStrace user and system times of updates..TP 5TRACE_TPUTStrace tputs calls..TP 5TRACE_UPDATEtrace update actions, old & new screens..TP 5TRACE_MOVEtrace cursor movement and scrolling..TP 5TRACE_CHARPUTtrace all character outputs..TP 5TRACE_ORDINARYtrace all update actions.The old and new screen contents are written to the trace filefor each refresh..TP 5TRACE_CALLStrace all curses calls.The parameters for each call are traced, as well as return values..TP 5TRACE_VIRTPUTtrace virtual character puts, i.e., calls to \fBaddch\fR..TP 5TRACE_IEVENTtrace low-level input processing, including timeouts..TP 5TRACE_BITStrace state of TTY control bits..TP 5TRACE_ICALLStrace internal/nested calls..TP 5TRACE_CCALLStrace per-character calls..TP 5TRACE_DATABASEtrace read/write of terminfo/termcap data..TP 5TRACE_ATTRStrace changes to video attributes and colors..TP 5TRACE_MAXIMUMmaximum trace level, enables all of the separate trace features..PPSome tracing features are enabled whenever the \fBtrace\fR parameteris nonzero.  Some features overlap.The specific names are used as a guideline..SH RETURN VALUERoutines which return a value are designed to be used as parametersto the \fB_tracef\fR routine..SH PORTABILITYThese functions are not part of the XSI interface.Some other curses implementations are known tohave similar, undocumented features,but they are not compatible with ncurses..SH SEE ALSO\fBcurses\fR(3X)..\"#.\"# The following sets edit modes for GNU EMACS.\"# Local Variables:.\"# mode:nroff.\"# fill-column:79.\"# End:

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -