terminal_interface-curses-trace__ads.htm 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <HTML><HEAD><TITLE>terminal_interface-curses-trace.ads</TITLE></HEAD>
  3. <BODY>
  4. <HR><DIV ALIGN="center"><H1> File : terminal_interface-curses-trace.ads </H1></DIV><HR>
  5. <PRE>
  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 &lt;aldomel@ix.netcom.com&gt; 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>
  46. <b>package</b> <A HREF="terminal_interface__ads.htm#ref_42_9">Terminal_Interface</A>.<A HREF="terminal_interface-curses__ads.htm#ref_49_28">Curses</A>.<FONT COLOR=red><A NAME="ref_42_35" HREF="terminal_interface-curses-trace__adb.htm#ref_42_40">Trace</A></FONT> <b>is</b>
  47. <b>pragma</b> Preelaborate (<A HREF="terminal_interface__ads.htm#ref_42_9">Terminal_Interface</A>.<A HREF="terminal_interface-curses__ads.htm#ref_49_28">Curses</A>.<A HREF="terminal_interface-curses-trace__ads.htm#ref_42_35">Trace</A>);
  48. <b>pragma</b> Warnings (Off);
  49. <b>type</b> <FONT COLOR=red><A NAME="ref_46_9">Trace_Attribute_Set</A></FONT> <b>is</b>
  50. <b>record</b>
  51. <FONT COLOR=red><A NAME="ref_48_10">Times</A></FONT> : Boolean;
  52. <FONT COLOR=red><A NAME="ref_49_10">Tputs</A></FONT> : Boolean;
  53. <FONT COLOR=red><A NAME="ref_50_10">Update</A></FONT> : Boolean;
  54. <FONT COLOR=red><A NAME="ref_51_10">Cursor_Move</A></FONT> : Boolean;
  55. <FONT COLOR=red><A NAME="ref_52_10">Character_Output</A></FONT> : Boolean;
  56. <FONT COLOR=red><A NAME="ref_53_10">Calls</A></FONT> : Boolean;
  57. <FONT COLOR=red><A NAME="ref_54_10">Virtual_Puts</A></FONT> : Boolean;
  58. <FONT COLOR=red><A NAME="ref_55_10">Input_Events</A></FONT> : Boolean;
  59. <FONT COLOR=red><A NAME="ref_56_10">TTY_State</A></FONT> : Boolean;
  60. <FONT COLOR=red><A NAME="ref_57_10">Internal_Calls</A></FONT> : Boolean;
  61. <FONT COLOR=red><A NAME="ref_58_10">Character_Calls</A></FONT> : Boolean;
  62. <FONT COLOR=red><A NAME="ref_59_10">Termcap_TermInfo</A></FONT> : Boolean;
  63. <b>end</b> <b>record</b>;
  64. <b>pragma</b> Convention (C, <A HREF="terminal_interface-curses-trace__ads.htm#ref_46_9">Trace_Attribute_Set</A>);
  65. <b>for</b> <A HREF="terminal_interface-curses-trace__ads.htm#ref_46_9">Trace_Attribute_Set</A> <b>use</b>
  66. <b>record</b>
  67. <A HREF="terminal_interface-curses-trace__ads.htm#ref_48_10">Times</A> <b>at</b> 0 <b>range</b> 0 .. 0;
  68. <A HREF="terminal_interface-curses-trace__ads.htm#ref_49_10">Tputs</A> <b>at</b> 0 <b>range</b> 1 .. 1;
  69. <A HREF="terminal_interface-curses-trace__ads.htm#ref_50_10">Update</A> <b>at</b> 0 <b>range</b> 2 .. 2;
  70. <A HREF="terminal_interface-curses-trace__ads.htm#ref_51_10">Cursor_Move</A> <b>at</b> 0 <b>range</b> 3 .. 3;
  71. <A HREF="terminal_interface-curses-trace__ads.htm#ref_52_10">Character_Output</A> <b>at</b> 0 <b>range</b> 4 .. 4;
  72. <A HREF="terminal_interface-curses-trace__ads.htm#ref_53_10">Calls</A> <b>at</b> 0 <b>range</b> 5 .. 5;
  73. <A HREF="terminal_interface-curses-trace__ads.htm#ref_54_10">Virtual_Puts</A> <b>at</b> 0 <b>range</b> 6 .. 6;
  74. <A HREF="terminal_interface-curses-trace__ads.htm#ref_55_10">Input_Events</A> <b>at</b> 0 <b>range</b> 7 .. 7;
  75. <A HREF="terminal_interface-curses-trace__ads.htm#ref_56_10">TTY_State</A> <b>at</b> 0 <b>range</b> 8 .. 8;
  76. <A HREF="terminal_interface-curses-trace__ads.htm#ref_57_10">Internal_Calls</A> <b>at</b> 0 <b>range</b> 9 .. 9;
  77. <A HREF="terminal_interface-curses-trace__ads.htm#ref_58_10">Character_Calls</A> <b>at</b> 0 <b>range</b> 10 .. 10;
  78. <A HREF="terminal_interface-curses-trace__ads.htm#ref_59_10">Termcap_TermInfo</A> <b>at</b> 0 <b>range</b> 11 .. 11;
  79. <b>end</b> <b>record</b>;
  80. <b>for</b> <A HREF="terminal_interface-curses-trace__ads.htm#ref_46_9">Trace_Attribute_Set</A>'Size <b>use</b> 32;
  81. <FONT COLOR=green><EM>-- Please note: this rep. clause is generated and may be</EM></FONT>
  82. <FONT COLOR=green><EM>-- different on your system.</EM></FONT>
  83. <b>pragma</b> Warnings (On);
  84. <FONT COLOR=red><A NAME="ref_84_4">Trace_Disable</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses-trace__ads.htm#ref_46_9">Trace_Attribute_Set</A> := (<b>others</b> =&gt; False);
  85. <FONT COLOR=red><A NAME="ref_86_4">Trace_Ordinary</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses-trace__ads.htm#ref_46_9">Trace_Attribute_Set</A> :=
  86. (<A HREF="terminal_interface-curses-trace__ads.htm#ref_48_10">Times</A> =&gt; True,
  87. <A HREF="terminal_interface-curses-trace__ads.htm#ref_49_10">Tputs</A> =&gt; True,
  88. <A HREF="terminal_interface-curses-trace__ads.htm#ref_50_10">Update</A> =&gt; True,
  89. <A HREF="terminal_interface-curses-trace__ads.htm#ref_51_10">Cursor_Move</A> =&gt; True,
  90. <A HREF="terminal_interface-curses-trace__ads.htm#ref_52_10">Character_Output</A> =&gt; True,
  91. <b>others</b> =&gt; False);
  92. <FONT COLOR=red><A NAME="ref_93_4">Trace_Maximum</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses-trace__ads.htm#ref_46_9">Trace_Attribute_Set</A> := (<b>others</b> =&gt; True);
  93. <FONT COLOR=green><EM>------------------------------------------------------------------------------</EM></FONT>
  94. <FONT COLOR=green><EM>-- |=====================================================================</EM></FONT>
  95. <FONT COLOR=green><EM>-- | Man page <A HREF="../man/curs_trace.3x.html">curs_trace.3x</A></EM></FONT>
  96. <FONT COLOR=green><EM>-- |=====================================================================</EM></FONT>
  97. <FONT COLOR=green><EM>-- #1A NAME="AFU_1"#2|</EM></FONT>
  98. <b>procedure</b> <FONT COLOR=red><A NAME="ref_102_14" HREF="terminal_interface-curses-trace__adb.htm#ref_44_14">Trace_On</A></FONT> (<FONT COLOR=red><A NAME="ref_102_24" HREF="terminal_interface-curses-trace__adb.htm#ref_44_24">x</A></FONT> : <A HREF="terminal_interface-curses-trace__ads.htm#ref_46_9">Trace_Attribute_Set</A>);
  99. <FONT COLOR=green><EM>-- The debugging library has trace.</EM></FONT>
  100. <FONT COLOR=green><EM>-- #1A NAME="AFU_2"#2|</EM></FONT>
  101. <b>procedure</b> <FONT COLOR=red><A NAME="ref_106_14" HREF="terminal_interface-curses-trace__adb.htm#ref_50_14">Trace_Put</A></FONT> (<FONT COLOR=red><A NAME="ref_106_25" HREF="terminal_interface-curses-trace__adb.htm#ref_50_25">str</A></FONT> : String);
  102. <FONT COLOR=green><EM>-- AKA: <A HREF="../man/curs_trace.3x.html">_tracef()</A></EM></FONT>
  103. <FONT COLOR=red><A NAME="ref_109_4">Current_Trace_Setting</A></FONT> : <A HREF="terminal_interface-curses-trace__ads.htm#ref_46_9">Trace_Attribute_Set</A>;
  104. <b>pragma</b> Import (C, <A HREF="terminal_interface-curses-trace__ads.htm#ref_109_4">Current_Trace_Setting</A>, "_nc_tracing");
  105. <b>end</b> <A HREF="terminal_interface__ads.htm#ref_42_9">Terminal_Interface</A>.<A HREF="terminal_interface-curses__ads.htm#ref_49_28">Curses</A>.<A HREF="terminal_interface-curses-trace__ads.htm#ref_42_35">Trace</A>;
  106. </PRE></BODY></HTML>