1 <HTML><HEAD><TITLE>terminal_interface-curses-trace.ads</TITLE></HEAD>
3 <HR><DIV ALIGN="center"><H1> File : terminal_interface-curses-trace.ads </H1></DIV><HR>
6 <FONT COLOR=green><EM>------------------------------------------------------------------------------</EM></FONT>
7 <FONT COLOR=green><EM>-- --</EM></FONT>
8 <FONT COLOR=green><EM>-- <A HREF="http://www.gnat.com">GNAT</A> ncurses Binding --</EM></FONT>
9 <FONT COLOR=green><EM>-- --</EM></FONT>
10 <FONT COLOR=green><EM>-- Terminal_Interface.Curses.Trace --</EM></FONT>
11 <FONT COLOR=green><EM>-- --</EM></FONT>
12 <FONT COLOR=green><EM>-- S P E C --</EM></FONT>
13 <FONT COLOR=green><EM>-- --</EM></FONT>
14 <FONT COLOR=green><EM>------------------------------------------------------------------------------</EM></FONT>
15 <FONT COLOR=green><EM>-- Copyright (c) 2000 Free Software Foundation, Inc. --</EM></FONT>
16 <FONT COLOR=green><EM>-- --</EM></FONT>
17 <FONT COLOR=green><EM>-- Permission is hereby granted, free of charge, to any person obtaining a --</EM></FONT>
18 <FONT COLOR=green><EM>-- copy of this software and associated documentation files (the --</EM></FONT>
19 <FONT COLOR=green><EM>-- "Software"), to deal in the Software without restriction, including --</EM></FONT>
20 <FONT COLOR=green><EM>-- without limitation the rights to use, copy, modify, merge, publish, --</EM></FONT>
21 <FONT COLOR=green><EM>-- distribute, distribute with modifications, sublicense, and/or sell --</EM></FONT>
22 <FONT COLOR=green><EM>-- copies of the Software, and to permit persons to whom the Software is --</EM></FONT>
23 <FONT COLOR=green><EM>-- furnished to do so, subject to the following conditions: --</EM></FONT>
24 <FONT COLOR=green><EM>-- --</EM></FONT>
25 <FONT COLOR=green><EM>-- The above copyright notice and this permission notice shall be included --</EM></FONT>
26 <FONT COLOR=green><EM>-- in all copies or substantial portions of the Software. --</EM></FONT>
27 <FONT COLOR=green><EM>-- --</EM></FONT>
28 <FONT COLOR=green><EM>-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS --</EM></FONT>
29 <FONT COLOR=green><EM>-- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --</EM></FONT>
30 <FONT COLOR=green><EM>-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. --</EM></FONT>
31 <FONT COLOR=green><EM>-- IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, --</EM></FONT>
32 <FONT COLOR=green><EM>-- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR --</EM></FONT>
33 <FONT COLOR=green><EM>-- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR --</EM></FONT>
34 <FONT COLOR=green><EM>-- THE USE OR OTHER DEALINGS IN THE SOFTWARE. --</EM></FONT>
35 <FONT COLOR=green><EM>-- --</EM></FONT>
36 <FONT COLOR=green><EM>-- Except as contained in this notice, the name(s) of the above copyright --</EM></FONT>
37 <FONT COLOR=green><EM>-- holders shall not be used in advertising or otherwise to promote the --</EM></FONT>
38 <FONT COLOR=green><EM>-- sale, use or other dealings in this Software without prior written --</EM></FONT>
39 <FONT COLOR=green><EM>-- authorization. --</EM></FONT>
40 <FONT COLOR=green><EM>------------------------------------------------------------------------------</EM></FONT>
41 <FONT COLOR=green><EM>-- Author: Eugene V. Melaragno <aldomel@ix.netcom.com> 2000</EM></FONT>
42 <FONT COLOR=green><EM>-- Version Control:</EM></FONT>
43 <FONT COLOR=green><EM>-- @Revision: 1.1 @</EM></FONT>
44 <FONT COLOR=green><EM>-- Binding Version 01.00</EM></FONT>
45 <FONT COLOR=green><EM>------------------------------------------------------------------------------</EM></FONT>
47 <b>package</b> Terminal_Interface.Curses.Trace <b>is</b>
48 <b>pragma</b> Preelaborate (Terminal_Interface.Curses.Trace);
50 <b>pragma</b> Warnings (Off);
51 <b>type</b> Trace_Attribute_Set <b>is</b>
53 <FONT COLOR=red><A NAME="49_10">Times</A></FONT> : Boolean;
54 <FONT COLOR=red><A NAME="50_10">Tputs</A></FONT> : Boolean;
55 <FONT COLOR=red><A NAME="51_10">Update</A></FONT> : Boolean;
56 <FONT COLOR=red><A NAME="52_10">Cursor_Move</A></FONT> : Boolean;
57 <FONT COLOR=red><A NAME="53_10">Character_Output</A></FONT> : Boolean;
58 <FONT COLOR=red><A NAME="54_10">Calls</A></FONT> : Boolean;
59 <FONT COLOR=red><A NAME="55_10">Virtual_Puts</A></FONT> : Boolean;
60 <FONT COLOR=red><A NAME="56_10">Input_Events</A></FONT> : Boolean;
61 <FONT COLOR=red><A NAME="57_10">TTY_State</A></FONT> : Boolean;
62 <FONT COLOR=red><A NAME="58_10">Internal_Calls</A></FONT> : Boolean;
63 <FONT COLOR=red><A NAME="59_10">Character_Calls</A></FONT> : Boolean;
64 Termcap_TermInfo : Boolean;
65 <b>end</b> <b>record</b><A HREF="terminal_interface-curses-trace__ads.htm#46_9">;</A>
66 <b>pragma</b> Pack (Trace_Attribute_Set);
67 <b>pragma</b> Convention (C, Trace_Attribute_Set);
69 <b>for</b> Trace_Attribute_Set <b>use</b>
71 Times <b>at</b> 0 <b>range</b> 0 .. 0;
72 Tputs <b>at</b> 0 <b>range</b> 1 .. 1;
73 Update <b>at</b> 0 <b>range</b> 2 .. 2;
74 Cursor_Move <b>at</b> 0 <b>range</b> 3 .. 3;
75 Character_Output <b>at</b> 0 <b>range</b> 4 .. 4;
76 Calls <b>at</b> 0 <b>range</b> 5 .. 5;
77 Virtual_Puts <b>at</b> 0 <b>range</b> 6 .. 6;
78 Input_Events <b>at</b> 0 <b>range</b> 7 .. 7;
79 TTY_State <b>at</b> 0 <b>range</b> 8 .. 8;
80 Internal_Calls <b>at</b> 0 <b>range</b> 9 .. 9;
81 Character_Calls <b>at</b> 0 <b>range</b> 10 .. 10;
82 Termcap_TermInfo <b>at</b> 0 <b>range</b> 11 .. 11;
83 <b>end</b> <b>record</b>;
84 <b>for</b> Trace_Attribute_Set'Size <b>use</b> 32;
85 <FONT COLOR=green><EM>-- Please note: this rep. clause is generated and may be</EM></FONT>
86 <FONT COLOR=green><EM>-- different on your system.</EM></FONT>
88 <b>pragma</b> Warnings (On);
90 Trace_Disable : <b>constant</b> Trace_Attribute_Set := (<b>others</b> => False);
92 Trace_Ordinary : <b>constant</b> Trace_Attribute_Set :=
96 Cursor_Move => True,
97 Character_Output => True,
98 <FONT COLOR=red><A NAME="94_4"> </A></FONT> <b>others</b> => False);
99 Trace_Maximum : <b>constant</b> Trace_Attribute_Set := (<b>others</b> => True);
101 <FONT COLOR=green><EM>------------------------------------------------------------------------------</EM></FONT>
103 <FONT COLOR=green><EM>-- |=====================================================================</EM></FONT>
104 <FONT COLOR=green><EM>-- | Man page <A HREF="../man/curs_trace.3x.html">curs_trace.3x</A></EM></FONT>
105 <FONT COLOR=green><EM>-- |=====================================================================</EM></FONT>
107 <FONT COLOR=green><EM>-- #1A NAME="AFU_1"#2|</EM></FONT>
108 <b>procedure</b> Trace_On (x : Trace_Attribute_Set);
109 <FONT COLOR=green><EM>-- The debugging library has trace.</EM></FONT>
111 <FONT COLOR=green><EM>-- #1A NAME="AFU_2"#2|</EM></FONT>
112 <b>procedure</b> Trace_Put (str : String);
113 <FONT COLOR=green><EM>-- AKA: <A HREF="../man/curs_trace.3x.html">_tracef()</A></EM></FONT>
115 Current_Trace_Setting : Trace_Attribute_Set;
116 <b>pragma</b> Import (C, Current_Trace_Setting, "_nc_tracing");
118 <b>end</b> Terminal_Interface.Curses.Trace;