2 define(`HTMLNAME',`terminal_interface-curses-trace__ads.htm')dnl
3 include(M4MACRO)------------------------------------------------------------------------------
5 -- GNAT ncurses Binding --
7 -- Terminal_Interface.Curses.Trace --
11 ------------------------------------------------------------------------------
12 -- Copyright 2020 Thomas E. Dickey --
13 -- Copyright 2000,2014 Free Software Foundation, Inc. --
15 -- Permission is hereby granted, free of charge, to any person obtaining a --
16 -- copy of this software and associated documentation files (the --
17 -- "Software"), to deal in the Software without restriction, including --
18 -- without limitation the rights to use, copy, modify, merge, publish, --
19 -- distribute, distribute with modifications, sublicense, and/or sell --
20 -- copies of the Software, and to permit persons to whom the Software is --
21 -- furnished to do so, subject to the following conditions: --
23 -- The above copyright notice and this permission notice shall be included --
24 -- in all copies or substantial portions of the Software. --
26 -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS --
27 -- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --
28 -- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. --
29 -- IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, --
30 -- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR --
31 -- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR --
32 -- THE USE OR OTHER DEALINGS IN THE SOFTWARE. --
34 -- Except as contained in this notice, the name(s) of the above copyright --
35 -- holders shall not be used in advertising or otherwise to promote the --
36 -- sale, use or other dealings in this Software without prior written --
38 ------------------------------------------------------------------------------
39 -- Author: Eugene V. Melaragno <aldomel@ix.netcom.com> 2000
42 -- Binding Version 01.00
43 ------------------------------------------------------------------------------
45 package Terminal_Interface.Curses.Trace is
46 pragma Preelaborate (Terminal_Interface.Curses.Trace);
48 type Trace_Attribute_Set is
53 Cursor_Move : Boolean;
54 Character_Output : Boolean;
56 Virtual_Puts : Boolean;
57 Input_Events : Boolean;
59 Internal_Calls : Boolean;
60 Character_Calls : Boolean;
61 Termcap_TermInfo : Boolean;
62 Attribute_Color : Boolean;
64 pragma Convention (C_Pass_By_Copy, Trace_Attribute_Set);
66 for Trace_Attribute_Set use
68 Times at 0 range Curses_Constants.TRACE_TIMES_First
69 .. Curses_Constants.TRACE_TIMES_Last;
70 Tputs at 0 range Curses_Constants.TRACE_TPUTS_First
71 .. Curses_Constants.TRACE_TPUTS_Last;
72 Update at 0 range Curses_Constants.TRACE_UPDATE_First
73 .. Curses_Constants.TRACE_UPDATE_Last;
74 Cursor_Move at 0 range Curses_Constants.TRACE_MOVE_First
75 .. Curses_Constants.TRACE_MOVE_Last;
76 Character_Output at 0 range Curses_Constants.TRACE_CHARPUT_First
77 .. Curses_Constants.TRACE_CHARPUT_Last;
78 Calls at 0 range Curses_Constants.TRACE_CALLS_First
79 .. Curses_Constants.TRACE_CALLS_Last;
80 Virtual_Puts at 0 range Curses_Constants.TRACE_VIRTPUT_First
81 .. Curses_Constants.TRACE_VIRTPUT_Last;
82 Input_Events at 0 range Curses_Constants.TRACE_IEVENT_First
83 .. Curses_Constants.TRACE_IEVENT_Last;
84 TTY_State at 0 range Curses_Constants.TRACE_BITS_First
85 .. Curses_Constants.TRACE_BITS_Last;
86 Internal_Calls at 0 range Curses_Constants.TRACE_ICALLS_First
87 .. Curses_Constants.TRACE_ICALLS_Last;
88 Character_Calls at 0 range Curses_Constants.TRACE_CCALLS_First
89 .. Curses_Constants.TRACE_CCALLS_Last;
90 Termcap_TermInfo at 0 range Curses_Constants.TRACE_DATABASE_First
91 .. Curses_Constants.TRACE_DATABASE_Last;
92 Attribute_Color at 0 range Curses_Constants.TRACE_ATTRS_First
93 .. Curses_Constants.TRACE_ATTRS_Last;
95 pragma Warnings (Off);
96 for Trace_Attribute_Set'Size use Curses_Constants.Trace_Size;
99 Trace_Disable : constant Trace_Attribute_Set := (others => False);
101 Trace_Ordinary : constant Trace_Attribute_Set :=
106 Character_Output => True,
108 Trace_Maximum : constant Trace_Attribute_Set := (others => True);
110 ------------------------------------------------------------------------------
112 -- MANPAGE(`curs_trace.3x')
114 -- ANCHOR(`trace()',`Trace_on')
115 procedure Trace_On (x : Trace_Attribute_Set);
116 -- The debugging library has trace.
118 -- ANCHOR(`_tracef()',`Trace_Put')
119 procedure Trace_Put (str : String);
122 Current_Trace_Setting : Trace_Attribute_Set;
123 pragma Import (C, Current_Trace_Setting, "_nc_tracing");
125 end Terminal_Interface.Curses.Trace;