5 <BODY BGCOLOR="#99ccbb" TEXT="#000000" LINK="#4060b0" VLINK="#000080" ALINK="#ff4040">
7 <I>------------------------------------------------------------------------------</I>
9 <I>-- <A HREF="http://www.gnat.com">GNAT</A> ncurses Binding --</I>
11 <I>-- Terminal_Interface.Curses.Text_IO --</I>
15 <I>-- Version 00.92 --</I>
17 <I>-- The ncurses Ada95 binding is copyrighted 1996 by --</I>
18 <I>-- <A HREF="http://home.t-online.de/home/Juergen.Pfeifer">Jürgen Pfeifer</A>, Email: <A HREF="mailto:Juergen.Pfeifer@T-Online.de">Juergen.Pfeifer@T-Online.de</A> --</I>
20 <I>-- Permission is hereby granted to reproduce and distribute this --</I>
21 <I>-- binding by any means and for any fee, whether alone or as part --</I>
22 <I>-- of a larger distribution, in source or in binary form, PROVIDED --</I>
23 <I>-- this notice is included with any such distribution, and is not --</I>
24 <I>-- removed from any of its header files. Mention of ncurses and the --</I>
25 <I>-- author of this binding in any applications linked with it is --</I>
26 <I>-- highly appreciated. --</I>
28 <I>-- This binding comes AS IS with no warranty, implied or expressed. --</I>
29 <I>------------------------------------------------------------------------------</I>
30 <I>-- Version Control:</I>
31 <I>-- @Revision: 1.5 @</I>
32 <I>------------------------------------------------------------------------------</I>
34 <B>with</B> System.Parameters;
35 <B>with</B> Ada.Text_IO;
36 <B>with</B> Ada.IO_Exceptions;
38 <B>package</B> Terminal_Interface.Curses.Text_IO <B>is</B>
40 <B>use</B> type Ada.Text_IO.Count;
41 <B>subtype</B> Count <B>is</B> Ada.Text_IO.Count;
42 <B>subtype</B> Positive_Count <B>is</B> Count <B>range</B> 1 .. Count'Last;
44 <B>subtype</B> Field <B>is</B> Integer <B>range</B> 0 .. System.Parameters.Field_Max;
45 <B>subtype</B> Number_Base <B>is</B> Integer <B>range</B> 2 .. 16;
47 type Type_Set <B>is</B> (Lower_Case, Upper_Case, Mixed_Case);
49 <I>-- For most of the routines you will see a version without a Window</I>
50 <I>-- type parameter. They will operate on a default window, which can</I>
51 <I>-- be set by the user. It is initially equal to Standard_Window.</I>
53 <B>procedure</B> Set_Window (Win : <B>in</B> Window);
54 <I>-- Set Win as the default window</I>
56 <B>function</B> Get_Window <B>return</B> Window;
57 <I>-- Get the current default window</I>
59 <B>procedure</B> Flush (Win : <B>in</B> Window);
60 <B>procedure</B> Flush;
62 <I>--------------------------------------------</I>
63 <I>-- Specification of line and page lengths --</I>
64 <I>--------------------------------------------</I>
66 <I>-- There are no set routines in this package. I assume, that you allocate</I>
67 <I>-- the window with an appropriate size.</I>
68 <I>-- A scroll-window is interpreted as an page with unbounded page length,</I>
69 <I>-- i.e. it returns the conventional 0 as page length.</I>
71 <B>function</B> Line_Length (Win : <B>in</B> Window) <B>return</B> Count;
72 <B>function</B> Line_Length <B>return</B> Count;
74 <B>function</B> Page_Length (Win : <B>in</B> Window) <B>return</B> Count;
75 <B>function</B> Page_Length <B>return</B> Count;
77 <I>------------------------------------</I>
78 <I>-- Column, Line, and Page Control --</I>
79 <I>------------------------------------</I>
80 <B>procedure</B> New_Line (Win : <B>in</B> Window; Spacing : <B>in</B> Positive_Count := 1);
81 <B>procedure</B> New_Line (Spacing : <B>in</B> Positive_Count := 1);
83 <B>procedure</B> New_Page (Win : <B>in</B> Window);
84 <B>procedure</B> New_Page;
86 <B>procedure</B> Set_Col (Win : <B>in</B> Window; To : <B>in</B> Positive_Count);
87 <B>procedure</B> Set_Col (To : <B>in</B> Positive_Count);
89 <B>procedure</B> Set_Line (Win : <B>in</B> Window; To : <B>in</B> Positive_Count);
90 <B>procedure</B> Set_Line (To : <B>in</B> Positive_Count);
92 <B>function</B> Col (Win : <B>in</B> Window) <B>return</B> Positive_Count;
93 <B>function</B> Col <B>return</B> Positive_Count;
95 <B>function</B> Line (Win : <B>in</B> Window) <B>return</B> Positive_Count;
96 <B>function</B> Line <B>return</B> Positive_Count;
98 <I>-----------------------</I>
99 <I>-- Characters-Output --</I>
100 <I>-----------------------</I>
102 <B>procedure</B> Put (Win : <B>in</B> Window; Item : <B>in</B> Character);
103 <B>procedure</B> Put (Item : <B>in</B> Character);
105 <I>--------------------</I>
106 <I>-- Strings-Output --</I>
107 <I>--------------------</I>
109 <B>procedure</B> Put (Win : <B>in</B> Window; Item : <B>in</B> String);
110 <B>procedure</B> Put (Item : <B>in</B> String);
112 <B>procedure</B> Put_Line
113 (Win : <B>in</B> Window;
114 Item : <B>in</B> String);
116 <B>procedure</B> Put_Line
117 (Item : <B>in</B> String);
121 Status_Error : <B>exception</B> <B>renames</B> Ada.IO_Exceptions.Status_Error;
122 Mode_Error : <B>exception</B> <B>renames</B> Ada.IO_Exceptions.Mode_Error;
123 Name_Error : <B>exception</B> <B>renames</B> Ada.IO_Exceptions.Name_Error;
124 Use_Error : <B>exception</B> <B>renames</B> Ada.IO_Exceptions.Use_Error;
125 Device_Error : <B>exception</B> <B>renames</B> Ada.IO_Exceptions.Device_Error;
126 End_Error : <B>exception</B> <B>renames</B> Ada.IO_Exceptions.End_Error;
127 Data_Error : <B>exception</B> <B>renames</B> Ada.IO_Exceptions.Data_Error;
128 Layout_Error : <B>exception</B> <B>renames</B> Ada.IO_Exceptions.Layout_Error;
130 <B>end</B> Terminal_Interface.Curses.Text_IO;
136 This is BETA software. The interface is subject to change without notice.<P>
137 <!-- Do NOT delete my name or the tool name from below; -->
138 <!-- giving me credit is a condition of use of ada2html -->
139 <P><I>This hypertext format was generated by <A HREF="http://www.adahome.com/Tutorials/Lovelace/dwheeler.htm">David A. Wheeler</A>'s <A HREF="http://www.adahome.com/Resources/Tools/ada2html/ada2html.htm">ada2html</A></I>