1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN">
2 <HTML><HEAD><TITLE>terminal_interface-curses.adb
</TITLE></HEAD>
4 <HR><DIV ALIGN=
"center"><H1> File : terminal_interface-curses.adb
</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 --
</EM></FONT>
11 <FONT COLOR=green
><EM>-- --
</EM></FONT>
12 <FONT COLOR=green
><EM>-- B O D Y --
</EM></FONT>
13 <FONT COLOR=green
><EM>-- --
</EM></FONT>
14 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
15 <FONT COLOR=green
><EM>-- Copyright (c)
1998-
2009,
2011 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: Juergen Pfeifer,
1996</EM></FONT>
42 <FONT COLOR=green
><EM>-- Version Control:
</EM></FONT>
43 <FONT COLOR=green
><EM>-- @Revision:
1.8 @
</EM></FONT>
44 <FONT COLOR=green
><EM>-- @Date:
2011/
03/
22 23:
02:
14 @
</EM></FONT>
45 <FONT COLOR=green
><EM>-- Binding Version
01.00</EM></FONT>
46 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
49 <b>with
</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-aux__ads.htm#ref_50_35">Aux
</A>;
50 <b>with
</b> <A HREF=
"interfac__ads.htm#ref_38_9">Interfaces
</A>.C;
<b>use
</b> <A HREF=
"interfac__ads.htm#ref_38_9">Interfaces
</A>.C;
51 <b>with
</b> <A HREF=
"interfac__ads.htm#ref_38_9">Interfaces
</A>.C.Strings;
<b>use
</b> <A HREF=
"interfac__ads.htm#ref_38_9">Interfaces
</A>.C.Strings;
52 <b>with
</b> Ada.Characters.Handling;
<b>use
</b> Ada.Characters.Handling;
53 <b>with
</b> Ada.Strings.Fixed;
55 <b>package
</b> <b>body
</b> <A HREF=
"terminal_interface__ads.htm#ref_42_9">Terminal_Interface
</A>.
<FONT COLOR=red
><A NAME=
"ref_50_33" HREF=
"terminal_interface-curses__ads.htm#ref_49_28">Curses
</A></FONT> <b>is
</b>
57 <b>use
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_50_35">Aux
</A>;
58 <b>use
</b> <b>type
</b> System.Bit_Order;
60 <b>package
</b> <FONT COLOR=red
><A NAME=
"ref_55_12">ASF
</A></FONT> <b>renames
</b> Ada.Strings.Fixed;
62 <b>type
</b> chtype_array
<b>is
</b> <b>array
</b> (size_t
<b>range
</b> <>)
63 <b>of
</b> <b>aliased
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A>;
64 <b>pragma
</b> Convention (C, chtype_array);
66 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
67 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_62_13" HREF=
"terminal_interface-curses__ads.htm#ref_1618_13">Key_Name
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_62_23" HREF=
"terminal_interface-curses__ads.htm#ref_1618_23">Key
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_73_12">Real_Key_Code
</A>)
<b>return
</b> String
69 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_64_16">Keyname
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_64_25" HREF=
"terminal_interface-curses__adb.htm#ref_64_16">K
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> chars_ptr;
70 <b>pragma
</b> Import (C, Keyname,
"keyname");
72 <FONT COLOR=red
><A NAME=
"ref_67_7">Ch
</A></FONT> : Character;
74 <b>if
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1618_23">Key
</A> <= Character'Pos (Character'Last)
<b>then
</b>
75 <A HREF=
"terminal_interface-curses__adb.htm#ref_67_7">Ch
</A> := Character'Val (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1618_23">Key
</A>);
76 <b>if
</b> Is_Control (
<A HREF=
"terminal_interface-curses__adb.htm#ref_67_7">Ch
</A>)
<b>then
</b>
77 <b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1629_13">Un_Control
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A>'(
<A HREF=
"terminal_interface-curses__ads.htm#ref_358_10">Ch
</A> =
> <A HREF=
"terminal_interface-curses__adb.htm#ref_67_7">Ch
</A>,
78 <A HREF=
"terminal_interface-curses__ads.htm#ref_357_10">Color
</A> =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_299_9">Color_Pair
</A>'First,
79 <A HREF=
"terminal_interface-curses__ads.htm#ref_356_10">Attr
</A> =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_352_4">Normal_Video
</A>));
80 <b>elsif
</b> Is_Graphic (
<A HREF=
"terminal_interface-curses__adb.htm#ref_67_7">Ch
</A>)
<b>then
</b>
82 <FONT COLOR=red
><A NAME=
"ref_77_16">S
</A></FONT> : String (
1 ..
1);
84 <A HREF=
"terminal_interface-curses__adb.htm#ref_77_16">S
</A> (
1) :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_67_7">Ch
</A>;
85 <b>return
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_77_16">S
</A>;
91 <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_121_13">Fill_String
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_64_16">Keyname
</A> (
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1618_23">Key
</A>)));
93 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1618_13">Key_Name
</A>;
95 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_90_14" HREF=
"terminal_interface-curses__ads.htm#ref_1612_14">Key_Name
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_90_24" HREF=
"terminal_interface-curses__ads.htm#ref_1612_24">Key
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_73_12">Real_Key_Code
</A>;
96 <FONT COLOR=red
><A NAME=
"ref_91_24" HREF=
"terminal_interface-curses__ads.htm#ref_1613_24">Name
</A></FONT> :
<b>out
</b> String)
99 <A HREF=
"terminal_interface-curses__adb.htm#ref_55_12">ASF
</A>.Move (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1618_13">Key_Name
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1612_24">Key
</A>),
<A HREF=
"terminal_interface-curses__ads.htm#ref_1613_24">Name
</A>);
100 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1612_14">Key_Name
</A>;
102 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
103 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_98_14" HREF=
"terminal_interface-curses__ads.htm#ref_488_14">Init_Screen
</A></FONT>
105 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_100_16">Initscr
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
106 <b>pragma
</b> Import (C, Initscr,
"initscr");
108 <FONT COLOR=red
><A NAME=
"ref_103_7">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
110 <A HREF=
"terminal_interface-curses__adb.htm#ref_103_7">W
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_100_16">Initscr
</A>;
111 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_103_7">W
</A> =
<A HREF=
"terminal_interface-curses__ads.htm#ref_58_4">Null_Window
</A> <b>then
</b>
112 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
113 <b>end
</b> <b>if
</b>;
114 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_488_14">Init_Screen
</A>;
116 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_111_14" HREF=
"terminal_interface-curses__ads.htm#ref_497_14">End_Windows
</A></FONT>
118 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_113_16">Endwin
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
119 <b>pragma
</b> Import (C, Endwin,
"endwin");
121 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_113_16">Endwin
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
122 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
123 <b>end
</b> <b>if
</b>;
124 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_497_14">End_Windows
</A>;
126 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_121_13" HREF=
"terminal_interface-curses__ads.htm#ref_504_13">Is_End_Window
</A></FONT> <b>return
</b> Boolean
128 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_123_16">Isendwin
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A>;
129 <b>pragma
</b> Import (C, Isendwin,
"isendwin");
131 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_123_16">Isendwin
</A> =
<A HREF=
"terminal_interface-curses__ads.htm#ref_1927_4">Curses_Bool_False
</A> <b>then
</b>
135 <b>end
</b> <b>if
</b>;
136 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_504_13">Is_End_Window
</A>;
137 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
138 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_133_14" HREF=
"terminal_interface-curses__ads.htm#ref_513_14">Move_Cursor
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_133_27" HREF=
"terminal_interface-curses__ads.htm#ref_513_27">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
139 <FONT COLOR=red
><A NAME=
"ref_134_27" HREF=
"terminal_interface-curses__ads.htm#ref_514_27">Line
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
140 <FONT COLOR=red
><A NAME=
"ref_135_27" HREF=
"terminal_interface-curses__ads.htm#ref_515_27">Column
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>)
142 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_137_16">Wmove
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_137_23" HREF=
"terminal_interface-curses__adb.htm#ref_137_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
143 <FONT COLOR=red
><A NAME=
"ref_138_23" HREF=
"terminal_interface-curses__adb.htm#ref_137_16">Line
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
144 <FONT COLOR=red
><A NAME=
"ref_139_23" HREF=
"terminal_interface-curses__adb.htm#ref_137_16">Column
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>
145 )
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
146 <b>pragma
</b> Import (C, Wmove,
"wmove");
148 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_137_16">Wmove
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_513_27">Win
</A>,
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_514_27">Line
</A>),
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_515_27">Column
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
149 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
150 <b>end
</b> <b>if
</b>;
151 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_513_14">Move_Cursor
</A>;
152 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
153 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_148_14" HREF=
"terminal_interface-curses__ads.htm#ref_525_14">Add
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_148_19" HREF=
"terminal_interface-curses__ads.htm#ref_525_19">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
154 <FONT COLOR=red
><A NAME=
"ref_149_19" HREF=
"terminal_interface-curses__ads.htm#ref_526_19">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A>)
156 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_151_16">Waddch
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_151_24" HREF=
"terminal_interface-curses__adb.htm#ref_151_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
157 <FONT COLOR=red
><A NAME=
"ref_152_24" HREF=
"terminal_interface-curses__adb.htm#ref_151_16">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
158 <b>pragma
</b> Import (C, Waddch,
"waddch");
160 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_151_16">Waddch
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_525_19">Win
</A>, AttrChar_To_Chtype (
<A HREF=
"terminal_interface-curses__ads.htm#ref_526_19">Ch
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
161 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
162 <b>end
</b> <b>if
</b>;
163 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_525_14">Add
</A>;
165 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_160_14" HREF=
"terminal_interface-curses__ads.htm#ref_530_14">Add
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_160_19" HREF=
"terminal_interface-curses__ads.htm#ref_530_19">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
166 <FONT COLOR=red
><A NAME=
"ref_161_19" HREF=
"terminal_interface-curses__ads.htm#ref_531_19">Ch
</A></FONT> : Character)
169 <A HREF=
"terminal_interface-curses__ads.htm#ref_525_14">Add
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_530_19">Win
</A>,
170 <A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A>'(
<A HREF=
"terminal_interface-curses__ads.htm#ref_358_10">Ch
</A> =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_531_19">Ch
</A>,
171 <A HREF=
"terminal_interface-curses__ads.htm#ref_357_10">Color
</A> =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_299_9">Color_Pair
</A>'First,
172 <A HREF=
"terminal_interface-curses__ads.htm#ref_356_10">Attr
</A> =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_352_4">Normal_Video
</A>));
173 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_530_14">Add
</A>;
175 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_170_14" HREF=
"terminal_interface-curses__ads.htm#ref_536_14">Add
</A></FONT>
176 (
<FONT COLOR=red
><A NAME=
"ref_171_7" HREF=
"terminal_interface-curses__ads.htm#ref_537_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
177 <FONT COLOR=red
><A NAME=
"ref_172_7" HREF=
"terminal_interface-curses__ads.htm#ref_538_7">Line
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
178 <FONT COLOR=red
><A NAME=
"ref_173_7" HREF=
"terminal_interface-curses__ads.htm#ref_539_7">Column
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>;
179 <FONT COLOR=red
><A NAME=
"ref_174_7" HREF=
"terminal_interface-curses__ads.htm#ref_540_7">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A>)
181 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_176_16">mvwaddch
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_176_26" HREF=
"terminal_interface-curses__adb.htm#ref_176_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
182 <FONT COLOR=red
><A NAME=
"ref_177_26" HREF=
"terminal_interface-curses__adb.htm#ref_176_16">Y
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
183 <FONT COLOR=red
><A NAME=
"ref_178_26" HREF=
"terminal_interface-curses__adb.htm#ref_176_16">X
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
184 <FONT COLOR=red
><A NAME=
"ref_179_26" HREF=
"terminal_interface-curses__adb.htm#ref_176_16">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
185 <b>pragma
</b> Import (C, mvwaddch,
"mvwaddch");
187 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_176_16">mvwaddch
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_537_7">Win
</A>,
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_538_7">Line
</A>),
188 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_539_7">Column
</A>),
189 AttrChar_To_Chtype (
<A HREF=
"terminal_interface-curses__ads.htm#ref_540_7">Ch
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
190 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
191 <b>end
</b> <b>if
</b>;
192 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_536_14">Add
</A>;
194 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_189_14" HREF=
"terminal_interface-curses__ads.htm#ref_544_14">Add
</A></FONT>
195 (
<FONT COLOR=red
><A NAME=
"ref_190_7" HREF=
"terminal_interface-curses__ads.htm#ref_545_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
196 <FONT COLOR=red
><A NAME=
"ref_191_7" HREF=
"terminal_interface-curses__ads.htm#ref_546_7">Line
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
197 <FONT COLOR=red
><A NAME=
"ref_192_7" HREF=
"terminal_interface-curses__ads.htm#ref_547_7">Column
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>;
198 <FONT COLOR=red
><A NAME=
"ref_193_7" HREF=
"terminal_interface-curses__ads.htm#ref_548_7">Ch
</A></FONT> : Character)
201 <A HREF=
"terminal_interface-curses__ads.htm#ref_536_14">Add
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_545_7">Win
</A>,
202 <A HREF=
"terminal_interface-curses__ads.htm#ref_546_7">Line
</A>,
203 <A HREF=
"terminal_interface-curses__ads.htm#ref_547_7">Column
</A>,
204 <A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A>'(
<A HREF=
"terminal_interface-curses__ads.htm#ref_358_10">Ch
</A> =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_548_7">Ch
</A>,
205 <A HREF=
"terminal_interface-curses__ads.htm#ref_357_10">Color
</A> =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_299_9">Color_Pair
</A>'First,
206 <A HREF=
"terminal_interface-curses__ads.htm#ref_356_10">Attr
</A> =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_352_4">Normal_Video
</A>));
207 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_544_14">Add
</A>;
209 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_204_14" HREF=
"terminal_interface-curses__ads.htm#ref_553_14">Add_With_Immediate_Echo
</A></FONT>
210 (
<FONT COLOR=red
><A NAME=
"ref_205_7" HREF=
"terminal_interface-curses__ads.htm#ref_554_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
211 <FONT COLOR=red
><A NAME=
"ref_206_7" HREF=
"terminal_interface-curses__ads.htm#ref_555_7">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A>)
213 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_208_16">Wechochar
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_208_27" HREF=
"terminal_interface-curses__adb.htm#ref_208_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
214 <FONT COLOR=red
><A NAME=
"ref_209_27" HREF=
"terminal_interface-curses__adb.htm#ref_208_16">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
215 <b>pragma
</b> Import (C, Wechochar,
"wechochar");
217 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_208_16">Wechochar
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_554_7">Win
</A>, AttrChar_To_Chtype (
<A HREF=
"terminal_interface-curses__ads.htm#ref_555_7">Ch
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
218 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
219 <b>end
</b> <b>if
</b>;
220 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_553_14">Add_With_Immediate_Echo
</A>;
222 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_217_14" HREF=
"terminal_interface-curses__ads.htm#ref_559_14">Add_With_Immediate_Echo
</A></FONT>
223 (
<FONT COLOR=red
><A NAME=
"ref_218_7" HREF=
"terminal_interface-curses__ads.htm#ref_560_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
224 <FONT COLOR=red
><A NAME=
"ref_219_7" HREF=
"terminal_interface-curses__ads.htm#ref_561_7">Ch
</A></FONT> : Character)
227 <A HREF=
"terminal_interface-curses__ads.htm#ref_553_14">Add_With_Immediate_Echo
</A>
228 (
<A HREF=
"terminal_interface-curses__ads.htm#ref_560_7">Win
</A>,
229 <A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A>'(
<A HREF=
"terminal_interface-curses__ads.htm#ref_358_10">Ch
</A> =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_561_7">Ch
</A>,
230 <A HREF=
"terminal_interface-curses__ads.htm#ref_357_10">Color
</A> =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_299_9">Color_Pair
</A>'First,
231 <A HREF=
"terminal_interface-curses__ads.htm#ref_356_10">Attr
</A> =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_352_4">Normal_Video
</A>));
232 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_559_14">Add_With_Immediate_Echo
</A>;
233 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
234 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_229_13" HREF=
"terminal_interface-curses__ads.htm#ref_571_13">Create
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_229_21" HREF=
"terminal_interface-curses__ads.htm#ref_572_7">Number_Of_Lines
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_63_12">Line_Count
</A>;
235 <FONT COLOR=red
><A NAME=
"ref_230_21" HREF=
"terminal_interface-curses__ads.htm#ref_573_7">Number_Of_Columns
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_65_12">Column_Count
</A>;
236 <FONT COLOR=red
><A NAME=
"ref_231_21" HREF=
"terminal_interface-curses__ads.htm#ref_574_7">First_Line_Position
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
237 <FONT COLOR=red
><A NAME=
"ref_232_21" HREF=
"terminal_interface-curses__ads.htm#ref_575_7">First_Column_Position
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>
239 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_234_16">Newwin
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_234_24" HREF=
"terminal_interface-curses__adb.htm#ref_234_16">Number_Of_Lines
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
240 <FONT COLOR=red
><A NAME=
"ref_235_24" HREF=
"terminal_interface-curses__adb.htm#ref_234_16">Number_Of_Columns
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
241 <FONT COLOR=red
><A NAME=
"ref_236_24" HREF=
"terminal_interface-curses__adb.htm#ref_234_16">First_Line_Position
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
242 <FONT COLOR=red
><A NAME=
"ref_237_24" HREF=
"terminal_interface-curses__adb.htm#ref_234_16">First_Column_Position
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
243 <b>pragma
</b> Import (C, Newwin,
"newwin");
245 <FONT COLOR=red
><A NAME=
"ref_240_7">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
247 <A HREF=
"terminal_interface-curses__adb.htm#ref_240_7">W
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_234_16">Newwin
</A> (
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_572_7">Number_Of_Lines
</A>),
248 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_573_7">Number_Of_Columns
</A>),
249 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_574_7">First_Line_Position
</A>),
250 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_575_7">First_Column_Position
</A>));
251 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_240_7">W
</A> =
<A HREF=
"terminal_interface-curses__ads.htm#ref_58_4">Null_Window
</A> <b>then
</b>
252 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
253 <b>end
</b> <b>if
</b>;
254 <b>return
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_240_7">W
</A>;
255 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_571_13">Create
</A>;
257 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_252_14" HREF=
"terminal_interface-curses__ads.htm#ref_590_14">Delete
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_252_22" HREF=
"terminal_interface-curses__ads.htm#ref_590_22">Win
</A></FONT> :
<b>in
</b> <b>out
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
259 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_254_16">Wdelwin
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_254_25" HREF=
"terminal_interface-curses__adb.htm#ref_254_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
260 <b>pragma
</b> Import (C, Wdelwin,
"delwin");
262 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_254_16">Wdelwin
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_590_22">Win
</A>) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
263 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
264 <b>end
</b> <b>if
</b>;
265 <A HREF=
"terminal_interface-curses__ads.htm#ref_590_22">Win
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_58_4">Null_Window
</A>;
266 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_590_14">Delete
</A>;
268 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_263_13" HREF=
"terminal_interface-curses__ads.htm#ref_596_13">Sub_Window
</A></FONT>
269 (
<FONT COLOR=red
><A NAME=
"ref_264_7" HREF=
"terminal_interface-curses__ads.htm#ref_597_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
270 <FONT COLOR=red
><A NAME=
"ref_265_7" HREF=
"terminal_interface-curses__ads.htm#ref_598_7">Number_Of_Lines
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_63_12">Line_Count
</A>;
271 <FONT COLOR=red
><A NAME=
"ref_266_7" HREF=
"terminal_interface-curses__ads.htm#ref_599_7">Number_Of_Columns
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_65_12">Column_Count
</A>;
272 <FONT COLOR=red
><A NAME=
"ref_267_7" HREF=
"terminal_interface-curses__ads.htm#ref_600_7">First_Line_Position
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
273 <FONT COLOR=red
><A NAME=
"ref_268_7" HREF=
"terminal_interface-curses__ads.htm#ref_601_7">First_Column_Position
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>
275 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_270_16">Subwin
</A></FONT>
276 (
<FONT COLOR=red
><A NAME=
"ref_271_10" HREF=
"terminal_interface-curses__adb.htm#ref_270_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
277 <FONT COLOR=red
><A NAME=
"ref_272_10" HREF=
"terminal_interface-curses__adb.htm#ref_270_16">Number_Of_Lines
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
278 <FONT COLOR=red
><A NAME=
"ref_273_10" HREF=
"terminal_interface-curses__adb.htm#ref_270_16">Number_Of_Columns
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
279 <FONT COLOR=red
><A NAME=
"ref_274_10" HREF=
"terminal_interface-curses__adb.htm#ref_270_16">First_Line_Position
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
280 <FONT COLOR=red
><A NAME=
"ref_275_10" HREF=
"terminal_interface-curses__adb.htm#ref_270_16">First_Column_Position
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
281 <b>pragma
</b> Import (C, Subwin,
"subwin");
283 <FONT COLOR=red
><A NAME=
"ref_278_7">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
285 <A HREF=
"terminal_interface-curses__adb.htm#ref_278_7">W
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_270_16">Subwin
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_597_7">Win
</A>,
286 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_598_7">Number_Of_Lines
</A>),
287 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_599_7">Number_Of_Columns
</A>),
288 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_600_7">First_Line_Position
</A>),
289 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_601_7">First_Column_Position
</A>));
290 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_278_7">W
</A> =
<A HREF=
"terminal_interface-curses__ads.htm#ref_58_4">Null_Window
</A> <b>then
</b>
291 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
292 <b>end
</b> <b>if
</b>;
293 <b>return
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_278_7">W
</A>;
294 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_596_13">Sub_Window
</A>;
296 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_291_13" HREF=
"terminal_interface-curses__ads.htm#ref_606_13">Derived_Window
</A></FONT>
297 (
<FONT COLOR=red
><A NAME=
"ref_292_7" HREF=
"terminal_interface-curses__ads.htm#ref_607_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
298 <FONT COLOR=red
><A NAME=
"ref_293_7" HREF=
"terminal_interface-curses__ads.htm#ref_608_7">Number_Of_Lines
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_63_12">Line_Count
</A>;
299 <FONT COLOR=red
><A NAME=
"ref_294_7" HREF=
"terminal_interface-curses__ads.htm#ref_609_7">Number_Of_Columns
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_65_12">Column_Count
</A>;
300 <FONT COLOR=red
><A NAME=
"ref_295_7" HREF=
"terminal_interface-curses__ads.htm#ref_610_7">First_Line_Position
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
301 <FONT COLOR=red
><A NAME=
"ref_296_7" HREF=
"terminal_interface-curses__ads.htm#ref_611_7">First_Column_Position
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>
303 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_298_16">Derwin
</A></FONT>
304 (
<FONT COLOR=red
><A NAME=
"ref_299_10" HREF=
"terminal_interface-curses__adb.htm#ref_298_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
305 <FONT COLOR=red
><A NAME=
"ref_300_10" HREF=
"terminal_interface-curses__adb.htm#ref_298_16">Number_Of_Lines
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
306 <FONT COLOR=red
><A NAME=
"ref_301_10" HREF=
"terminal_interface-curses__adb.htm#ref_298_16">Number_Of_Columns
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
307 <FONT COLOR=red
><A NAME=
"ref_302_10" HREF=
"terminal_interface-curses__adb.htm#ref_298_16">First_Line_Position
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
308 <FONT COLOR=red
><A NAME=
"ref_303_10" HREF=
"terminal_interface-curses__adb.htm#ref_298_16">First_Column_Position
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
309 <b>pragma
</b> Import (C, Derwin,
"derwin");
311 <FONT COLOR=red
><A NAME=
"ref_306_7">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
313 <A HREF=
"terminal_interface-curses__adb.htm#ref_306_7">W
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_298_16">Derwin
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_607_7">Win
</A>,
314 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_608_7">Number_Of_Lines
</A>),
315 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_609_7">Number_Of_Columns
</A>),
316 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_610_7">First_Line_Position
</A>),
317 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_611_7">First_Column_Position
</A>));
318 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_306_7">W
</A> =
<A HREF=
"terminal_interface-curses__ads.htm#ref_58_4">Null_Window
</A> <b>then
</b>
319 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
320 <b>end
</b> <b>if
</b>;
321 <b>return
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_306_7">W
</A>;
322 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_606_13">Derived_Window
</A>;
324 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_319_13" HREF=
"terminal_interface-curses__ads.htm#ref_616_13">Duplicate
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_319_24" HREF=
"terminal_interface-curses__ads.htm#ref_616_24">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>
326 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_321_16">Dupwin
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_321_24" HREF=
"terminal_interface-curses__adb.htm#ref_321_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
327 <b>pragma
</b> Import (C, Dupwin,
"dupwin");
329 <FONT COLOR=red
><A NAME=
"ref_324_7">W
</A></FONT> :
<b>constant
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_321_16">Dupwin
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_616_24">Win
</A>);
331 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_324_7">W
</A> =
<A HREF=
"terminal_interface-curses__ads.htm#ref_58_4">Null_Window
</A> <b>then
</b>
332 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
333 <b>end
</b> <b>if
</b>;
334 <b>return
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_324_7">W
</A>;
335 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_616_13">Duplicate
</A>;
337 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_332_14" HREF=
"terminal_interface-curses__ads.htm#ref_621_14">Move_Window
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_332_27" HREF=
"terminal_interface-curses__ads.htm#ref_621_27">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
338 <FONT COLOR=red
><A NAME=
"ref_333_27" HREF=
"terminal_interface-curses__ads.htm#ref_622_27">Line
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
339 <FONT COLOR=red
><A NAME=
"ref_334_27" HREF=
"terminal_interface-curses__ads.htm#ref_623_27">Column
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>)
341 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_336_16">Mvwin
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_336_23" HREF=
"terminal_interface-curses__adb.htm#ref_336_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
342 <FONT COLOR=red
><A NAME=
"ref_337_23" HREF=
"terminal_interface-curses__adb.htm#ref_336_16">Line
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
343 <FONT COLOR=red
><A NAME=
"ref_338_23" HREF=
"terminal_interface-curses__adb.htm#ref_336_16">Column
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
344 <b>pragma
</b> Import (C, Mvwin,
"mvwin");
346 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_336_16">Mvwin
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_621_27">Win
</A>,
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_622_27">Line
</A>),
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_623_27">Column
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
347 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
348 <b>end
</b> <b>if
</b>;
349 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_621_14">Move_Window
</A>;
351 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_346_14" HREF=
"terminal_interface-curses__ads.htm#ref_628_14">Move_Derived_Window
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_346_35" HREF=
"terminal_interface-curses__ads.htm#ref_628_35">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
352 <FONT COLOR=red
><A NAME=
"ref_347_35" HREF=
"terminal_interface-curses__ads.htm#ref_629_35">Line
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
353 <FONT COLOR=red
><A NAME=
"ref_348_35" HREF=
"terminal_interface-curses__ads.htm#ref_630_35">Column
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>)
355 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_350_16">Mvderwin
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_350_26" HREF=
"terminal_interface-curses__adb.htm#ref_350_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
356 <FONT COLOR=red
><A NAME=
"ref_351_26" HREF=
"terminal_interface-curses__adb.htm#ref_350_16">Line
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
357 <FONT COLOR=red
><A NAME=
"ref_352_26" HREF=
"terminal_interface-curses__adb.htm#ref_350_16">Column
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
358 <b>pragma
</b> Import (C, Mvderwin,
"mvderwin");
360 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_350_16">Mvderwin
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_628_35">Win
</A>,
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_629_35">Line
</A>),
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_630_35">Column
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
361 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
362 <b>end
</b> <b>if
</b>;
363 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_628_14">Move_Derived_Window
</A>;
365 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_360_14" HREF=
"terminal_interface-curses__ads.htm#ref_645_14">Set_Synch_Mode
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_360_30" HREF=
"terminal_interface-curses__ads.htm#ref_645_30">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
366 <FONT COLOR=red
><A NAME=
"ref_361_30" HREF=
"terminal_interface-curses__ads.htm#ref_646_30">Mode
</A></FONT> : Boolean := False)
368 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_363_16">Syncok
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_363_24" HREF=
"terminal_interface-curses__adb.htm#ref_363_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
369 <FONT COLOR=red
><A NAME=
"ref_364_24" HREF=
"terminal_interface-curses__adb.htm#ref_363_16">Mode
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
370 <b>pragma
</b> Import (C, Syncok,
"syncok");
372 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_363_16">Syncok
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_645_30">Win
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A> (Boolean'Pos (
<A HREF=
"terminal_interface-curses__ads.htm#ref_646_30">Mode
</A>))) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
373 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
374 <b>end
</b> <b>if
</b>;
375 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_645_14">Set_Synch_Mode
</A>;
376 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
377 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_372_14" HREF=
"terminal_interface-curses__ads.htm#ref_655_14">Add
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_372_19" HREF=
"terminal_interface-curses__ads.htm#ref_655_19">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
378 <FONT COLOR=red
><A NAME=
"ref_373_19" HREF=
"terminal_interface-curses__ads.htm#ref_656_19">Str
</A></FONT> : String;
379 <FONT COLOR=red
><A NAME=
"ref_374_19" HREF=
"terminal_interface-curses__ads.htm#ref_657_19">Len
</A></FONT> : Integer := -
1)
381 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_376_16">Waddnstr
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_376_26" HREF=
"terminal_interface-curses__adb.htm#ref_376_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
382 <FONT COLOR=red
><A NAME=
"ref_377_26" HREF=
"terminal_interface-curses__adb.htm#ref_376_16">Str
</A></FONT> : char_array;
383 <FONT COLOR=red
><A NAME=
"ref_378_26" HREF=
"terminal_interface-curses__adb.htm#ref_376_16">Len
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> := -
1)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
384 <b>pragma
</b> Import (C, Waddnstr,
"waddnstr");
386 <FONT COLOR=red
><A NAME=
"ref_381_7">Txt
</A></FONT> : char_array (
0 ..
<A HREF=
"terminal_interface-curses__ads.htm#ref_656_19">Str
</A>'Length);
387 <FONT COLOR=red
><A NAME=
"ref_382_7">Length
</A></FONT> : size_t;
389 To_C (
<A HREF=
"terminal_interface-curses__ads.htm#ref_656_19">Str
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_381_7">Txt
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_382_7">Length
</A>);
390 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_376_16">Waddnstr
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_655_19">Win
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_381_7">Txt
</A>,
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_657_19">Len
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
391 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
392 <b>end
</b> <b>if
</b>;
393 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_655_14">Add
</A>;
395 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_390_14" HREF=
"terminal_interface-curses__ads.htm#ref_664_14">Add
</A></FONT>
396 (
<FONT COLOR=red
><A NAME=
"ref_391_7" HREF=
"terminal_interface-curses__ads.htm#ref_664_19">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
397 <FONT COLOR=red
><A NAME=
"ref_392_7" HREF=
"terminal_interface-curses__ads.htm#ref_665_19">Line
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
398 <FONT COLOR=red
><A NAME=
"ref_393_7" HREF=
"terminal_interface-curses__ads.htm#ref_666_19">Column
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>;
399 <FONT COLOR=red
><A NAME=
"ref_394_7" HREF=
"terminal_interface-curses__ads.htm#ref_667_19">Str
</A></FONT> : String;
400 <FONT COLOR=red
><A NAME=
"ref_395_7" HREF=
"terminal_interface-curses__ads.htm#ref_668_19">Len
</A></FONT> : Integer := -
1)
403 <A HREF=
"terminal_interface-curses__ads.htm#ref_513_14">Move_Cursor
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_664_19">Win
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_665_19">Line
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_666_19">Column
</A>);
404 <A HREF=
"terminal_interface-curses__ads.htm#ref_655_14">Add
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_664_19">Win
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_667_19">Str
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_668_19">Len
</A>);
405 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_664_14">Add
</A>;
406 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
407 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_402_14" HREF=
"terminal_interface-curses__ads.htm#ref_679_14">Add
</A></FONT>
408 (
<FONT COLOR=red
><A NAME=
"ref_403_7" HREF=
"terminal_interface-curses__ads.htm#ref_679_19">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
409 <FONT COLOR=red
><A NAME=
"ref_404_7" HREF=
"terminal_interface-curses__ads.htm#ref_680_19">Str
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_373_4">Attributed_String
</A>;
410 <FONT COLOR=red
><A NAME=
"ref_405_7" HREF=
"terminal_interface-curses__ads.htm#ref_681_19">Len
</A></FONT> : Integer := -
1)
412 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_407_16">Waddchnstr
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_407_28" HREF=
"terminal_interface-curses__adb.htm#ref_407_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
413 <FONT COLOR=red
><A NAME=
"ref_408_28" HREF=
"terminal_interface-curses__adb.htm#ref_407_16">Str
</A></FONT> : chtype_array;
414 <FONT COLOR=red
><A NAME=
"ref_409_28" HREF=
"terminal_interface-curses__adb.htm#ref_407_16">Len
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> := -
1)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
415 <b>pragma
</b> Import (C, Waddchnstr,
"waddchnstr");
417 <FONT COLOR=red
><A NAME=
"ref_412_7">Txt
</A></FONT> : chtype_array (
0 ..
<A HREF=
"terminal_interface-curses__ads.htm#ref_680_19">Str
</A>'Length);
419 <b>for
</b> <FONT COLOR=red
><A NAME=
"ref_414_11">Length
</A></FONT> <b>in
</b> 1 .. size_t (
<A HREF=
"terminal_interface-curses__ads.htm#ref_680_19">Str
</A>'Length)
<b>loop
</b>
420 <A HREF=
"terminal_interface-curses__adb.htm#ref_412_7">Txt
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_414_11">Length
</A> -
1) :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_680_19">Str
</A> (Natural (
<A HREF=
"terminal_interface-curses__adb.htm#ref_414_11">Length
</A>));
421 <b>end
</b> <b>loop
</b>;
422 <A HREF=
"terminal_interface-curses__adb.htm#ref_412_7">Txt
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_680_19">Str
</A>'Length) :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_373_4">Default_Character
</A>;
423 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_407_16">Waddchnstr
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_679_19">Win
</A>,
424 <A HREF=
"terminal_interface-curses__adb.htm#ref_412_7">Txt
</A>,
425 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_681_19">Len
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
426 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
427 <b>end
</b> <b>if
</b>;
428 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_679_14">Add
</A>;
430 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_425_14" HREF=
"terminal_interface-curses__ads.htm#ref_688_14">Add
</A></FONT>
431 (
<FONT COLOR=red
><A NAME=
"ref_426_7" HREF=
"terminal_interface-curses__ads.htm#ref_688_19">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
432 <FONT COLOR=red
><A NAME=
"ref_427_7" HREF=
"terminal_interface-curses__ads.htm#ref_689_19">Line
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
433 <FONT COLOR=red
><A NAME=
"ref_428_7" HREF=
"terminal_interface-curses__ads.htm#ref_690_19">Column
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>;
434 <FONT COLOR=red
><A NAME=
"ref_429_7" HREF=
"terminal_interface-curses__ads.htm#ref_691_19">Str
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_373_4">Attributed_String
</A>;
435 <FONT COLOR=red
><A NAME=
"ref_430_7" HREF=
"terminal_interface-curses__ads.htm#ref_692_19">Len
</A></FONT> : Integer := -
1)
438 <A HREF=
"terminal_interface-curses__ads.htm#ref_513_14">Move_Cursor
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_688_19">Win
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_689_19">Line
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_690_19">Column
</A>);
439 <A HREF=
"terminal_interface-curses__ads.htm#ref_679_14">Add
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_688_19">Win
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_691_19">Str
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_692_19">Len
</A>);
440 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_688_14">Add
</A>;
441 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
442 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_437_14" HREF=
"terminal_interface-curses__ads.htm#ref_706_14">Border
</A></FONT>
443 (
<FONT COLOR=red
><A NAME=
"ref_438_7" HREF=
"terminal_interface-curses__ads.htm#ref_707_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
444 <FONT COLOR=red
><A NAME=
"ref_439_7" HREF=
"terminal_interface-curses__ads.htm#ref_708_7">Left_Side_Symbol
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_373_4">Default_Character
</A>;
445 <FONT COLOR=red
><A NAME=
"ref_440_7" HREF=
"terminal_interface-curses__ads.htm#ref_709_7">Right_Side_Symbol
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_373_4">Default_Character
</A>;
446 <FONT COLOR=red
><A NAME=
"ref_441_7" HREF=
"terminal_interface-curses__ads.htm#ref_710_7">Top_Side_Symbol
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_373_4">Default_Character
</A>;
447 <FONT COLOR=red
><A NAME=
"ref_442_7" HREF=
"terminal_interface-curses__ads.htm#ref_711_7">Bottom_Side_Symbol
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_373_4">Default_Character
</A>;
448 <FONT COLOR=red
><A NAME=
"ref_443_7" HREF=
"terminal_interface-curses__ads.htm#ref_712_7">Upper_Left_Corner_Symbol
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_373_4">Default_Character
</A>;
449 <FONT COLOR=red
><A NAME=
"ref_444_7" HREF=
"terminal_interface-curses__ads.htm#ref_713_7">Upper_Right_Corner_Symbol
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_373_4">Default_Character
</A>;
450 <FONT COLOR=red
><A NAME=
"ref_445_7" HREF=
"terminal_interface-curses__ads.htm#ref_714_7">Lower_Left_Corner_Symbol
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_373_4">Default_Character
</A>;
451 <FONT COLOR=red
><A NAME=
"ref_446_7" HREF=
"terminal_interface-curses__ads.htm#ref_715_7">Lower_Right_Corner_Symbol
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_373_4">Default_Character
</A>)
453 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_448_16">Wborder
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_448_25" HREF=
"terminal_interface-curses__adb.htm#ref_448_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
454 <FONT COLOR=red
><A NAME=
"ref_449_25" HREF=
"terminal_interface-curses__adb.htm#ref_448_16">LS
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>;
455 <FONT COLOR=red
><A NAME=
"ref_450_25" HREF=
"terminal_interface-curses__adb.htm#ref_448_16">RS
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>;
456 <FONT COLOR=red
><A NAME=
"ref_451_25" HREF=
"terminal_interface-curses__adb.htm#ref_448_16">TS
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>;
457 <FONT COLOR=red
><A NAME=
"ref_452_25" HREF=
"terminal_interface-curses__adb.htm#ref_448_16">BS
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>;
458 <FONT COLOR=red
><A NAME=
"ref_453_25" HREF=
"terminal_interface-curses__adb.htm#ref_448_16">ULC
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>;
459 <FONT COLOR=red
><A NAME=
"ref_454_25" HREF=
"terminal_interface-curses__adb.htm#ref_448_16">URC
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>;
460 <FONT COLOR=red
><A NAME=
"ref_455_25" HREF=
"terminal_interface-curses__adb.htm#ref_448_16">LLC
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>;
461 <FONT COLOR=red
><A NAME=
"ref_456_25" HREF=
"terminal_interface-curses__adb.htm#ref_448_16">LRC
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
462 <b>pragma
</b> Import (C, Wborder,
"wborder");
464 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_448_16">Wborder
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_707_7">Win
</A>,
465 AttrChar_To_Chtype (
<A HREF=
"terminal_interface-curses__ads.htm#ref_708_7">Left_Side_Symbol
</A>),
466 AttrChar_To_Chtype (
<A HREF=
"terminal_interface-curses__ads.htm#ref_709_7">Right_Side_Symbol
</A>),
467 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_75_4">AttrChar_To_Chtype
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_710_7">Top_Side_Symbol
</A>),
468 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_75_4">AttrChar_To_Chtype
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_711_7">Bottom_Side_Symbol
</A>),
469 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_75_4">AttrChar_To_Chtype
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_712_7">Upper_Left_Corner_Symbol
</A>),
470 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_75_4">AttrChar_To_Chtype
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_713_7">Upper_Right_Corner_Symbol
</A>),
471 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_75_4">AttrChar_To_Chtype
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_714_7">Lower_Left_Corner_Symbol
</A>),
472 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_75_4">AttrChar_To_Chtype
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_715_7">Lower_Right_Corner_Symbol
</A>)
473 ) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A>
475 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
476 <b>end
</b> <b>if
</b>;
477 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_706_14">Border
</A>;
479 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_474_14" HREF=
"terminal_interface-curses__ads.htm#ref_722_14">Box
</A></FONT>
480 (
<FONT COLOR=red
><A NAME=
"ref_475_7" HREF=
"terminal_interface-curses__ads.htm#ref_723_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
481 <FONT COLOR=red
><A NAME=
"ref_476_7" HREF=
"terminal_interface-curses__ads.htm#ref_724_7">Vertical_Symbol
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_373_4">Default_Character
</A>;
482 <FONT COLOR=red
><A NAME=
"ref_477_7" HREF=
"terminal_interface-curses__ads.htm#ref_725_7">Horizontal_Symbol
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_373_4">Default_Character
</A>)
485 <A HREF=
"terminal_interface-curses__ads.htm#ref_706_14">Border
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_723_7">Win
</A>,
486 <A HREF=
"terminal_interface-curses__ads.htm#ref_724_7">Vertical_Symbol
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_724_7">Vertical_Symbol
</A>,
487 <A HREF=
"terminal_interface-curses__ads.htm#ref_725_7">Horizontal_Symbol
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_725_7">Horizontal_Symbol
</A>);
488 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_722_14">Box
</A>;
490 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_485_14" HREF=
"terminal_interface-curses__ads.htm#ref_730_14">Horizontal_Line
</A></FONT>
491 (
<FONT COLOR=red
><A NAME=
"ref_486_7" HREF=
"terminal_interface-curses__ads.htm#ref_731_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
492 <FONT COLOR=red
><A NAME=
"ref_487_7" HREF=
"terminal_interface-curses__ads.htm#ref_732_7">Line_Size
</A></FONT> : Natural;
493 <FONT COLOR=red
><A NAME=
"ref_488_7" HREF=
"terminal_interface-curses__ads.htm#ref_733_7">Line_Symbol
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_373_4">Default_Character
</A>)
495 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_490_16">Whline
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_490_24" HREF=
"terminal_interface-curses__adb.htm#ref_490_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
496 <FONT COLOR=red
><A NAME=
"ref_491_24" HREF=
"terminal_interface-curses__adb.htm#ref_490_16">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>;
497 <FONT COLOR=red
><A NAME=
"ref_492_24" HREF=
"terminal_interface-curses__adb.htm#ref_490_16">Len
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
498 <b>pragma
</b> Import (C, Whline,
"whline");
500 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_490_16">Whline
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_731_7">Win
</A>,
501 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_75_4">AttrChar_To_Chtype
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_733_7">Line_Symbol
</A>),
502 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_732_7">Line_Size
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
503 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
504 <b>end
</b> <b>if
</b>;
505 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_730_14">Horizontal_Line
</A>;
507 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_502_14" HREF=
"terminal_interface-curses__ads.htm#ref_739_14">Vertical_Line
</A></FONT>
508 (
<FONT COLOR=red
><A NAME=
"ref_503_7" HREF=
"terminal_interface-curses__ads.htm#ref_740_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
509 <FONT COLOR=red
><A NAME=
"ref_504_7" HREF=
"terminal_interface-curses__ads.htm#ref_741_7">Line_Size
</A></FONT> : Natural;
510 <FONT COLOR=red
><A NAME=
"ref_505_7" HREF=
"terminal_interface-curses__ads.htm#ref_742_7">Line_Symbol
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_373_4">Default_Character
</A>)
512 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_507_16">Wvline
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_507_24" HREF=
"terminal_interface-curses__adb.htm#ref_507_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
513 <FONT COLOR=red
><A NAME=
"ref_508_24" HREF=
"terminal_interface-curses__adb.htm#ref_507_16">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>;
514 <FONT COLOR=red
><A NAME=
"ref_509_24" HREF=
"terminal_interface-curses__adb.htm#ref_507_16">Len
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
515 <b>pragma
</b> Import (C, Wvline,
"wvline");
517 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_507_16">Wvline
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_740_7">Win
</A>,
518 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_75_4">AttrChar_To_Chtype
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_742_7">Line_Symbol
</A>),
519 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_741_7">Line_Size
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
520 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
521 <b>end
</b> <b>if
</b>;
522 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_739_14">Vertical_Line
</A>;
524 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
525 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_520_13" HREF=
"terminal_interface-curses__ads.htm#ref_753_13">Get_Keystroke
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_520_28" HREF=
"terminal_interface-curses__ads.htm#ref_753_28">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>)
526 <b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_73_12">Real_Key_Code
</A>
528 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_523_16">Wgetch
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_523_24" HREF=
"terminal_interface-curses__adb.htm#ref_523_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
529 <b>pragma
</b> Import (C, Wgetch,
"wgetch");
531 <FONT COLOR=red
><A NAME=
"ref_526_7">C
</A></FONT> :
<b>constant
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_523_16">Wgetch
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_753_28">Win
</A>);
533 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_526_7">C
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
534 <b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_88_4">Key_None
</A>;
536 <b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_73_12">Real_Key_Code
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_526_7">C
</A>);
537 <b>end
</b> <b>if
</b>;
538 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_753_13">Get_Keystroke
</A>;
540 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_535_14" HREF=
"terminal_interface-curses__ads.htm#ref_764_14">Undo_Keystroke
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_535_30" HREF=
"terminal_interface-curses__ads.htm#ref_764_30">Key
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_73_12">Real_Key_Code
</A>)
542 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_537_16">Ungetch
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_537_25" HREF=
"terminal_interface-curses__adb.htm#ref_537_16">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
543 <b>pragma
</b> Import (C, Ungetch,
"ungetch");
545 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_537_16">Ungetch
</A> (
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_764_30">Key
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
546 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
547 <b>end
</b> <b>if
</b>;
548 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_764_14">Undo_Keystroke
</A>;
550 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_545_13" HREF=
"terminal_interface-curses__ads.htm#ref_769_13">Has_Key
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_545_22" HREF=
"terminal_interface-curses__ads.htm#ref_769_22">Key
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_78_12">Special_Key_Code
</A>)
<b>return
</b> Boolean
552 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_547_16">Haskey
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_547_24" HREF=
"terminal_interface-curses__adb.htm#ref_547_16">Key
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
553 <b>pragma
</b> Import (C, Haskey,
"has_key");
555 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_547_16">Haskey
</A> (
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_769_22">Key
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_75_4">Curses_False
</A> <b>then
</b>
559 <b>end
</b> <b>if
</b>;
560 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_769_13">Has_Key
</A>;
562 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_557_13" HREF=
"terminal_interface-curses__ads.htm#ref_776_13">Is_Function_Key
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_557_30" HREF=
"terminal_interface-curses__ads.htm#ref_776_30">Key
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_78_12">Special_Key_Code
</A>)
<b>return
</b> Boolean
564 <FONT COLOR=red
><A NAME=
"ref_559_7">L
</A></FONT> :
<b>constant
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_78_12">Special_Key_Code
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_78_12">Special_Key_Code
</A> (Natural (
<A HREF=
"terminal_interface-curses__ads.htm#ref_98_4">Key_F0
</A>) +
565 Natural (
<A HREF=
"terminal_interface-curses__ads.htm#ref_780_12">Function_Key_Number
</A>'Last));
567 <b>if
</b> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_776_30">Key
</A> >=
<A HREF=
"terminal_interface-curses__ads.htm#ref_98_4">Key_F0
</A>)
<b>and
</b> <b>then
</b> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_776_30">Key
</A> <=
<A HREF=
"terminal_interface-curses__adb.htm#ref_559_7">L
</A>)
<b>then
</b>
571 <b>end
</b> <b>if
</b>;
572 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_776_13">Is_Function_Key
</A>;
574 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_569_13" HREF=
"terminal_interface-curses__ads.htm#ref_783_13">Function_Key
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_569_27" HREF=
"terminal_interface-curses__ads.htm#ref_783_27">Key
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_73_12">Real_Key_Code
</A>)
575 <b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_780_12">Function_Key_Number
</A>
578 <b>if
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_776_13">Is_Function_Key
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_783_27">Key
</A>)
<b>then
</b>
579 <b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_780_12">Function_Key_Number
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_783_27">Key
</A> -
<A HREF=
"terminal_interface-curses__ads.htm#ref_98_4">Key_F0
</A>);
581 <b>raise
</b> Constraint_Error;
582 <b>end
</b> <b>if
</b>;
583 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_783_13">Function_Key
</A>;
585 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_580_13" HREF=
"terminal_interface-curses__ads.htm#ref_788_13">Function_Key_Code
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_580_32" HREF=
"terminal_interface-curses__ads.htm#ref_788_32">Key
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_780_12">Function_Key_Number
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_73_12">Real_Key_Code
</A>
588 <b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_73_12">Real_Key_Code
</A> (Natural (
<A HREF=
"terminal_interface-curses__ads.htm#ref_98_4">Key_F0
</A>) + Natural (
<A HREF=
"terminal_interface-curses__ads.htm#ref_788_32">Key
</A>));
589 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_788_13">Function_Key_Code
</A>;
590 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
591 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_586_14" HREF=
"terminal_interface-curses__ads.htm#ref_802_14">Standout
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_586_24" HREF=
"terminal_interface-curses__ads.htm#ref_802_24">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
592 <FONT COLOR=red
><A NAME=
"ref_587_24" HREF=
"terminal_interface-curses__ads.htm#ref_803_24">On
</A></FONT> : Boolean := True)
594 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_589_16">wstandout
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_589_27" HREF=
"terminal_interface-curses__adb.htm#ref_589_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
595 <b>pragma
</b> Import (C, wstandout,
"wstandout");
596 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_591_16">wstandend
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_591_27" HREF=
"terminal_interface-curses__adb.htm#ref_591_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
597 <b>pragma
</b> Import (C, wstandend,
"wstandend");
599 <FONT COLOR=red
><A NAME=
"ref_594_7">Err
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
601 <b>if
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_803_24">On
</A> <b>then
</b>
602 <A HREF=
"terminal_interface-curses__adb.htm#ref_594_7">Err
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_589_16">wstandout
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_802_24">Win
</A>);
604 <A HREF=
"terminal_interface-curses__adb.htm#ref_594_7">Err
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_591_16">wstandend
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_802_24">Win
</A>);
605 <b>end
</b> <b>if
</b>;
606 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_594_7">Err
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
607 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
608 <b>end
</b> <b>if
</b>;
609 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_802_14">Standout
</A>;
611 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_606_14" HREF=
"terminal_interface-curses__ads.htm#ref_808_14">Switch_Character_Attribute
</A></FONT>
612 (
<FONT COLOR=red
><A NAME=
"ref_607_7" HREF=
"terminal_interface-curses__ads.htm#ref_809_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
613 <FONT COLOR=red
><A NAME=
"ref_608_7" HREF=
"terminal_interface-curses__ads.htm#ref_810_7">Attr
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_307_9">Character_Attribute_Set
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_352_4">Normal_Video
</A>;
614 <FONT COLOR=red
><A NAME=
"ref_609_7" HREF=
"terminal_interface-curses__ads.htm#ref_811_7">On
</A></FONT> : Boolean := True)
616 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_611_16">Wattron
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_611_25" HREF=
"terminal_interface-curses__adb.htm#ref_611_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
617 <FONT COLOR=red
><A NAME=
"ref_612_25" HREF=
"terminal_interface-curses__adb.htm#ref_611_16">C_Attr
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_64_12">C_AttrType
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
618 <b>pragma
</b> Import (C, Wattron,
"wattr_on");
619 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_614_16">Wattroff
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_614_26" HREF=
"terminal_interface-curses__adb.htm#ref_614_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
620 <FONT COLOR=red
><A NAME=
"ref_615_26" HREF=
"terminal_interface-curses__adb.htm#ref_614_16">C_Attr
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_64_12">C_AttrType
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
621 <b>pragma
</b> Import (C, Wattroff,
"wattr_off");
622 <FONT COLOR=green
><EM>-- In Ada we use the On Boolean to control whether or not we want to
</EM></FONT>
623 <FONT COLOR=green
><EM>-- switch on or off the attributes in the set.
</EM></FONT>
624 <FONT COLOR=red
><A NAME=
"ref_619_7">Err
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
625 <FONT COLOR=red
><A NAME=
"ref_620_7">AC
</A></FONT> :
<b>constant
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A> := (
<A HREF=
"terminal_interface-curses__ads.htm#ref_358_10">Ch
</A> =
> Character'First,
626 <A HREF=
"terminal_interface-curses__ads.htm#ref_357_10">Color
</A> =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_299_9">Color_Pair
</A>'First,
627 <A HREF=
"terminal_interface-curses__ads.htm#ref_356_10">Attr
</A> =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_810_7">Attr
</A>);
629 <b>if
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_811_7">On
</A> <b>then
</b>
630 <A HREF=
"terminal_interface-curses__adb.htm#ref_619_7">Err
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_611_16">Wattron
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_809_7">Win
</A>, AttrChar_To_AttrType (
<A HREF=
"terminal_interface-curses__adb.htm#ref_620_7">AC
</A>));
632 <A HREF=
"terminal_interface-curses__adb.htm#ref_619_7">Err
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_614_16">Wattroff
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_809_7">Win
</A>, AttrChar_To_AttrType (
<A HREF=
"terminal_interface-curses__adb.htm#ref_620_7">AC
</A>));
633 <b>end
</b> <b>if
</b>;
634 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_619_7">Err
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
635 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
636 <b>end
</b> <b>if
</b>;
637 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_808_14">Switch_Character_Attribute
</A>;
639 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_634_14" HREF=
"terminal_interface-curses__ads.htm#ref_819_14">Set_Character_Attributes
</A></FONT>
640 (
<FONT COLOR=red
><A NAME=
"ref_635_7" HREF=
"terminal_interface-curses__ads.htm#ref_820_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
641 <FONT COLOR=red
><A NAME=
"ref_636_7" HREF=
"terminal_interface-curses__ads.htm#ref_821_7">Attr
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_307_9">Character_Attribute_Set
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_352_4">Normal_Video
</A>;
642 <FONT COLOR=red
><A NAME=
"ref_637_7" HREF=
"terminal_interface-curses__ads.htm#ref_822_7">Color
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_299_9">Color_Pair
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_299_9">Color_Pair
</A>'First)
644 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_639_16">Wattrset
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_639_26" HREF=
"terminal_interface-curses__adb.htm#ref_639_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
645 <FONT COLOR=red
><A NAME=
"ref_640_26" HREF=
"terminal_interface-curses__adb.htm#ref_639_16">C_Attr
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_64_12">C_AttrType
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
646 <b>pragma
</b> Import (C, Wattrset,
"wattrset");
<FONT COLOR=green
><EM>-- ??? wattr_set
</EM></FONT>
648 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_639_16">Wattrset
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_820_7">Win
</A>,
649 AttrChar_To_AttrType (
<A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A>'
650 (
<A HREF=
"terminal_interface-curses__ads.htm#ref_358_10">Ch
</A> =
> Character'First,
651 <A HREF=
"terminal_interface-curses__ads.htm#ref_357_10">Color
</A> =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_822_7">Color
</A>,
652 <A HREF=
"terminal_interface-curses__ads.htm#ref_356_10">Attr
</A> =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_821_7">Attr
</A>))) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
653 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
654 <b>end
</b> <b>if
</b>;
655 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_819_14">Set_Character_Attributes
</A>;
657 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_652_13" HREF=
"terminal_interface-curses__ads.htm#ref_828_13">Get_Character_Attribute
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_652_38" HREF=
"terminal_interface-curses__ads.htm#ref_829_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>)
658 <b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_307_9">Character_Attribute_Set
</A>
660 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_655_16">Wattrget
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_655_26" HREF=
"terminal_interface-curses__adb.htm#ref_655_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
661 <FONT COLOR=red
><A NAME=
"ref_656_26" HREF=
"terminal_interface-curses__adb.htm#ref_655_16">Atr
</A></FONT> :
<b>access
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_64_12">C_AttrType
</A>;
662 <FONT COLOR=red
><A NAME=
"ref_657_26" HREF=
"terminal_interface-curses__adb.htm#ref_655_16">Col
</A></FONT> :
<b>access
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A>;
663 <FONT COLOR=red
><A NAME=
"ref_658_26" HREF=
"terminal_interface-curses__adb.htm#ref_655_16">Opt
</A></FONT> : System.Address)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
664 <b>pragma
</b> Import (C, Wattrget,
"wattr_get");
666 <FONT COLOR=red
><A NAME=
"ref_661_7">Attr
</A></FONT> :
<b>aliased
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_64_12">C_AttrType
</A>;
667 <FONT COLOR=red
><A NAME=
"ref_662_7">Col
</A></FONT> :
<b>aliased
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A>;
668 <FONT COLOR=red
><A NAME=
"ref_663_7">Res
</A></FONT> :
<b>constant
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_655_16">Wattrget
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_829_7">Win
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_661_7">Attr
</A>'
<b>Access
</b>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_662_7">Col
</A>'
<b>Access
</b>,
669 System.Null_Address);
670 <FONT COLOR=red
><A NAME=
"ref_665_7">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A>;
672 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_663_7">Res
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_71_4">Curses_Ok
</A> <b>then
</b>
673 <A HREF=
"terminal_interface-curses__adb.htm#ref_665_7">Ch
</A> := AttrType_To_AttrChar (
<A HREF=
"terminal_interface-curses__adb.htm#ref_661_7">Attr
</A>);
674 <b>return
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_665_7">Ch
</A>.
<A HREF=
"terminal_interface-curses__ads.htm#ref_356_10">Attr
</A>;
676 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
677 <b>end
</b> <b>if
</b>;
678 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_828_13">Get_Character_Attribute
</A>;
680 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_675_13" HREF=
"terminal_interface-curses__ads.htm#ref_834_13">Get_Character_Attribute
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_675_38" HREF=
"terminal_interface-curses__ads.htm#ref_835_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>)
681 <b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_299_9">Color_Pair
</A>
683 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_678_16">Wattrget
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_678_26" HREF=
"terminal_interface-curses__adb.htm#ref_678_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
684 <FONT COLOR=red
><A NAME=
"ref_679_26" HREF=
"terminal_interface-curses__adb.htm#ref_678_16">Atr
</A></FONT> :
<b>access
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_64_12">C_AttrType
</A>;
685 <FONT COLOR=red
><A NAME=
"ref_680_26" HREF=
"terminal_interface-curses__adb.htm#ref_678_16">Col
</A></FONT> :
<b>access
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A>;
686 <FONT COLOR=red
><A NAME=
"ref_681_26" HREF=
"terminal_interface-curses__adb.htm#ref_678_16">Opt
</A></FONT> : System.Address)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
687 <b>pragma
</b> Import (C, Wattrget,
"wattr_get");
689 <FONT COLOR=red
><A NAME=
"ref_684_7">Attr
</A></FONT> :
<b>aliased
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_64_12">C_AttrType
</A>;
690 <FONT COLOR=red
><A NAME=
"ref_685_7">Col
</A></FONT> :
<b>aliased
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A>;
691 <FONT COLOR=red
><A NAME=
"ref_686_7">Res
</A></FONT> :
<b>constant
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_678_16">Wattrget
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_835_7">Win
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_684_7">Attr
</A>'
<b>Access
</b>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_685_7">Col
</A>'
<b>Access
</b>,
692 System.Null_Address);
693 <FONT COLOR=red
><A NAME=
"ref_688_7">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A>;
695 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_686_7">Res
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_71_4">Curses_Ok
</A> <b>then
</b>
696 <A HREF=
"terminal_interface-curses__adb.htm#ref_688_7">Ch
</A> := AttrType_To_AttrChar (
<A HREF=
"terminal_interface-curses__adb.htm#ref_684_7">Attr
</A>);
697 <b>return
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_688_7">Ch
</A>.
<A HREF=
"terminal_interface-curses__ads.htm#ref_357_10">Color
</A>;
699 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
700 <b>end
</b> <b>if
</b>;
701 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_834_13">Get_Character_Attribute
</A>;
703 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_698_14" HREF=
"terminal_interface-curses__ads.htm#ref_840_14">Set_Color
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_698_25" HREF=
"terminal_interface-curses__ads.htm#ref_840_25">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
704 <FONT COLOR=red
><A NAME=
"ref_699_25" HREF=
"terminal_interface-curses__ads.htm#ref_841_25">Pair
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_299_9">Color_Pair
</A>)
706 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_701_16">Wset_Color
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_701_28" HREF=
"terminal_interface-curses__adb.htm#ref_701_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
707 <FONT COLOR=red
><A NAME=
"ref_702_28" HREF=
"terminal_interface-curses__adb.htm#ref_701_16">Color
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A>;
708 <FONT COLOR=red
><A NAME=
"ref_703_28" HREF=
"terminal_interface-curses__adb.htm#ref_701_16">Opts
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_62_12">C_Void_Ptr
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
709 <b>pragma
</b> Import (C, Wset_Color,
"wcolor_set");
711 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_701_16">Wset_Color
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_840_25">Win
</A>,
712 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_841_25">Pair
</A>),
713 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_62_12">C_Void_Ptr
</A> (System.Null_Address)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
714 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
715 <b>end
</b> <b>if
</b>;
716 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_840_14">Set_Color
</A>;
718 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_713_14" HREF=
"terminal_interface-curses__ads.htm#ref_847_14">Change_Attributes
</A></FONT>
719 (
<FONT COLOR=red
><A NAME=
"ref_714_7" HREF=
"terminal_interface-curses__ads.htm#ref_848_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
720 <FONT COLOR=red
><A NAME=
"ref_715_7" HREF=
"terminal_interface-curses__ads.htm#ref_849_7">Count
</A></FONT> : Integer := -
1;
721 <FONT COLOR=red
><A NAME=
"ref_716_7" HREF=
"terminal_interface-curses__ads.htm#ref_850_7">Attr
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_307_9">Character_Attribute_Set
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_352_4">Normal_Video
</A>;
722 <FONT COLOR=red
><A NAME=
"ref_717_7" HREF=
"terminal_interface-curses__ads.htm#ref_851_7">Color
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_299_9">Color_Pair
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_299_9">Color_Pair
</A>'First)
724 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_719_16">Wchgat
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_719_24" HREF=
"terminal_interface-curses__adb.htm#ref_719_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
725 <FONT COLOR=red
><A NAME=
"ref_720_24" HREF=
"terminal_interface-curses__adb.htm#ref_719_16">Cnt
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
726 <FONT COLOR=red
><A NAME=
"ref_721_24" HREF=
"terminal_interface-curses__adb.htm#ref_719_16">Attr
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_64_12">C_AttrType
</A>;
727 <FONT COLOR=red
><A NAME=
"ref_722_24" HREF=
"terminal_interface-curses__adb.htm#ref_719_16">Color
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A>;
728 <FONT COLOR=red
><A NAME=
"ref_723_24" HREF=
"terminal_interface-curses__adb.htm#ref_719_16">Opts
</A></FONT> : System.Address := System.Null_Address)
729 <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
730 <b>pragma
</b> Import (C, Wchgat,
"wchgat");
732 <FONT COLOR=red
><A NAME=
"ref_727_7">Ch
</A></FONT> :
<b>constant
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A> :=
733 (
<A HREF=
"terminal_interface-curses__ads.htm#ref_358_10">Ch
</A> =
> Character'First,
<A HREF=
"terminal_interface-curses__ads.htm#ref_357_10">Color
</A> =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_299_9">Color_Pair
</A>'First,
<A HREF=
"terminal_interface-curses__ads.htm#ref_356_10">Attr
</A> =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_850_7">Attr
</A>);
735 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_719_16">Wchgat
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_848_7">Win
</A>,
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_849_7">Count
</A>), AttrChar_To_AttrType (
<A HREF=
"terminal_interface-curses__adb.htm#ref_727_7">Ch
</A>),
736 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_851_7">Color
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
737 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
738 <b>end
</b> <b>if
</b>;
739 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_847_14">Change_Attributes
</A>;
741 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_736_14" HREF=
"terminal_interface-curses__ads.htm#ref_856_14">Change_Attributes
</A></FONT>
742 (
<FONT COLOR=red
><A NAME=
"ref_737_7" HREF=
"terminal_interface-curses__ads.htm#ref_857_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
743 <FONT COLOR=red
><A NAME=
"ref_738_7" HREF=
"terminal_interface-curses__ads.htm#ref_858_7">Line
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>'First;
744 <FONT COLOR=red
><A NAME=
"ref_739_7" HREF=
"terminal_interface-curses__ads.htm#ref_859_7">Column
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>'First;
745 <FONT COLOR=red
><A NAME=
"ref_740_7" HREF=
"terminal_interface-curses__ads.htm#ref_860_7">Count
</A></FONT> : Integer := -
1;
746 <FONT COLOR=red
><A NAME=
"ref_741_7" HREF=
"terminal_interface-curses__ads.htm#ref_861_7">Attr
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_307_9">Character_Attribute_Set
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_352_4">Normal_Video
</A>;
747 <FONT COLOR=red
><A NAME=
"ref_742_7" HREF=
"terminal_interface-curses__ads.htm#ref_862_7">Color
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_299_9">Color_Pair
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_299_9">Color_Pair
</A>'First)
750 <A HREF=
"terminal_interface-curses__ads.htm#ref_513_14">Move_Cursor
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_857_7">Win
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_858_7">Line
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_859_7">Column
</A>);
751 <A HREF=
"terminal_interface-curses__ads.htm#ref_847_14">Change_Attributes
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_857_7">Win
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_860_7">Count
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_861_7">Attr
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_862_7">Color
</A>);
752 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_856_14">Change_Attributes
</A>;
753 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
754 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_749_14" HREF=
"terminal_interface-curses__ads.htm#ref_872_14">Beep
</A></FONT>
756 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_751_16">Beeper
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
757 <b>pragma
</b> Import (C, Beeper,
"beep");
759 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_751_16">Beeper
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
760 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
761 <b>end
</b> <b>if
</b>;
762 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_872_14">Beep
</A>;
764 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_759_14" HREF=
"terminal_interface-curses__ads.htm#ref_877_14">Flash_Screen
</A></FONT>
766 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_761_16">Flash
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
767 <b>pragma
</b> Import (C, Flash,
"flash");
769 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_761_16">Flash
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
770 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
771 <b>end
</b> <b>if
</b>;
772 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_877_14">Flash_Screen
</A>;
773 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
774 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_769_14" HREF=
"terminal_interface-curses__ads.htm#ref_888_14">Set_Cbreak_Mode
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_769_31" HREF=
"terminal_interface-curses__ads.htm#ref_888_31">SwitchOn
</A></FONT> : Boolean := True)
776 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_771_16">Cbreak
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
777 <b>pragma
</b> Import (C, Cbreak,
"cbreak");
778 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_773_16">NoCbreak
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
779 <b>pragma
</b> Import (C, NoCbreak,
"nocbreak");
781 <FONT COLOR=red
><A NAME=
"ref_776_7">Err
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
783 <b>if
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_888_31">SwitchOn
</A> <b>then
</b>
784 <A HREF=
"terminal_interface-curses__adb.htm#ref_776_7">Err
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_771_16">Cbreak
</A>;
786 <A HREF=
"terminal_interface-curses__adb.htm#ref_776_7">Err
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_773_16">NoCbreak
</A>;
787 <b>end
</b> <b>if
</b>;
788 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_776_7">Err
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
789 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
790 <b>end
</b> <b>if
</b>;
791 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_888_14">Set_Cbreak_Mode
</A>;
793 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_788_14" HREF=
"terminal_interface-curses__ads.htm#ref_894_14">Set_Raw_Mode
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_788_28" HREF=
"terminal_interface-curses__ads.htm#ref_894_28">SwitchOn
</A></FONT> : Boolean := True)
795 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_790_16">Raw
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
796 <b>pragma
</b> Import (C, Raw,
"raw");
797 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_792_16">NoRaw
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
798 <b>pragma
</b> Import (C, NoRaw,
"noraw");
800 <FONT COLOR=red
><A NAME=
"ref_795_7">Err
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
802 <b>if
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_894_28">SwitchOn
</A> <b>then
</b>
803 <A HREF=
"terminal_interface-curses__adb.htm#ref_795_7">Err
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_790_16">Raw
</A>;
805 <A HREF=
"terminal_interface-curses__adb.htm#ref_795_7">Err
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_792_16">NoRaw
</A>;
806 <b>end
</b> <b>if
</b>;
807 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_795_7">Err
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
808 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
809 <b>end
</b> <b>if
</b>;
810 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_894_14">Set_Raw_Mode
</A>;
812 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_807_14" HREF=
"terminal_interface-curses__ads.htm#ref_900_14">Set_Echo_Mode
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_807_29" HREF=
"terminal_interface-curses__ads.htm#ref_900_29">SwitchOn
</A></FONT> : Boolean := True)
814 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_809_16">Echo
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
815 <b>pragma
</b> Import (C, Echo,
"echo");
816 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_811_16">NoEcho
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
817 <b>pragma
</b> Import (C, NoEcho,
"noecho");
819 <FONT COLOR=red
><A NAME=
"ref_814_7">Err
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
821 <b>if
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_900_29">SwitchOn
</A> <b>then
</b>
822 <A HREF=
"terminal_interface-curses__adb.htm#ref_814_7">Err
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_809_16">Echo
</A>;
824 <A HREF=
"terminal_interface-curses__adb.htm#ref_814_7">Err
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_811_16">NoEcho
</A>;
825 <b>end
</b> <b>if
</b>;
826 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_814_7">Err
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
827 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
828 <b>end
</b> <b>if
</b>;
829 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_900_14">Set_Echo_Mode
</A>;
831 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_826_14" HREF=
"terminal_interface-curses__ads.htm#ref_906_14">Set_Meta_Mode
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_826_29" HREF=
"terminal_interface-curses__ads.htm#ref_906_29">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
832 <FONT COLOR=red
><A NAME=
"ref_827_29" HREF=
"terminal_interface-curses__ads.htm#ref_907_29">SwitchOn
</A></FONT> : Boolean := True)
834 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_829_16">Meta
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_829_22" HREF=
"terminal_interface-curses__adb.htm#ref_829_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
<FONT COLOR=red
><A NAME=
"ref_829_34" HREF=
"terminal_interface-curses__adb.htm#ref_829_16">Mode
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
835 <b>pragma
</b> Import (C, Meta,
"meta");
837 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_829_16">Meta
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_906_29">Win
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A> (Boolean'Pos (
<A HREF=
"terminal_interface-curses__ads.htm#ref_907_29">SwitchOn
</A>))) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
838 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
839 <b>end
</b> <b>if
</b>;
840 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_906_14">Set_Meta_Mode
</A>;
842 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_837_14" HREF=
"terminal_interface-curses__ads.htm#ref_912_14">Set_KeyPad_Mode
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_837_31" HREF=
"terminal_interface-curses__ads.htm#ref_912_31">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
843 <FONT COLOR=red
><A NAME=
"ref_838_31" HREF=
"terminal_interface-curses__ads.htm#ref_913_31">SwitchOn
</A></FONT> : Boolean := True)
845 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_840_16">Keypad
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_840_24" HREF=
"terminal_interface-curses__adb.htm#ref_840_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
<FONT COLOR=red
><A NAME=
"ref_840_36" HREF=
"terminal_interface-curses__adb.htm#ref_840_16">Mode
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
846 <b>pragma
</b> Import (C, Keypad,
"keypad");
848 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_840_16">Keypad
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_912_31">Win
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A> (Boolean'Pos (
<A HREF=
"terminal_interface-curses__ads.htm#ref_913_31">SwitchOn
</A>))) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
849 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
850 <b>end
</b> <b>if
</b>;
851 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_912_14">Set_KeyPad_Mode
</A>;
853 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_848_13" HREF=
"terminal_interface-curses__ads.htm#ref_917_13">Get_KeyPad_Mode
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_848_30" HREF=
"terminal_interface-curses__ads.htm#ref_917_30">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>)
854 <b>return
</b> Boolean
856 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_851_16">Is_Keypad
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_851_27" HREF=
"terminal_interface-curses__adb.htm#ref_851_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A>;
857 <b>pragma
</b> Import (C, Is_Keypad,
"is_keypad");
859 <b>return
</b> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_851_16">Is_Keypad
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_917_30">Win
</A>) /=
<A HREF=
"terminal_interface-curses__ads.htm#ref_1927_4">Curses_Bool_False
</A>);
860 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_917_13">Get_KeyPad_Mode
</A>;
862 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_857_14" HREF=
"terminal_interface-curses__ads.htm#ref_925_14">Half_Delay
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_857_26" HREF=
"terminal_interface-curses__ads.htm#ref_925_26">Amount
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_922_9">Half_Delay_Amount
</A>)
864 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_859_16">Halfdelay
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_859_27" HREF=
"terminal_interface-curses__adb.htm#ref_859_16">Amount
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
865 <b>pragma
</b> Import (C, Halfdelay,
"halfdelay");
867 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_859_16">Halfdelay
</A> (
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_925_26">Amount
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
868 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
869 <b>end
</b> <b>if
</b>;
870 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_925_14">Half_Delay
</A>;
872 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_867_14" HREF=
"terminal_interface-curses__ads.htm#ref_930_14">Set_Flush_On_Interrupt_Mode
</A></FONT>
873 (
<FONT COLOR=red
><A NAME=
"ref_868_7" HREF=
"terminal_interface-curses__ads.htm#ref_931_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
874 <FONT COLOR=red
><A NAME=
"ref_869_7" HREF=
"terminal_interface-curses__ads.htm#ref_932_7">Mode
</A></FONT> : Boolean := True)
876 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_871_16">Intrflush
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_871_27" HREF=
"terminal_interface-curses__adb.htm#ref_871_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
<FONT COLOR=red
><A NAME=
"ref_871_41" HREF=
"terminal_interface-curses__adb.htm#ref_871_16">Mode
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
877 <b>pragma
</b> Import (C, Intrflush,
"intrflush");
879 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_871_16">Intrflush
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_931_7">Win
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A> (Boolean'Pos (
<A HREF=
"terminal_interface-curses__ads.htm#ref_932_7">Mode
</A>))) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
880 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
881 <b>end
</b> <b>if
</b>;
882 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_930_14">Set_Flush_On_Interrupt_Mode
</A>;
884 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_879_14" HREF=
"terminal_interface-curses__ads.htm#ref_937_14">Set_Queue_Interrupt_Mode
</A></FONT>
885 (
<FONT COLOR=red
><A NAME=
"ref_880_7" HREF=
"terminal_interface-curses__ads.htm#ref_938_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
886 <FONT COLOR=red
><A NAME=
"ref_881_7" HREF=
"terminal_interface-curses__ads.htm#ref_939_7">Flush
</A></FONT> : Boolean := True)
888 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_883_17">Qiflush
</A></FONT>;
889 <b>pragma
</b> Import (C, Qiflush,
"qiflush");
890 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_885_17">No_Qiflush
</A></FONT>;
891 <b>pragma
</b> Import (C, No_Qiflush,
"noqiflush");
893 <b>if
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_938_7">Win
</A> =
<A HREF=
"terminal_interface-curses__ads.htm#ref_58_4">Null_Window
</A> <b>then
</b>
894 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
895 <b>end
</b> <b>if
</b>;
896 <b>if
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_939_7">Flush
</A> <b>then
</b>
897 <A HREF=
"terminal_interface-curses__adb.htm#ref_883_17">Qiflush
</A>;
899 <A HREF=
"terminal_interface-curses__adb.htm#ref_885_17">No_Qiflush
</A>;
900 <b>end
</b> <b>if
</b>;
901 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_937_14">Set_Queue_Interrupt_Mode
</A>;
903 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_898_14" HREF=
"terminal_interface-curses__ads.htm#ref_945_14">Set_NoDelay_Mode
</A></FONT>
904 (
<FONT COLOR=red
><A NAME=
"ref_899_7" HREF=
"terminal_interface-curses__ads.htm#ref_946_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
905 <FONT COLOR=red
><A NAME=
"ref_900_7" HREF=
"terminal_interface-curses__ads.htm#ref_947_7">Mode
</A></FONT> : Boolean := False)
907 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_902_16">Nodelay
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_902_25" HREF=
"terminal_interface-curses__adb.htm#ref_902_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
<FONT COLOR=red
><A NAME=
"ref_902_39" HREF=
"terminal_interface-curses__adb.htm#ref_902_16">Mode
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
908 <b>pragma
</b> Import (C, Nodelay,
"nodelay");
910 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_902_16">Nodelay
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_946_7">Win
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A> (Boolean'Pos (
<A HREF=
"terminal_interface-curses__ads.htm#ref_947_7">Mode
</A>))) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
911 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
912 <b>end
</b> <b>if
</b>;
913 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_945_14">Set_NoDelay_Mode
</A>;
915 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_910_14" HREF=
"terminal_interface-curses__ads.htm#ref_954_14">Set_Timeout_Mode
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_910_32" HREF=
"terminal_interface-curses__ads.htm#ref_954_32">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
916 <FONT COLOR=red
><A NAME=
"ref_911_32" HREF=
"terminal_interface-curses__ads.htm#ref_955_32">Mode
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_951_9">Timeout_Mode
</A>;
917 <FONT COLOR=red
><A NAME=
"ref_912_32" HREF=
"terminal_interface-curses__ads.htm#ref_956_32">Amount
</A></FONT> : Natural)
919 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_914_17">Wtimeout
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_914_27" HREF=
"terminal_interface-curses__adb.htm#ref_914_17">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
<FONT COLOR=red
><A NAME=
"ref_914_41" HREF=
"terminal_interface-curses__adb.htm#ref_914_17">Amount
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>);
920 <b>pragma
</b> Import (C, Wtimeout,
"wtimeout");
922 <FONT COLOR=red
><A NAME=
"ref_917_7">Time
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
924 <b>case
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_955_32">Mode
</A> <b>is
</b>
925 <b>when
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_951_26">Blocking
</A> =
> <A HREF=
"terminal_interface-curses__adb.htm#ref_917_7">Time
</A> := -
1;
926 <b>when
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_951_36">Non_Blocking
</A> =
> <A HREF=
"terminal_interface-curses__adb.htm#ref_917_7">Time
</A> :=
0;
927 <b>when
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_951_50">Delayed
</A> =
>
928 <b>if
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_956_32">Amount
</A> =
0 <b>then
</b>
929 <b>raise
</b> Constraint_Error;
930 <b>end
</b> <b>if
</b>;
931 <A HREF=
"terminal_interface-curses__adb.htm#ref_917_7">Time
</A> :=
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_956_32">Amount
</A>);
932 <b>end
</b> <b>case
</b>;
933 <A HREF=
"terminal_interface-curses__adb.htm#ref_914_17">Wtimeout
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_954_32">Win
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_917_7">Time
</A>);
934 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_954_14">Set_Timeout_Mode
</A>;
936 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_931_14" HREF=
"terminal_interface-curses__ads.htm#ref_966_14">Set_Escape_Timer_Mode
</A></FONT>
937 (
<FONT COLOR=red
><A NAME=
"ref_932_7" HREF=
"terminal_interface-curses__ads.htm#ref_967_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
938 <FONT COLOR=red
><A NAME=
"ref_933_7" HREF=
"terminal_interface-curses__ads.htm#ref_968_7">Timer_Off
</A></FONT> : Boolean := False)
940 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_935_16">Notimeout
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_935_27" HREF=
"terminal_interface-curses__adb.htm#ref_935_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
<FONT COLOR=red
><A NAME=
"ref_935_41" HREF=
"terminal_interface-curses__adb.htm#ref_935_16">Mode
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
941 <b>pragma
</b> Import (C, Notimeout,
"notimeout");
943 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_935_16">Notimeout
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_967_7">Win
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A> (Boolean'Pos (
<A HREF=
"terminal_interface-curses__ads.htm#ref_968_7">Timer_Off
</A>)))
944 =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
945 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
946 <b>end
</b> <b>if
</b>;
947 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_966_14">Set_Escape_Timer_Mode
</A>;
949 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
950 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_945_14" HREF=
"terminal_interface-curses__ads.htm#ref_977_14">Set_NL_Mode
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_945_27" HREF=
"terminal_interface-curses__ads.htm#ref_977_27">SwitchOn
</A></FONT> : Boolean := True)
952 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_947_16">NL
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
953 <b>pragma
</b> Import (C, NL,
"nl");
954 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_949_16">NoNL
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
955 <b>pragma
</b> Import (C, NoNL,
"nonl");
957 <FONT COLOR=red
><A NAME=
"ref_952_7">Err
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
959 <b>if
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_977_27">SwitchOn
</A> <b>then
</b>
960 <A HREF=
"terminal_interface-curses__adb.htm#ref_952_7">Err
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_947_16">NL
</A>;
962 <A HREF=
"terminal_interface-curses__adb.htm#ref_952_7">Err
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_949_16">NoNL
</A>;
963 <b>end
</b> <b>if
</b>;
964 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_952_7">Err
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
965 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
966 <b>end
</b> <b>if
</b>;
967 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_977_14">Set_NL_Mode
</A>;
969 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_964_14" HREF=
"terminal_interface-curses__ads.htm#ref_983_14">Clear_On_Next_Update
</A></FONT>
970 (
<FONT COLOR=red
><A NAME=
"ref_965_7" HREF=
"terminal_interface-curses__ads.htm#ref_984_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
971 <FONT COLOR=red
><A NAME=
"ref_966_7" HREF=
"terminal_interface-curses__ads.htm#ref_985_7">Do_Clear
</A></FONT> : Boolean := True)
973 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_968_16">Clear_Ok
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_968_26" HREF=
"terminal_interface-curses__adb.htm#ref_968_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
<FONT COLOR=red
><A NAME=
"ref_968_38" HREF=
"terminal_interface-curses__adb.htm#ref_968_16">Flag
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
974 <b>pragma
</b> Import (C, Clear_Ok,
"clearok");
976 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_968_16">Clear_Ok
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_984_7">Win
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A> (Boolean'Pos (
<A HREF=
"terminal_interface-curses__ads.htm#ref_985_7">Do_Clear
</A>))) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
977 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
978 <b>end
</b> <b>if
</b>;
979 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_983_14">Clear_On_Next_Update
</A>;
981 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_976_14" HREF=
"terminal_interface-curses__ads.htm#ref_990_14">Use_Insert_Delete_Line
</A></FONT>
982 (
<FONT COLOR=red
><A NAME=
"ref_977_7" HREF=
"terminal_interface-curses__ads.htm#ref_991_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
983 <FONT COLOR=red
><A NAME=
"ref_978_7" HREF=
"terminal_interface-curses__ads.htm#ref_992_7">Do_Idl
</A></FONT> : Boolean := True)
985 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_980_16">IDL_Ok
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_980_24" HREF=
"terminal_interface-curses__adb.htm#ref_980_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
<FONT COLOR=red
><A NAME=
"ref_980_36" HREF=
"terminal_interface-curses__adb.htm#ref_980_16">Flag
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
986 <b>pragma
</b> Import (C, IDL_Ok,
"idlok");
988 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_980_16">IDL_Ok
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_991_7">Win
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A> (Boolean'Pos (
<A HREF=
"terminal_interface-curses__ads.htm#ref_992_7">Do_Idl
</A>))) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
989 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
990 <b>end
</b> <b>if
</b>;
991 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_990_14">Use_Insert_Delete_Line
</A>;
993 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_988_14" HREF=
"terminal_interface-curses__ads.htm#ref_997_14">Use_Insert_Delete_Character
</A></FONT>
994 (
<FONT COLOR=red
><A NAME=
"ref_989_7" HREF=
"terminal_interface-curses__ads.htm#ref_998_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
995 <FONT COLOR=red
><A NAME=
"ref_990_7" HREF=
"terminal_interface-curses__ads.htm#ref_999_7">Do_Idc
</A></FONT> : Boolean := True)
997 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_992_17">IDC_Ok
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_992_25" HREF=
"terminal_interface-curses__adb.htm#ref_992_17">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
<FONT COLOR=red
><A NAME=
"ref_992_37" HREF=
"terminal_interface-curses__adb.htm#ref_992_17">Flag
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A>);
998 <b>pragma
</b> Import (C, IDC_Ok,
"idcok");
1000 <A HREF=
"terminal_interface-curses__adb.htm#ref_992_17">IDC_Ok
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_998_7">Win
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A> (Boolean'Pos (
<A HREF=
"terminal_interface-curses__ads.htm#ref_999_7">Do_Idc
</A>)));
1001 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_997_14">Use_Insert_Delete_Character
</A>;
1003 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_998_14" HREF=
"terminal_interface-curses__ads.htm#ref_1004_14">Leave_Cursor_After_Update
</A></FONT>
1004 (
<FONT COLOR=red
><A NAME=
"ref_999_7" HREF=
"terminal_interface-curses__ads.htm#ref_1005_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1005 <FONT COLOR=red
><A NAME=
"ref_1000_7" HREF=
"terminal_interface-curses__ads.htm#ref_1006_7">Do_Leave
</A></FONT> : Boolean := True)
1007 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1002_16">Leave_Ok
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1002_26" HREF=
"terminal_interface-curses__adb.htm#ref_1002_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
<FONT COLOR=red
><A NAME=
"ref_1002_38" HREF=
"terminal_interface-curses__adb.htm#ref_1002_16">Flag
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1008 <b>pragma
</b> Import (C, Leave_Ok,
"leaveok");
1010 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1002_16">Leave_Ok
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1005_7">Win
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A> (Boolean'Pos (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1006_7">Do_Leave
</A>))) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1011 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1012 <b>end
</b> <b>if
</b>;
1013 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1004_14">Leave_Cursor_After_Update
</A>;
1015 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1010_14" HREF=
"terminal_interface-curses__ads.htm#ref_1011_14">Immediate_Update_Mode
</A></FONT>
1016 (
<FONT COLOR=red
><A NAME=
"ref_1011_7" HREF=
"terminal_interface-curses__ads.htm#ref_1012_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1017 <FONT COLOR=red
><A NAME=
"ref_1012_7" HREF=
"terminal_interface-curses__ads.htm#ref_1013_7">Mode
</A></FONT> : Boolean := False)
1019 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1014_17">Immedok
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1014_26" HREF=
"terminal_interface-curses__adb.htm#ref_1014_17">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
<FONT COLOR=red
><A NAME=
"ref_1014_40" HREF=
"terminal_interface-curses__adb.htm#ref_1014_17">Mode
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A>);
1020 <b>pragma
</b> Import (C, Immedok,
"immedok");
1022 <A HREF=
"terminal_interface-curses__adb.htm#ref_1014_17">Immedok
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1012_7">Win
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A> (Boolean'Pos (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1013_7">Mode
</A>)));
1023 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1011_14">Immediate_Update_Mode
</A>;
1025 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1020_14" HREF=
"terminal_interface-curses__ads.htm#ref_1018_14">Allow_Scrolling
</A></FONT>
1026 (
<FONT COLOR=red
><A NAME=
"ref_1021_7" HREF=
"terminal_interface-curses__ads.htm#ref_1019_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1027 <FONT COLOR=red
><A NAME=
"ref_1022_7" HREF=
"terminal_interface-curses__ads.htm#ref_1020_7">Mode
</A></FONT> : Boolean := False)
1029 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1024_16">Scrollok
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1024_26" HREF=
"terminal_interface-curses__adb.htm#ref_1024_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
<FONT COLOR=red
><A NAME=
"ref_1024_40" HREF=
"terminal_interface-curses__adb.htm#ref_1024_16">Mode
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1030 <b>pragma
</b> Import (C, Scrollok,
"scrollok");
1032 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1024_16">Scrollok
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1019_7">Win
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A> (Boolean'Pos (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1020_7">Mode
</A>))) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1033 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1034 <b>end
</b> <b>if
</b>;
1035 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1018_14">Allow_Scrolling
</A>;
1037 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1032_13" HREF=
"terminal_interface-curses__ads.htm#ref_1024_13">Scrolling_Allowed
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1032_32" HREF=
"terminal_interface-curses__ads.htm#ref_1024_32">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>)
1038 <b>return
</b> Boolean
1040 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1035_16">Is_Scroll_Ok
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1035_30" HREF=
"terminal_interface-curses__adb.htm#ref_1035_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A>;
1041 <b>pragma
</b> Import (C, Is_Scroll_Ok,
"is_scrollok");
1043 <b>return
</b> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1035_16">Is_Scroll_Ok
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1024_32">Win
</A>) /=
<A HREF=
"terminal_interface-curses__ads.htm#ref_1927_4">Curses_Bool_False
</A>);
1044 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1024_13">Scrolling_Allowed
</A>;
1046 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1041_14" HREF=
"terminal_interface-curses__ads.htm#ref_1029_14">Set_Scroll_Region
</A></FONT>
1047 (
<FONT COLOR=red
><A NAME=
"ref_1042_7" HREF=
"terminal_interface-curses__ads.htm#ref_1030_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1048 <FONT COLOR=red
><A NAME=
"ref_1043_7" HREF=
"terminal_interface-curses__ads.htm#ref_1031_7">Top_Line
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
1049 <FONT COLOR=red
><A NAME=
"ref_1044_7" HREF=
"terminal_interface-curses__ads.htm#ref_1032_7">Bottom_Line
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>)
1051 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1046_16">Wsetscrreg
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1046_28" HREF=
"terminal_interface-curses__adb.htm#ref_1046_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1052 <FONT COLOR=red
><A NAME=
"ref_1047_28" HREF=
"terminal_interface-curses__adb.htm#ref_1046_16">Lin
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1053 <FONT COLOR=red
><A NAME=
"ref_1048_28" HREF=
"terminal_interface-curses__adb.htm#ref_1046_16">Col
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1054 <b>pragma
</b> Import (C, Wsetscrreg,
"wsetscrreg");
1056 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1046_16">Wsetscrreg
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1030_7">Win
</A>,
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1031_7">Top_Line
</A>),
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1032_7">Bottom_Line
</A>))
1057 =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1058 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1059 <b>end
</b> <b>if
</b>;
1060 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1029_14">Set_Scroll_Region
</A>;
1061 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
1062 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1057_14" HREF=
"terminal_interface-curses__ads.htm#ref_1042_14">Update_Screen
</A></FONT>
1064 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1059_16">Do_Update
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1065 <b>pragma
</b> Import (C, Do_Update,
"doupdate");
1067 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1059_16">Do_Update
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1068 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1069 <b>end
</b> <b>if
</b>;
1070 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1042_14">Update_Screen
</A>;
1072 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1067_14" HREF=
"terminal_interface-curses__ads.htm#ref_1047_14">Refresh
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1067_23" HREF=
"terminal_interface-curses__ads.htm#ref_1047_23">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>)
1074 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1069_16">Wrefresh
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1069_26" HREF=
"terminal_interface-curses__adb.htm#ref_1069_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1075 <b>pragma
</b> Import (C, Wrefresh,
"wrefresh");
1077 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1069_16">Wrefresh
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1047_23">Win
</A>) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1078 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1079 <b>end
</b> <b>if
</b>;
1080 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1047_14">Refresh
</A>;
1082 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1077_14" HREF=
"terminal_interface-curses__ads.htm#ref_1054_14">Refresh_Without_Update
</A></FONT>
1083 (
<FONT COLOR=red
><A NAME=
"ref_1078_7" HREF=
"terminal_interface-curses__ads.htm#ref_1055_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>)
1085 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1080_16">Wnoutrefresh
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1080_30" HREF=
"terminal_interface-curses__adb.htm#ref_1080_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1086 <b>pragma
</b> Import (C, Wnoutrefresh,
"wnoutrefresh");
1088 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1080_16">Wnoutrefresh
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1055_7">Win
</A>) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1089 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1090 <b>end
</b> <b>if
</b>;
1091 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1054_14">Refresh_Without_Update
</A>;
1093 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1088_14" HREF=
"terminal_interface-curses__ads.htm#ref_1061_14">Redraw
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1088_22" HREF=
"terminal_interface-curses__ads.htm#ref_1061_22">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>)
1095 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1090_16">Redrawwin
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1090_27" HREF=
"terminal_interface-curses__adb.htm#ref_1090_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1096 <b>pragma
</b> Import (C, Redrawwin,
"redrawwin");
1098 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1090_16">Redrawwin
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1061_22">Win
</A>) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1099 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1100 <b>end
</b> <b>if
</b>;
1101 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1061_14">Redraw
</A>;
1103 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1098_14" HREF=
"terminal_interface-curses__ads.htm#ref_1065_14">Redraw
</A></FONT>
1104 (
<FONT COLOR=red
><A NAME=
"ref_1099_7" HREF=
"terminal_interface-curses__ads.htm#ref_1065_22">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1105 <FONT COLOR=red
><A NAME=
"ref_1100_7" HREF=
"terminal_interface-curses__ads.htm#ref_1066_22">Begin_Line
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
1106 <FONT COLOR=red
><A NAME=
"ref_1101_7" HREF=
"terminal_interface-curses__ads.htm#ref_1067_22">Line_Count
</A></FONT> : Positive)
1108 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1103_16">Wredrawln
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1103_27" HREF=
"terminal_interface-curses__adb.htm#ref_1103_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
<FONT COLOR=red
><A NAME=
"ref_1103_41" HREF=
"terminal_interface-curses__adb.htm#ref_1103_16">First
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
<FONT COLOR=red
><A NAME=
"ref_1103_56" HREF=
"terminal_interface-curses__adb.htm#ref_1103_16">Cnt
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
1109 <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1110 <b>pragma
</b> Import (C, Wredrawln,
"wredrawln");
1112 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1103_16">Wredrawln
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1065_22">Win
</A>,
1113 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1066_22">Begin_Line
</A>),
1114 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1067_22">Line_Count
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1115 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1116 <b>end
</b> <b>if
</b>;
1117 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1065_14">Redraw
</A>;
1119 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
1120 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1115_14" HREF=
"terminal_interface-curses__ads.htm#ref_1076_14">Erase
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1115_21" HREF=
"terminal_interface-curses__ads.htm#ref_1076_21">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>)
1122 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1117_16">Werase
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1117_24" HREF=
"terminal_interface-curses__adb.htm#ref_1117_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1123 <b>pragma
</b> Import (C, Werase,
"werase");
1125 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1117_16">Werase
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1076_21">Win
</A>) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1126 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1127 <b>end
</b> <b>if
</b>;
1128 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1076_14">Erase
</A>;
1130 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1125_14" HREF=
"terminal_interface-curses__ads.htm#ref_1082_14">Clear
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1125_21" HREF=
"terminal_interface-curses__ads.htm#ref_1083_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>)
1132 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1127_16">Wclear
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1127_24" HREF=
"terminal_interface-curses__adb.htm#ref_1127_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1133 <b>pragma
</b> Import (C, Wclear,
"wclear");
1135 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1127_16">Wclear
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1083_7">Win
</A>) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1136 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1137 <b>end
</b> <b>if
</b>;
1138 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1082_14">Clear
</A>;
1140 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1135_14" HREF=
"terminal_interface-curses__ads.htm#ref_1089_14">Clear_To_End_Of_Screen
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1135_38" HREF=
"terminal_interface-curses__ads.htm#ref_1090_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>)
1142 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1137_16">Wclearbot
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1137_27" HREF=
"terminal_interface-curses__adb.htm#ref_1137_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1143 <b>pragma
</b> Import (C, Wclearbot,
"wclrtobot");
1145 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1137_16">Wclearbot
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1090_7">Win
</A>) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1146 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1147 <b>end
</b> <b>if
</b>;
1148 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1089_14">Clear_To_End_Of_Screen
</A>;
1150 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1145_14" HREF=
"terminal_interface-curses__ads.htm#ref_1096_14">Clear_To_End_Of_Line
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1145_36" HREF=
"terminal_interface-curses__ads.htm#ref_1097_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>)
1152 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1147_16">Wcleareol
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1147_27" HREF=
"terminal_interface-curses__adb.htm#ref_1147_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1153 <b>pragma
</b> Import (C, Wcleareol,
"wclrtoeol");
1155 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1147_16">Wcleareol
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1097_7">Win
</A>) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1156 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1157 <b>end
</b> <b>if
</b>;
1158 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1096_14">Clear_To_End_Of_Line
</A>;
1159 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
1160 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1155_14" HREF=
"terminal_interface-curses__ads.htm#ref_1110_14">Set_Background
</A></FONT>
1161 (
<FONT COLOR=red
><A NAME=
"ref_1156_7" HREF=
"terminal_interface-curses__ads.htm#ref_1111_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1162 <FONT COLOR=red
><A NAME=
"ref_1157_7" HREF=
"terminal_interface-curses__ads.htm#ref_1112_7">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A>)
1164 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1159_17">WBackground
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1159_30" HREF=
"terminal_interface-curses__adb.htm#ref_1159_17">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
<FONT COLOR=red
><A NAME=
"ref_1159_42" HREF=
"terminal_interface-curses__adb.htm#ref_1159_17">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>);
1165 <b>pragma
</b> Import (C, WBackground,
"wbkgdset");
1167 <A HREF=
"terminal_interface-curses__adb.htm#ref_1159_17">WBackground
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1111_7">Win
</A>,
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_75_4">AttrChar_To_Chtype
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1112_7">Ch
</A>));
1168 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1110_14">Set_Background
</A>;
1170 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1165_14" HREF=
"terminal_interface-curses__ads.htm#ref_1118_14">Change_Background
</A></FONT>
1171 (
<FONT COLOR=red
><A NAME=
"ref_1166_7" HREF=
"terminal_interface-curses__ads.htm#ref_1119_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1172 <FONT COLOR=red
><A NAME=
"ref_1167_7" HREF=
"terminal_interface-curses__ads.htm#ref_1120_7">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A>)
1174 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1169_16">WChangeBkgd
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1169_29" HREF=
"terminal_interface-curses__adb.htm#ref_1169_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
<FONT COLOR=red
><A NAME=
"ref_1169_41" HREF=
"terminal_interface-curses__adb.htm#ref_1169_16">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1175 <b>pragma
</b> Import (C, WChangeBkgd,
"wbkgd");
1177 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1169_16">WChangeBkgd
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1119_7">Win
</A>,
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_75_4">AttrChar_To_Chtype
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1120_7">Ch
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1178 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1179 <b>end
</b> <b>if
</b>;
1180 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1118_14">Change_Background
</A>;
1182 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1177_13" HREF=
"terminal_interface-curses__ads.htm#ref_1127_13">Get_Background
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1177_29" HREF=
"terminal_interface-curses__ads.htm#ref_1127_29">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>)
1183 <b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A>
1185 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1180_16">Wgetbkgd
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1180_26" HREF=
"terminal_interface-curses__adb.htm#ref_1180_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>;
1186 <b>pragma
</b> Import (C, Wgetbkgd,
"getbkgd");
1188 <b>return
</b> Chtype_To_AttrChar (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1180_16">Wgetbkgd
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1127_29">Win
</A>));
1189 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1127_13">Get_Background
</A>;
1190 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
1191 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1186_14" HREF=
"terminal_interface-curses__ads.htm#ref_1154_14">Change_Lines_Status
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1186_35" HREF=
"terminal_interface-curses__ads.htm#ref_1154_35">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1192 <FONT COLOR=red
><A NAME=
"ref_1187_35" HREF=
"terminal_interface-curses__ads.htm#ref_1155_35">Start
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
1193 <FONT COLOR=red
><A NAME=
"ref_1188_35" HREF=
"terminal_interface-curses__ads.htm#ref_1156_35">Count
</A></FONT> : Positive;
1194 <FONT COLOR=red
><A NAME=
"ref_1189_35" HREF=
"terminal_interface-curses__ads.htm#ref_1157_35">State
</A></FONT> : Boolean)
1196 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1191_16">Wtouchln
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1191_26" HREF=
"terminal_interface-curses__adb.htm#ref_1191_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1197 <FONT COLOR=red
><A NAME=
"ref_1192_26" HREF=
"terminal_interface-curses__adb.htm#ref_1191_16">Sta
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1198 <FONT COLOR=red
><A NAME=
"ref_1193_26" HREF=
"terminal_interface-curses__adb.htm#ref_1191_16">Cnt
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1199 <FONT COLOR=red
><A NAME=
"ref_1194_26" HREF=
"terminal_interface-curses__adb.htm#ref_1191_16">Chg
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1200 <b>pragma
</b> Import (C, Wtouchln,
"wtouchln");
1202 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1191_16">Wtouchln
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1154_35">Win
</A>,
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1155_35">Start
</A>),
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1156_35">Count
</A>),
1203 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (Boolean'Pos (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1157_35">State
</A>))) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1204 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1205 <b>end
</b> <b>if
</b>;
1206 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1154_14">Change_Lines_Status
</A>;
1208 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1203_14" HREF=
"terminal_interface-curses__ads.htm#ref_1143_14">Touch
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1203_21" HREF=
"terminal_interface-curses__ads.htm#ref_1143_21">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>)
1210 <FONT COLOR=red
><A NAME=
"ref_1205_7">Y
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
1211 <FONT COLOR=red
><A NAME=
"ref_1206_7">X
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>;
1213 <A HREF=
"terminal_interface-curses__ads.htm#ref_1230_14">Get_Size
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1143_21">Win
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_1205_7">Y
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_1206_7">X
</A>);
1214 <b>pragma
</b> Unreferenced (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1206_7">X
</A>);
1215 <A HREF=
"terminal_interface-curses__ads.htm#ref_1154_14">Change_Lines_Status
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1143_21">Win
</A>,
0, Positive (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1205_7">Y
</A>), True);
1216 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1143_14">Touch
</A>;
1218 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1213_14" HREF=
"terminal_interface-curses__ads.htm#ref_1138_14">Untouch
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1213_23" HREF=
"terminal_interface-curses__ads.htm#ref_1138_23">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>)
1220 <FONT COLOR=red
><A NAME=
"ref_1215_7">Y
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
1221 <FONT COLOR=red
><A NAME=
"ref_1216_7">X
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>;
1223 <A HREF=
"terminal_interface-curses__ads.htm#ref_1230_14">Get_Size
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1138_23">Win
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_1215_7">Y
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_1216_7">X
</A>);
1224 <b>pragma
</b> Unreferenced (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1216_7">X
</A>);
1225 <A HREF=
"terminal_interface-curses__ads.htm#ref_1154_14">Change_Lines_Status
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1138_23">Win
</A>,
0, Positive (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1215_7">Y
</A>), False);
1226 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1138_14">Untouch
</A>;
1228 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1223_14" HREF=
"terminal_interface-curses__ads.htm#ref_1147_14">Touch
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1223_21" HREF=
"terminal_interface-curses__ads.htm#ref_1147_21">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1229 <FONT COLOR=red
><A NAME=
"ref_1224_21" HREF=
"terminal_interface-curses__ads.htm#ref_1148_21">Start
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
1230 <FONT COLOR=red
><A NAME=
"ref_1225_21" HREF=
"terminal_interface-curses__ads.htm#ref_1149_21">Count
</A></FONT> : Positive)
1233 <A HREF=
"terminal_interface-curses__ads.htm#ref_1154_14">Change_Lines_Status
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1147_21">Win
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1148_21">Start
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1149_21">Count
</A>, True);
1234 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1147_14">Touch
</A>;
1236 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1231_13" HREF=
"terminal_interface-curses__ads.htm#ref_1162_13">Is_Touched
</A></FONT>
1237 (
<FONT COLOR=red
><A NAME=
"ref_1232_7" HREF=
"terminal_interface-curses__ads.htm#ref_1162_25">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1238 <FONT COLOR=red
><A NAME=
"ref_1233_7" HREF=
"terminal_interface-curses__ads.htm#ref_1163_25">Line
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>)
<b>return
</b> Boolean
1240 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1235_16">WLineTouched
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1235_30" HREF=
"terminal_interface-curses__adb.htm#ref_1235_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
<FONT COLOR=red
><A NAME=
"ref_1235_42" HREF=
"terminal_interface-curses__adb.htm#ref_1235_16">L
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A>;
1241 <b>pragma
</b> Import (C, WLineTouched,
"is_linetouched");
1243 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1235_16">WLineTouched
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1162_25">Win
</A>,
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1163_25">Line
</A>)) =
<A HREF=
"terminal_interface-curses__ads.htm#ref_1927_4">Curses_Bool_False
</A> <b>then
</b>
1244 <b>return
</b> False;
1247 <b>end
</b> <b>if
</b>;
1248 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1162_13">Is_Touched
</A>;
1250 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1245_13" HREF=
"terminal_interface-curses__ads.htm#ref_1167_13">Is_Touched
</A></FONT>
1251 (
<FONT COLOR=red
><A NAME=
"ref_1246_7" HREF=
"terminal_interface-curses__ads.htm#ref_1167_25">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>)
<b>return
</b> Boolean
1253 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1248_16">WWinTouched
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1248_29" HREF=
"terminal_interface-curses__adb.htm#ref_1248_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A>;
1254 <b>pragma
</b> Import (C, WWinTouched,
"is_wintouched");
1256 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1248_16">WWinTouched
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1167_25">Win
</A>) =
<A HREF=
"terminal_interface-curses__ads.htm#ref_1927_4">Curses_Bool_False
</A> <b>then
</b>
1257 <b>return
</b> False;
1260 <b>end
</b> <b>if
</b>;
1261 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1167_13">Is_Touched
</A>;
1262 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
1263 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1258_14" HREF=
"terminal_interface-curses__ads.htm#ref_1176_14">Copy
</A></FONT>
1264 (
<FONT COLOR=red
><A NAME=
"ref_1259_7" HREF=
"terminal_interface-curses__ads.htm#ref_1177_7">Source_Window
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1265 <FONT COLOR=red
><A NAME=
"ref_1260_7" HREF=
"terminal_interface-curses__ads.htm#ref_1178_7">Destination_Window
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1266 <FONT COLOR=red
><A NAME=
"ref_1261_7" HREF=
"terminal_interface-curses__ads.htm#ref_1179_7">Source_Top_Row
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
1267 <FONT COLOR=red
><A NAME=
"ref_1262_7" HREF=
"terminal_interface-curses__ads.htm#ref_1180_7">Source_Left_Column
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>;
1268 <FONT COLOR=red
><A NAME=
"ref_1263_7" HREF=
"terminal_interface-curses__ads.htm#ref_1181_7">Destination_Top_Row
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
1269 <FONT COLOR=red
><A NAME=
"ref_1264_7" HREF=
"terminal_interface-curses__ads.htm#ref_1182_7">Destination_Left_Column
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>;
1270 <FONT COLOR=red
><A NAME=
"ref_1265_7" HREF=
"terminal_interface-curses__ads.htm#ref_1183_7">Destination_Bottom_Row
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
1271 <FONT COLOR=red
><A NAME=
"ref_1266_7" HREF=
"terminal_interface-curses__ads.htm#ref_1184_7">Destination_Right_Column
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>;
1272 <FONT COLOR=red
><A NAME=
"ref_1267_7" HREF=
"terminal_interface-curses__ads.htm#ref_1185_7">Non_Destructive_Mode
</A></FONT> : Boolean := True)
1274 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1269_16">Copywin
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1269_25" HREF=
"terminal_interface-curses__adb.htm#ref_1269_16">Src
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1275 <FONT COLOR=red
><A NAME=
"ref_1270_25" HREF=
"terminal_interface-curses__adb.htm#ref_1269_16">Dst
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1276 <FONT COLOR=red
><A NAME=
"ref_1271_25" HREF=
"terminal_interface-curses__adb.htm#ref_1269_16">Str
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1277 <FONT COLOR=red
><A NAME=
"ref_1272_25" HREF=
"terminal_interface-curses__adb.htm#ref_1269_16">Slc
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1278 <FONT COLOR=red
><A NAME=
"ref_1273_25" HREF=
"terminal_interface-curses__adb.htm#ref_1269_16">Dtr
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1279 <FONT COLOR=red
><A NAME=
"ref_1274_25" HREF=
"terminal_interface-curses__adb.htm#ref_1269_16">Dlc
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1280 <FONT COLOR=red
><A NAME=
"ref_1275_25" HREF=
"terminal_interface-curses__adb.htm#ref_1269_16">Dbr
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1281 <FONT COLOR=red
><A NAME=
"ref_1276_25" HREF=
"terminal_interface-curses__adb.htm#ref_1269_16">Drc
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1282 <FONT COLOR=red
><A NAME=
"ref_1277_25" HREF=
"terminal_interface-curses__adb.htm#ref_1269_16">Ndm
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1283 <b>pragma
</b> Import (C, Copywin,
"copywin");
1285 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1269_16">Copywin
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1177_7">Source_Window
</A>,
1286 <A HREF=
"terminal_interface-curses__ads.htm#ref_1178_7">Destination_Window
</A>,
1287 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1179_7">Source_Top_Row
</A>),
1288 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1180_7">Source_Left_Column
</A>),
1289 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1181_7">Destination_Top_Row
</A>),
1290 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1182_7">Destination_Left_Column
</A>),
1291 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1183_7">Destination_Bottom_Row
</A>),
1292 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1184_7">Destination_Right_Column
</A>),
1293 Boolean'Pos (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1185_7">Non_Destructive_Mode
</A>)
1294 ) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1295 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1296 <b>end
</b> <b>if
</b>;
1297 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1176_14">Copy
</A>;
1299 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1294_14" HREF=
"terminal_interface-curses__ads.htm#ref_1190_14">Overwrite
</A></FONT>
1300 (
<FONT COLOR=red
><A NAME=
"ref_1295_7" HREF=
"terminal_interface-curses__ads.htm#ref_1190_25">Source_Window
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1301 <FONT COLOR=red
><A NAME=
"ref_1296_7" HREF=
"terminal_interface-curses__ads.htm#ref_1191_25">Destination_Window
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
1303 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1298_16">Overwrite
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1298_27" HREF=
"terminal_interface-curses__adb.htm#ref_1298_16">Src
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
<FONT COLOR=red
><A NAME=
"ref_1298_41" HREF=
"terminal_interface-curses__adb.htm#ref_1298_16">Dst
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1304 <b>pragma
</b> Import (C, Overwrite,
"overwrite");
1306 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1298_16">Overwrite
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1190_25">Source_Window
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1191_25">Destination_Window
</A>) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1307 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1308 <b>end
</b> <b>if
</b>;
1309 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1190_14">Overwrite
</A>;
1311 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1306_14" HREF=
"terminal_interface-curses__ads.htm#ref_1196_14">Overlay
</A></FONT>
1312 (
<FONT COLOR=red
><A NAME=
"ref_1307_7" HREF=
"terminal_interface-curses__ads.htm#ref_1196_23">Source_Window
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1313 <FONT COLOR=red
><A NAME=
"ref_1308_7" HREF=
"terminal_interface-curses__ads.htm#ref_1197_23">Destination_Window
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
1315 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1310_16">Overlay
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1310_25" HREF=
"terminal_interface-curses__adb.htm#ref_1310_16">Src
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
<FONT COLOR=red
><A NAME=
"ref_1310_39" HREF=
"terminal_interface-curses__adb.htm#ref_1310_16">Dst
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1316 <b>pragma
</b> Import (C, Overlay,
"overlay");
1318 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1310_16">Overlay
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1196_23">Source_Window
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1197_23">Destination_Window
</A>) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1319 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1320 <b>end
</b> <b>if
</b>;
1321 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1196_14">Overlay
</A>;
1323 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
1324 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1319_14" HREF=
"terminal_interface-curses__ads.htm#ref_1206_14">Insert_Delete_Lines
</A></FONT>
1325 (
<FONT COLOR=red
><A NAME=
"ref_1320_7" HREF=
"terminal_interface-curses__ads.htm#ref_1207_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1326 <FONT COLOR=red
><A NAME=
"ref_1321_7" HREF=
"terminal_interface-curses__ads.htm#ref_1208_7">Lines
</A></FONT> : Integer :=
1)
<FONT COLOR=green
><EM>-- default is to insert one line above
</EM></FONT>
1328 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1323_16">Winsdelln
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1323_27" HREF=
"terminal_interface-curses__adb.htm#ref_1323_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
<FONT COLOR=red
><A NAME=
"ref_1323_39" HREF=
"terminal_interface-curses__adb.htm#ref_1323_16">N
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1329 <b>pragma
</b> Import (C, Winsdelln,
"winsdelln");
1331 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1323_16">Winsdelln
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1207_7">Win
</A>,
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1208_7">Lines
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1332 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1333 <b>end
</b> <b>if
</b>;
1334 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1206_14">Insert_Delete_Lines
</A>;
1336 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1331_14" HREF=
"terminal_interface-curses__ads.htm#ref_1214_14">Delete_Line
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1331_27" HREF=
"terminal_interface-curses__ads.htm#ref_1214_27">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>)
1339 <A HREF=
"terminal_interface-curses__ads.htm#ref_1206_14">Insert_Delete_Lines
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1214_27">Win
</A>, -
1);
1340 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1214_14">Delete_Line
</A>;
1342 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1337_14" HREF=
"terminal_interface-curses__ads.htm#ref_1220_14">Insert_Line
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1337_27" HREF=
"terminal_interface-curses__ads.htm#ref_1220_27">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>)
1345 <A HREF=
"terminal_interface-curses__ads.htm#ref_1206_14">Insert_Delete_Lines
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1220_27">Win
</A>,
1);
1346 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1220_14">Insert_Line
</A>;
1347 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
1349 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1344_14" HREF=
"terminal_interface-curses__ads.htm#ref_1230_14">Get_Size
</A></FONT>
1350 (
<FONT COLOR=red
><A NAME=
"ref_1345_7" HREF=
"terminal_interface-curses__ads.htm#ref_1231_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1351 <FONT COLOR=red
><A NAME=
"ref_1346_7" HREF=
"terminal_interface-curses__ads.htm#ref_1232_7">Number_Of_Lines
</A></FONT> :
<b>out
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_63_12">Line_Count
</A>;
1352 <FONT COLOR=red
><A NAME=
"ref_1347_7" HREF=
"terminal_interface-curses__ads.htm#ref_1233_7">Number_Of_Columns
</A></FONT> :
<b>out
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_65_12">Column_Count
</A>)
1354 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1349_16">GetMaxY
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1349_25" HREF=
"terminal_interface-curses__adb.htm#ref_1349_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1355 <b>pragma
</b> Import (C, GetMaxY,
"getmaxy");
1357 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1352_16">GetMaxX
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1352_25" HREF=
"terminal_interface-curses__adb.htm#ref_1352_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1358 <b>pragma
</b> Import (C, GetMaxX,
"getmaxx");
1360 <FONT COLOR=red
><A NAME=
"ref_1355_7">Y
</A></FONT> :
<b>constant
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_1349_16">GetMaxY
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1231_7">Win
</A>);
1361 <FONT COLOR=red
><A NAME=
"ref_1356_7">X
</A></FONT> :
<b>constant
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_1352_16">GetMaxX
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1231_7">Win
</A>);
1363 <A HREF=
"terminal_interface-curses__ads.htm#ref_1232_7">Number_Of_Lines
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_63_12">Line_Count
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1355_7">Y
</A>);
1364 <A HREF=
"terminal_interface-curses__ads.htm#ref_1233_7">Number_Of_Columns
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_65_12">Column_Count
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1356_7">X
</A>);
1365 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1230_14">Get_Size
</A>;
1367 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1362_14" HREF=
"terminal_interface-curses__ads.htm#ref_1238_14">Get_Window_Position
</A></FONT>
1368 (
<FONT COLOR=red
><A NAME=
"ref_1363_7" HREF=
"terminal_interface-curses__ads.htm#ref_1239_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1369 <FONT COLOR=red
><A NAME=
"ref_1364_7" HREF=
"terminal_interface-curses__ads.htm#ref_1240_7">Top_Left_Line
</A></FONT> :
<b>out
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
1370 <FONT COLOR=red
><A NAME=
"ref_1365_7" HREF=
"terminal_interface-curses__ads.htm#ref_1241_7">Top_Left_Column
</A></FONT> :
<b>out
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>)
1372 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1367_16">GetBegY
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1367_25" HREF=
"terminal_interface-curses__adb.htm#ref_1367_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1373 <b>pragma
</b> Import (C, GetBegY,
"getbegy");
1375 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1370_16">GetBegX
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1370_25" HREF=
"terminal_interface-curses__adb.htm#ref_1370_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1376 <b>pragma
</b> Import (C, GetBegX,
"getbegx");
1378 <FONT COLOR=red
><A NAME=
"ref_1373_7">Y
</A></FONT> :
<b>constant
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A> :=
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1367_16">GetBegY
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1239_7">Win
</A>));
1379 <FONT COLOR=red
><A NAME=
"ref_1374_7">X
</A></FONT> :
<b>constant
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A> :=
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1370_16">GetBegX
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1239_7">Win
</A>));
1381 <A HREF=
"terminal_interface-curses__ads.htm#ref_1240_7">Top_Left_Line
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1373_7">Y
</A>);
1382 <A HREF=
"terminal_interface-curses__ads.htm#ref_1241_7">Top_Left_Column
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1374_7">X
</A>);
1383 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1238_14">Get_Window_Position
</A>;
1385 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1380_14" HREF=
"terminal_interface-curses__ads.htm#ref_1246_14">Get_Cursor_Position
</A></FONT>
1386 (
<FONT COLOR=red
><A NAME=
"ref_1381_7" HREF=
"terminal_interface-curses__ads.htm#ref_1247_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1387 <FONT COLOR=red
><A NAME=
"ref_1382_7" HREF=
"terminal_interface-curses__ads.htm#ref_1248_7">Line
</A></FONT> :
<b>out
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
1388 <FONT COLOR=red
><A NAME=
"ref_1383_7" HREF=
"terminal_interface-curses__ads.htm#ref_1249_7">Column
</A></FONT> :
<b>out
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>)
1390 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1385_16">GetCurY
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1385_25" HREF=
"terminal_interface-curses__adb.htm#ref_1385_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1391 <b>pragma
</b> Import (C, GetCurY,
"getcury");
1393 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1388_16">GetCurX
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1388_25" HREF=
"terminal_interface-curses__adb.htm#ref_1388_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1394 <b>pragma
</b> Import (C, GetCurX,
"getcurx");
1396 <FONT COLOR=red
><A NAME=
"ref_1391_7">Y
</A></FONT> :
<b>constant
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A> :=
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1385_16">GetCurY
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1247_7">Win
</A>));
1397 <FONT COLOR=red
><A NAME=
"ref_1392_7">X
</A></FONT> :
<b>constant
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A> :=
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1388_16">GetCurX
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1247_7">Win
</A>));
1399 <A HREF=
"terminal_interface-curses__ads.htm#ref_1248_7">Line
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1391_7">Y
</A>);
1400 <A HREF=
"terminal_interface-curses__ads.htm#ref_1249_7">Column
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1392_7">X
</A>);
1401 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1246_14">Get_Cursor_Position
</A>;
1403 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1398_14" HREF=
"terminal_interface-curses__ads.htm#ref_1254_14">Get_Origin_Relative_To_Parent
</A></FONT>
1404 (
<FONT COLOR=red
><A NAME=
"ref_1399_7" HREF=
"terminal_interface-curses__ads.htm#ref_1255_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1405 <FONT COLOR=red
><A NAME=
"ref_1400_7" HREF=
"terminal_interface-curses__ads.htm#ref_1256_7">Top_Left_Line
</A></FONT> :
<b>out
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
1406 <FONT COLOR=red
><A NAME=
"ref_1401_7" HREF=
"terminal_interface-curses__ads.htm#ref_1257_7">Top_Left_Column
</A></FONT> :
<b>out
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>;
1407 <FONT COLOR=red
><A NAME=
"ref_1402_7" HREF=
"terminal_interface-curses__ads.htm#ref_1258_7">Is_Not_A_Subwindow
</A></FONT> :
<b>out
</b> Boolean)
1409 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1404_16">GetParY
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1404_25" HREF=
"terminal_interface-curses__adb.htm#ref_1404_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1410 <b>pragma
</b> Import (C, GetParY,
"getpary");
1412 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1407_16">GetParX
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1407_25" HREF=
"terminal_interface-curses__adb.htm#ref_1407_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1413 <b>pragma
</b> Import (C, GetParX,
"getparx");
1415 <FONT COLOR=red
><A NAME=
"ref_1410_7">Y
</A></FONT> :
<b>constant
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_1404_16">GetParY
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1255_7">Win
</A>);
1416 <FONT COLOR=red
><A NAME=
"ref_1411_7">X
</A></FONT> :
<b>constant
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_1407_16">GetParX
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1255_7">Win
</A>);
1418 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1410_7">Y
</A> = -
1 <b>then
</b>
1419 <A HREF=
"terminal_interface-curses__ads.htm#ref_1256_7">Top_Left_Line
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>'Last;
1420 <A HREF=
"terminal_interface-curses__ads.htm#ref_1257_7">Top_Left_Column
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>'Last;
1421 <A HREF=
"terminal_interface-curses__ads.htm#ref_1258_7">Is_Not_A_Subwindow
</A> := True;
1423 <A HREF=
"terminal_interface-curses__ads.htm#ref_1256_7">Top_Left_Line
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1410_7">Y
</A>);
1424 <A HREF=
"terminal_interface-curses__ads.htm#ref_1257_7">Top_Left_Column
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1411_7">X
</A>);
1425 <A HREF=
"terminal_interface-curses__ads.htm#ref_1258_7">Is_Not_A_Subwindow
</A> := False;
1426 <b>end
</b> <b>if
</b>;
1427 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1254_14">Get_Origin_Relative_To_Parent
</A>;
1428 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
1429 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1424_13" HREF=
"terminal_interface-curses__ads.htm#ref_1269_13">New_Pad
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1424_22" HREF=
"terminal_interface-curses__ads.htm#ref_1269_22">Lines
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_63_12">Line_Count
</A>;
1430 <FONT COLOR=red
><A NAME=
"ref_1425_22" HREF=
"terminal_interface-curses__ads.htm#ref_1270_22">Columns
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_65_12">Column_Count
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>
1432 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1427_16">Newpad
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1427_24" HREF=
"terminal_interface-curses__adb.htm#ref_1427_16">Lines
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
<FONT COLOR=red
><A NAME=
"ref_1427_39" HREF=
"terminal_interface-curses__adb.htm#ref_1427_16">Columns
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1433 <b>pragma
</b> Import (C, Newpad,
"newpad");
1435 <FONT COLOR=red
><A NAME=
"ref_1430_7">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1437 <A HREF=
"terminal_interface-curses__adb.htm#ref_1430_7">W
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_1427_16">Newpad
</A> (
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1269_22">Lines
</A>),
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1270_22">Columns
</A>));
1438 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1430_7">W
</A> =
<A HREF=
"terminal_interface-curses__ads.htm#ref_58_4">Null_Window
</A> <b>then
</b>
1439 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1440 <b>end
</b> <b>if
</b>;
1441 <b>return
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1430_7">W
</A>;
1442 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1269_13">New_Pad
</A>;
1444 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1439_13" HREF=
"terminal_interface-curses__ads.htm#ref_1275_13">Sub_Pad
</A></FONT>
1445 (
<FONT COLOR=red
><A NAME=
"ref_1440_7" HREF=
"terminal_interface-curses__ads.htm#ref_1276_7">Pad
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1446 <FONT COLOR=red
><A NAME=
"ref_1441_7" HREF=
"terminal_interface-curses__ads.htm#ref_1277_7">Number_Of_Lines
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_63_12">Line_Count
</A>;
1447 <FONT COLOR=red
><A NAME=
"ref_1442_7" HREF=
"terminal_interface-curses__ads.htm#ref_1278_7">Number_Of_Columns
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_65_12">Column_Count
</A>;
1448 <FONT COLOR=red
><A NAME=
"ref_1443_7" HREF=
"terminal_interface-curses__ads.htm#ref_1279_7">First_Line_Position
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
1449 <FONT COLOR=red
><A NAME=
"ref_1444_7" HREF=
"terminal_interface-curses__ads.htm#ref_1280_7">First_Column_Position
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>
1451 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1446_16">Subpad
</A></FONT>
1452 (
<FONT COLOR=red
><A NAME=
"ref_1447_10" HREF=
"terminal_interface-curses__adb.htm#ref_1446_16">Pad
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1453 <FONT COLOR=red
><A NAME=
"ref_1448_10" HREF=
"terminal_interface-curses__adb.htm#ref_1446_16">Number_Of_Lines
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1454 <FONT COLOR=red
><A NAME=
"ref_1449_10" HREF=
"terminal_interface-curses__adb.htm#ref_1446_16">Number_Of_Columns
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1455 <FONT COLOR=red
><A NAME=
"ref_1450_10" HREF=
"terminal_interface-curses__adb.htm#ref_1446_16">First_Line_Position
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1456 <FONT COLOR=red
><A NAME=
"ref_1451_10" HREF=
"terminal_interface-curses__adb.htm#ref_1446_16">First_Column_Position
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1457 <b>pragma
</b> Import (C, Subpad,
"subpad");
1459 <FONT COLOR=red
><A NAME=
"ref_1454_7">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1461 <A HREF=
"terminal_interface-curses__adb.htm#ref_1454_7">W
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_1446_16">Subpad
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1276_7">Pad
</A>,
1462 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1277_7">Number_Of_Lines
</A>),
1463 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1278_7">Number_Of_Columns
</A>),
1464 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1279_7">First_Line_Position
</A>),
1465 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1280_7">First_Column_Position
</A>));
1466 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1454_7">W
</A> =
<A HREF=
"terminal_interface-curses__ads.htm#ref_58_4">Null_Window
</A> <b>then
</b>
1467 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1468 <b>end
</b> <b>if
</b>;
1469 <b>return
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1454_7">W
</A>;
1470 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1275_13">Sub_Pad
</A>;
1472 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1467_14" HREF=
"terminal_interface-curses__ads.htm#ref_1285_14">Refresh
</A></FONT>
1473 (
<FONT COLOR=red
><A NAME=
"ref_1468_7" HREF=
"terminal_interface-curses__ads.htm#ref_1286_7">Pad
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1474 <FONT COLOR=red
><A NAME=
"ref_1469_7" HREF=
"terminal_interface-curses__ads.htm#ref_1287_7">Source_Top_Row
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
1475 <FONT COLOR=red
><A NAME=
"ref_1470_7" HREF=
"terminal_interface-curses__ads.htm#ref_1288_7">Source_Left_Column
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>;
1476 <FONT COLOR=red
><A NAME=
"ref_1471_7" HREF=
"terminal_interface-curses__ads.htm#ref_1289_7">Destination_Top_Row
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
1477 <FONT COLOR=red
><A NAME=
"ref_1472_7" HREF=
"terminal_interface-curses__ads.htm#ref_1290_7">Destination_Left_Column
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>;
1478 <FONT COLOR=red
><A NAME=
"ref_1473_7" HREF=
"terminal_interface-curses__ads.htm#ref_1291_7">Destination_Bottom_Row
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
1479 <FONT COLOR=red
><A NAME=
"ref_1474_7" HREF=
"terminal_interface-curses__ads.htm#ref_1292_7">Destination_Right_Column
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>)
1481 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1476_16">Prefresh
</A></FONT>
1482 (
<FONT COLOR=red
><A NAME=
"ref_1477_10" HREF=
"terminal_interface-curses__adb.htm#ref_1476_16">Pad
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1483 <FONT COLOR=red
><A NAME=
"ref_1478_10" HREF=
"terminal_interface-curses__adb.htm#ref_1476_16">Source_Top_Row
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1484 <FONT COLOR=red
><A NAME=
"ref_1479_10" HREF=
"terminal_interface-curses__adb.htm#ref_1476_16">Source_Left_Column
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1485 <FONT COLOR=red
><A NAME=
"ref_1480_10" HREF=
"terminal_interface-curses__adb.htm#ref_1476_16">Destination_Top_Row
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1486 <FONT COLOR=red
><A NAME=
"ref_1481_10" HREF=
"terminal_interface-curses__adb.htm#ref_1476_16">Destination_Left_Column
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1487 <FONT COLOR=red
><A NAME=
"ref_1482_10" HREF=
"terminal_interface-curses__adb.htm#ref_1476_16">Destination_Bottom_Row
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1488 <FONT COLOR=red
><A NAME=
"ref_1483_10" HREF=
"terminal_interface-curses__adb.htm#ref_1476_16">Destination_Right_Column
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1489 <b>pragma
</b> Import (C, Prefresh,
"prefresh");
1491 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1476_16">Prefresh
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1286_7">Pad
</A>,
1492 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1287_7">Source_Top_Row
</A>),
1493 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1288_7">Source_Left_Column
</A>),
1494 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1289_7">Destination_Top_Row
</A>),
1495 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1290_7">Destination_Left_Column
</A>),
1496 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1291_7">Destination_Bottom_Row
</A>),
1497 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1292_7">Destination_Right_Column
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1498 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1499 <b>end
</b> <b>if
</b>;
1500 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1285_14">Refresh
</A>;
1502 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1497_14" HREF=
"terminal_interface-curses__ads.htm#ref_1297_14">Refresh_Without_Update
</A></FONT>
1503 (
<FONT COLOR=red
><A NAME=
"ref_1498_7" HREF=
"terminal_interface-curses__ads.htm#ref_1298_7">Pad
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1504 <FONT COLOR=red
><A NAME=
"ref_1499_7" HREF=
"terminal_interface-curses__ads.htm#ref_1299_7">Source_Top_Row
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
1505 <FONT COLOR=red
><A NAME=
"ref_1500_7" HREF=
"terminal_interface-curses__ads.htm#ref_1300_7">Source_Left_Column
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>;
1506 <FONT COLOR=red
><A NAME=
"ref_1501_7" HREF=
"terminal_interface-curses__ads.htm#ref_1301_7">Destination_Top_Row
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
1507 <FONT COLOR=red
><A NAME=
"ref_1502_7" HREF=
"terminal_interface-curses__ads.htm#ref_1302_7">Destination_Left_Column
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>;
1508 <FONT COLOR=red
><A NAME=
"ref_1503_7" HREF=
"terminal_interface-curses__ads.htm#ref_1303_7">Destination_Bottom_Row
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
1509 <FONT COLOR=red
><A NAME=
"ref_1504_7" HREF=
"terminal_interface-curses__ads.htm#ref_1304_7">Destination_Right_Column
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>)
1511 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1506_16">Pnoutrefresh
</A></FONT>
1512 (
<FONT COLOR=red
><A NAME=
"ref_1507_10" HREF=
"terminal_interface-curses__adb.htm#ref_1506_16">Pad
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1513 <FONT COLOR=red
><A NAME=
"ref_1508_10" HREF=
"terminal_interface-curses__adb.htm#ref_1506_16">Source_Top_Row
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1514 <FONT COLOR=red
><A NAME=
"ref_1509_10" HREF=
"terminal_interface-curses__adb.htm#ref_1506_16">Source_Left_Column
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1515 <FONT COLOR=red
><A NAME=
"ref_1510_10" HREF=
"terminal_interface-curses__adb.htm#ref_1506_16">Destination_Top_Row
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1516 <FONT COLOR=red
><A NAME=
"ref_1511_10" HREF=
"terminal_interface-curses__adb.htm#ref_1506_16">Destination_Left_Column
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1517 <FONT COLOR=red
><A NAME=
"ref_1512_10" HREF=
"terminal_interface-curses__adb.htm#ref_1506_16">Destination_Bottom_Row
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1518 <FONT COLOR=red
><A NAME=
"ref_1513_10" HREF=
"terminal_interface-curses__adb.htm#ref_1506_16">Destination_Right_Column
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1519 <b>pragma
</b> Import (C, Pnoutrefresh,
"pnoutrefresh");
1521 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1506_16">Pnoutrefresh
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1298_7">Pad
</A>,
1522 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1299_7">Source_Top_Row
</A>),
1523 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1300_7">Source_Left_Column
</A>),
1524 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1301_7">Destination_Top_Row
</A>),
1525 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1302_7">Destination_Left_Column
</A>),
1526 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1303_7">Destination_Bottom_Row
</A>),
1527 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1304_7">Destination_Right_Column
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1528 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1529 <b>end
</b> <b>if
</b>;
1530 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1297_14">Refresh_Without_Update
</A>;
1532 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1527_14" HREF=
"terminal_interface-curses__ads.htm#ref_1309_14">Add_Character_To_Pad_And_Echo_It
</A></FONT>
1533 (
<FONT COLOR=red
><A NAME=
"ref_1528_7" HREF=
"terminal_interface-curses__ads.htm#ref_1310_7">Pad
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1534 <FONT COLOR=red
><A NAME=
"ref_1529_7" HREF=
"terminal_interface-curses__ads.htm#ref_1311_7">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A>)
1536 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1531_16">Pechochar
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1531_27" HREF=
"terminal_interface-curses__adb.htm#ref_1531_16">Pad
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
<FONT COLOR=red
><A NAME=
"ref_1531_41" HREF=
"terminal_interface-curses__adb.htm#ref_1531_16">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>)
1537 <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1538 <b>pragma
</b> Import (C, Pechochar,
"pechochar");
1540 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1531_16">Pechochar
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1310_7">Pad
</A>,
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_75_4">AttrChar_To_Chtype
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1311_7">Ch
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1541 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1542 <b>end
</b> <b>if
</b>;
1543 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1309_14">Add_Character_To_Pad_And_Echo_It
</A>;
1545 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1540_14" HREF=
"terminal_interface-curses__ads.htm#ref_1314_14">Add_Character_To_Pad_And_Echo_It
</A></FONT>
1546 (
<FONT COLOR=red
><A NAME=
"ref_1541_7" HREF=
"terminal_interface-curses__ads.htm#ref_1315_7">Pad
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1547 <FONT COLOR=red
><A NAME=
"ref_1542_7" HREF=
"terminal_interface-curses__ads.htm#ref_1316_7">Ch
</A></FONT> : Character)
1550 <A HREF=
"terminal_interface-curses__ads.htm#ref_1309_14">Add_Character_To_Pad_And_Echo_It
</A>
1551 (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1315_7">Pad
</A>,
1552 <A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A>'(
<A HREF=
"terminal_interface-curses__ads.htm#ref_358_10">Ch
</A> =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_1316_7">Ch
</A>,
1553 <A HREF=
"terminal_interface-curses__ads.htm#ref_357_10">Color
</A> =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_299_9">Color_Pair
</A>'First,
1554 <A HREF=
"terminal_interface-curses__ads.htm#ref_356_10">Attr
</A> =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_352_4">Normal_Video
</A>));
1555 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1314_14">Add_Character_To_Pad_And_Echo_It
</A>;
1556 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
1557 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1552_14" HREF=
"terminal_interface-curses__ads.htm#ref_1324_14">Scroll
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1552_22" HREF=
"terminal_interface-curses__ads.htm#ref_1324_22">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1558 <FONT COLOR=red
><A NAME=
"ref_1553_22" HREF=
"terminal_interface-curses__ads.htm#ref_1325_22">Amount
</A></FONT> : Integer :=
1)
1560 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1555_16">Wscrl
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1555_23" HREF=
"terminal_interface-curses__adb.htm#ref_1555_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
<FONT COLOR=red
><A NAME=
"ref_1555_37" HREF=
"terminal_interface-curses__adb.htm#ref_1555_16">N
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1561 <b>pragma
</b> Import (C, Wscrl,
"wscrl");
1564 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1555_16">Wscrl
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1324_22">Win
</A>,
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1325_22">Amount
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1565 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1566 <b>end
</b> <b>if
</b>;
1567 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1324_14">Scroll
</A>;
1569 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
1570 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1565_14" HREF=
"terminal_interface-curses__ads.htm#ref_1336_14">Delete_Character
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1565_32" HREF=
"terminal_interface-curses__ads.htm#ref_1336_32">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>)
1572 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1567_16">Wdelch
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1567_24" HREF=
"terminal_interface-curses__adb.htm#ref_1567_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1573 <b>pragma
</b> Import (C, Wdelch,
"wdelch");
1575 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1567_16">Wdelch
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1336_32">Win
</A>) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1576 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1577 <b>end
</b> <b>if
</b>;
1578 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1336_14">Delete_Character
</A>;
1580 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1575_14" HREF=
"terminal_interface-curses__ads.htm#ref_1341_14">Delete_Character
</A></FONT>
1581 (
<FONT COLOR=red
><A NAME=
"ref_1576_7" HREF=
"terminal_interface-curses__ads.htm#ref_1342_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1582 <FONT COLOR=red
><A NAME=
"ref_1577_7" HREF=
"terminal_interface-curses__ads.htm#ref_1343_7">Line
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
1583 <FONT COLOR=red
><A NAME=
"ref_1578_7" HREF=
"terminal_interface-curses__ads.htm#ref_1344_7">Column
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>)
1585 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1580_16">Mvwdelch
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1580_26" HREF=
"terminal_interface-curses__adb.htm#ref_1580_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1586 <FONT COLOR=red
><A NAME=
"ref_1581_26" HREF=
"terminal_interface-curses__adb.htm#ref_1580_16">Lin
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1587 <FONT COLOR=red
><A NAME=
"ref_1582_26" HREF=
"terminal_interface-curses__adb.htm#ref_1580_16">Col
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1588 <b>pragma
</b> Import (C, Mvwdelch,
"mvwdelch");
1590 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1580_16">Mvwdelch
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1342_7">Win
</A>,
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1343_7">Line
</A>),
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1344_7">Column
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1591 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1592 <b>end
</b> <b>if
</b>;
1593 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1341_14">Delete_Character
</A>;
1594 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
1595 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1590_13" HREF=
"terminal_interface-curses__ads.htm#ref_1354_13">Peek
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1590_19" HREF=
"terminal_interface-curses__ads.htm#ref_1354_19">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>)
1596 <b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A>
1598 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1593_16">Winch
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1593_23" HREF=
"terminal_interface-curses__adb.htm#ref_1593_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>;
1599 <b>pragma
</b> Import (C, Winch,
"winch");
1601 <b>return
</b> Chtype_To_AttrChar (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1593_16">Winch
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1354_19">Win
</A>));
1602 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1354_13">Peek
</A>;
1604 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1599_13" HREF=
"terminal_interface-curses__ads.htm#ref_1360_13">Peek
</A></FONT>
1605 (
<FONT COLOR=red
><A NAME=
"ref_1600_7" HREF=
"terminal_interface-curses__ads.htm#ref_1361_7">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1606 <FONT COLOR=red
><A NAME=
"ref_1601_7" HREF=
"terminal_interface-curses__ads.htm#ref_1362_7">Line
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
1607 <FONT COLOR=red
><A NAME=
"ref_1602_7" HREF=
"terminal_interface-curses__ads.htm#ref_1363_7">Column
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A>
1609 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1604_16">Mvwinch
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1604_25" HREF=
"terminal_interface-curses__adb.htm#ref_1604_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1610 <FONT COLOR=red
><A NAME=
"ref_1605_25" HREF=
"terminal_interface-curses__adb.htm#ref_1604_16">Lin
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1611 <FONT COLOR=red
><A NAME=
"ref_1606_25" HREF=
"terminal_interface-curses__adb.htm#ref_1604_16">Col
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>;
1612 <b>pragma
</b> Import (C, Mvwinch,
"mvwinch");
1614 <b>return
</b> Chtype_To_AttrChar (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1604_16">Mvwinch
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1361_7">Win
</A>,
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1362_7">Line
</A>),
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1363_7">Column
</A>)));
1615 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1360_13">Peek
</A>;
1616 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
1617 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1612_14" HREF=
"terminal_interface-curses__ads.htm#ref_1373_14">Insert
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1612_22" HREF=
"terminal_interface-curses__ads.htm#ref_1373_22">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1618 <FONT COLOR=red
><A NAME=
"ref_1613_22" HREF=
"terminal_interface-curses__ads.htm#ref_1374_22">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A>)
1620 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1615_16">Winsch
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1615_24" HREF=
"terminal_interface-curses__adb.htm#ref_1615_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
<FONT COLOR=red
><A NAME=
"ref_1615_38" HREF=
"terminal_interface-curses__adb.htm#ref_1615_16">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1621 <b>pragma
</b> Import (C, Winsch,
"winsch");
1623 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1615_16">Winsch
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1373_22">Win
</A>,
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_75_4">AttrChar_To_Chtype
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1374_22">Ch
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1624 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1625 <b>end
</b> <b>if
</b>;
1626 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1373_14">Insert
</A>;
1628 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1623_14" HREF=
"terminal_interface-curses__ads.htm#ref_1379_14">Insert
</A></FONT>
1629 (
<FONT COLOR=red
><A NAME=
"ref_1624_7" HREF=
"terminal_interface-curses__ads.htm#ref_1379_22">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1630 <FONT COLOR=red
><A NAME=
"ref_1625_7" HREF=
"terminal_interface-curses__ads.htm#ref_1380_22">Line
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
1631 <FONT COLOR=red
><A NAME=
"ref_1626_7" HREF=
"terminal_interface-curses__ads.htm#ref_1381_22">Column
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>;
1632 <FONT COLOR=red
><A NAME=
"ref_1627_7" HREF=
"terminal_interface-curses__ads.htm#ref_1382_22">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A>)
1634 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1629_16">Mvwinsch
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1629_26" HREF=
"terminal_interface-curses__adb.htm#ref_1629_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1635 <FONT COLOR=red
><A NAME=
"ref_1630_26" HREF=
"terminal_interface-curses__adb.htm#ref_1629_16">Lin
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1636 <FONT COLOR=red
><A NAME=
"ref_1631_26" HREF=
"terminal_interface-curses__adb.htm#ref_1629_16">Col
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1637 <FONT COLOR=red
><A NAME=
"ref_1632_26" HREF=
"terminal_interface-curses__adb.htm#ref_1629_16">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1638 <b>pragma
</b> Import (C, Mvwinsch,
"mvwinsch");
1640 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1629_16">Mvwinsch
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1379_22">Win
</A>,
1641 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1380_22">Line
</A>),
1642 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1381_22">Column
</A>),
1643 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_75_4">AttrChar_To_Chtype
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1382_22">Ch
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1644 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1645 <b>end
</b> <b>if
</b>;
1646 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1379_14">Insert
</A>;
1647 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
1648 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1643_14" HREF=
"terminal_interface-curses__ads.htm#ref_1391_14">Insert
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1643_22" HREF=
"terminal_interface-curses__ads.htm#ref_1391_22">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1649 <FONT COLOR=red
><A NAME=
"ref_1644_22" HREF=
"terminal_interface-curses__ads.htm#ref_1392_22">Str
</A></FONT> : String;
1650 <FONT COLOR=red
><A NAME=
"ref_1645_22" HREF=
"terminal_interface-curses__ads.htm#ref_1393_22">Len
</A></FONT> : Integer := -
1)
1652 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1647_16">Winsnstr
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1647_26" HREF=
"terminal_interface-curses__adb.htm#ref_1647_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1653 <FONT COLOR=red
><A NAME=
"ref_1648_26" HREF=
"terminal_interface-curses__adb.htm#ref_1647_16">Str
</A></FONT> : char_array;
1654 <FONT COLOR=red
><A NAME=
"ref_1649_26" HREF=
"terminal_interface-curses__adb.htm#ref_1647_16">Len
</A></FONT> : Integer := -
1)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1655 <b>pragma
</b> Import (C, Winsnstr,
"winsnstr");
1657 <FONT COLOR=red
><A NAME=
"ref_1652_7">Txt
</A></FONT> : char_array (
0 ..
<A HREF=
"terminal_interface-curses__ads.htm#ref_1392_22">Str
</A>'Length);
1658 <FONT COLOR=red
><A NAME=
"ref_1653_7">Length
</A></FONT> : size_t;
1660 To_C (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1392_22">Str
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_1652_7">Txt
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_1653_7">Length
</A>);
1661 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1647_16">Winsnstr
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1391_22">Win
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_1652_7">Txt
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1393_22">Len
</A>) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1662 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1663 <b>end
</b> <b>if
</b>;
1664 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1391_14">Insert
</A>;
1666 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1661_14" HREF=
"terminal_interface-curses__ads.htm#ref_1400_14">Insert
</A></FONT>
1667 (
<FONT COLOR=red
><A NAME=
"ref_1662_7" HREF=
"terminal_interface-curses__ads.htm#ref_1400_22">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1668 <FONT COLOR=red
><A NAME=
"ref_1663_7" HREF=
"terminal_interface-curses__ads.htm#ref_1401_22">Line
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
1669 <FONT COLOR=red
><A NAME=
"ref_1664_7" HREF=
"terminal_interface-curses__ads.htm#ref_1402_22">Column
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>;
1670 <FONT COLOR=red
><A NAME=
"ref_1665_7" HREF=
"terminal_interface-curses__ads.htm#ref_1403_22">Str
</A></FONT> : String;
1671 <FONT COLOR=red
><A NAME=
"ref_1666_7" HREF=
"terminal_interface-curses__ads.htm#ref_1404_22">Len
</A></FONT> : Integer := -
1)
1673 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1668_16">Mvwinsnstr
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1668_28" HREF=
"terminal_interface-curses__adb.htm#ref_1668_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1674 <FONT COLOR=red
><A NAME=
"ref_1669_28" HREF=
"terminal_interface-curses__adb.htm#ref_1668_16">Line
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1675 <FONT COLOR=red
><A NAME=
"ref_1670_28" HREF=
"terminal_interface-curses__adb.htm#ref_1668_16">Column
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1676 <FONT COLOR=red
><A NAME=
"ref_1671_28" HREF=
"terminal_interface-curses__adb.htm#ref_1668_16">Str
</A></FONT> : char_array;
1677 <FONT COLOR=red
><A NAME=
"ref_1672_28" HREF=
"terminal_interface-curses__adb.htm#ref_1668_16">Len
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1678 <b>pragma
</b> Import (C, Mvwinsnstr,
"mvwinsnstr");
1680 <FONT COLOR=red
><A NAME=
"ref_1675_7">Txt
</A></FONT> : char_array (
0 ..
<A HREF=
"terminal_interface-curses__ads.htm#ref_1403_22">Str
</A>'Length);
1681 <FONT COLOR=red
><A NAME=
"ref_1676_7">Length
</A></FONT> : size_t;
1683 To_C (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1403_22">Str
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_1675_7">Txt
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_1676_7">Length
</A>);
1684 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1668_16">Mvwinsnstr
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1400_22">Win
</A>,
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1401_22">Line
</A>),
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1402_22">Column
</A>),
<A HREF=
"terminal_interface-curses__adb.htm#ref_1675_7">Txt
</A>,
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1404_22">Len
</A>))
1685 =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1686 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1687 <b>end
</b> <b>if
</b>;
1688 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1400_14">Insert
</A>;
1689 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
1690 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1685_14" HREF=
"terminal_interface-curses__ads.htm#ref_1416_14">Peek
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1685_20" HREF=
"terminal_interface-curses__ads.htm#ref_1416_20">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1691 <FONT COLOR=red
><A NAME=
"ref_1686_20" HREF=
"terminal_interface-curses__ads.htm#ref_1417_20">Str
</A></FONT> :
<b>out
</b> String;
1692 <FONT COLOR=red
><A NAME=
"ref_1687_20" HREF=
"terminal_interface-curses__ads.htm#ref_1418_20">Len
</A></FONT> : Integer := -
1)
1694 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1689_16">Winnstr
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1689_25" HREF=
"terminal_interface-curses__adb.htm#ref_1689_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1695 <FONT COLOR=red
><A NAME=
"ref_1690_25" HREF=
"terminal_interface-curses__adb.htm#ref_1689_16">Str
</A></FONT> : char_array;
1696 <FONT COLOR=red
><A NAME=
"ref_1691_25" HREF=
"terminal_interface-curses__adb.htm#ref_1689_16">Len
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1697 <b>pragma
</b> Import (C, Winnstr,
"winnstr");
1699 <FONT COLOR=red
><A NAME=
"ref_1694_7">N
</A></FONT> : Integer :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_1418_20">Len
</A>;
1700 <FONT COLOR=red
><A NAME=
"ref_1695_7">Txt
</A></FONT> : char_array (
0 ..
<A HREF=
"terminal_interface-curses__ads.htm#ref_1417_20">Str
</A>'Length);
1701 <FONT COLOR=red
><A NAME=
"ref_1696_7">Cnt
</A></FONT> : Natural;
1703 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1694_7">N
</A> < 0 <b>then
</b>
1704 <A HREF=
"terminal_interface-curses__adb.htm#ref_1694_7">N
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_1417_20">Str
</A>'Length;
1705 <b>end
</b> <b>if
</b>;
1706 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1694_7">N
</A> > <A HREF=
"terminal_interface-curses__ads.htm#ref_1417_20">Str
</A>'Length
<b>then
</b>
1707 <b>raise
</b> Constraint_Error;
1708 <b>end
</b> <b>if
</b>;
1709 <A HREF=
"terminal_interface-curses__adb.htm#ref_1695_7">Txt
</A> (
0) :=
<A HREF=
"interfac__ads.htm#ref_38_9">Interfaces
</A>.C.char'First;
1710 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1689_16">Winnstr
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1416_20">Win
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_1695_7">Txt
</A>,
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1694_7">N
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1711 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1712 <b>end
</b> <b>if
</b>;
1713 To_Ada (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1695_7">Txt
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1417_20">Str
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_1696_7">Cnt
</A>, True);
1714 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1696_7">Cnt
</A> < <A HREF=
"terminal_interface-curses__ads.htm#ref_1417_20">Str
</A>'Length
<b>then
</b>
1715 <A HREF=
"terminal_interface-curses__ads.htm#ref_1417_20">Str
</A> ((
<A HREF=
"terminal_interface-curses__ads.htm#ref_1417_20">Str
</A>'First +
<A HREF=
"terminal_interface-curses__adb.htm#ref_1696_7">Cnt
</A>) ..
<A HREF=
"terminal_interface-curses__ads.htm#ref_1417_20">Str
</A>'Last) := (
<b>others
</b> =
> ' ');
1716 <b>end
</b> <b>if
</b>;
1717 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1416_14">Peek
</A>;
1719 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1714_14" HREF=
"terminal_interface-curses__ads.htm#ref_1425_14">Peek
</A></FONT>
1720 (
<FONT COLOR=red
><A NAME=
"ref_1715_7" HREF=
"terminal_interface-curses__ads.htm#ref_1425_20">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1721 <FONT COLOR=red
><A NAME=
"ref_1716_7" HREF=
"terminal_interface-curses__ads.htm#ref_1426_20">Line
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
1722 <FONT COLOR=red
><A NAME=
"ref_1717_7" HREF=
"terminal_interface-curses__ads.htm#ref_1427_20">Column
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>;
1723 <FONT COLOR=red
><A NAME=
"ref_1718_7" HREF=
"terminal_interface-curses__ads.htm#ref_1428_20">Str
</A></FONT> :
<b>out
</b> String;
1724 <FONT COLOR=red
><A NAME=
"ref_1719_7" HREF=
"terminal_interface-curses__ads.htm#ref_1429_20">Len
</A></FONT> : Integer := -
1)
1727 <A HREF=
"terminal_interface-curses__ads.htm#ref_513_14">Move_Cursor
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1425_20">Win
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1426_20">Line
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1427_20">Column
</A>);
1728 <A HREF=
"terminal_interface-curses__ads.htm#ref_1416_14">Peek
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1425_20">Win
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1428_20">Str
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1429_20">Len
</A>);
1729 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1425_14">Peek
</A>;
1730 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
1731 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1726_14" HREF=
"terminal_interface-curses__ads.htm#ref_1440_14">Peek
</A></FONT>
1732 (
<FONT COLOR=red
><A NAME=
"ref_1727_7" HREF=
"terminal_interface-curses__ads.htm#ref_1440_20">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1733 <FONT COLOR=red
><A NAME=
"ref_1728_7" HREF=
"terminal_interface-curses__ads.htm#ref_1441_20">Str
</A></FONT> :
<b>out
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_373_4">Attributed_String
</A>;
1734 <FONT COLOR=red
><A NAME=
"ref_1729_7" HREF=
"terminal_interface-curses__ads.htm#ref_1442_20">Len
</A></FONT> : Integer := -
1)
1736 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1731_16">Winchnstr
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1731_27" HREF=
"terminal_interface-curses__adb.htm#ref_1731_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1737 <FONT COLOR=red
><A NAME=
"ref_1732_27" HREF=
"terminal_interface-curses__adb.htm#ref_1731_16">Str
</A></FONT> : chtype_array;
<FONT COLOR=green
><EM>-- out
</EM></FONT>
1738 <FONT COLOR=red
><A NAME=
"ref_1733_27" HREF=
"terminal_interface-curses__adb.htm#ref_1731_16">Len
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1739 <b>pragma
</b> Import (C, Winchnstr,
"winchnstr");
1741 <FONT COLOR=red
><A NAME=
"ref_1736_7">N
</A></FONT> : Integer :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_1442_20">Len
</A>;
1742 <FONT COLOR=red
><A NAME=
"ref_1737_7">Txt
</A></FONT> :
<b>constant
</b> chtype_array (
0 ..
<A HREF=
"terminal_interface-curses__ads.htm#ref_1441_20">Str
</A>'Length)
1743 := (
0 =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_373_4">Default_Character
</A>);
1744 <FONT COLOR=red
><A NAME=
"ref_1739_7">Cnt
</A></FONT> : Natural :=
0;
1746 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1736_7">N
</A> < 0 <b>then
</b>
1747 <A HREF=
"terminal_interface-curses__adb.htm#ref_1736_7">N
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_1441_20">Str
</A>'Length;
1748 <b>end
</b> <b>if
</b>;
1749 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1736_7">N
</A> > <A HREF=
"terminal_interface-curses__ads.htm#ref_1441_20">Str
</A>'Length
<b>then
</b>
1750 <b>raise
</b> Constraint_Error;
1751 <b>end
</b> <b>if
</b>;
1752 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1731_16">Winchnstr
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1440_20">Win
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_1737_7">Txt
</A>,
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1736_7">N
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1753 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1754 <b>end
</b> <b>if
</b>;
1755 <b>for
</b> <FONT COLOR=red
><A NAME=
"ref_1750_11">To
</A></FONT> <b>in
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1441_20">Str
</A>'
<b>Range
</b> <b>loop
</b>
1756 <b>exit
</b> <b>when
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1737_7">Txt
</A> (size_t (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1739_7">Cnt
</A>)) =
<A HREF=
"terminal_interface-curses__ads.htm#ref_373_4">Default_Character
</A>;
1757 <A HREF=
"terminal_interface-curses__ads.htm#ref_1441_20">Str
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1750_11">To
</A>) :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_1737_7">Txt
</A> (size_t (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1739_7">Cnt
</A>));
1758 <A HREF=
"terminal_interface-curses__adb.htm#ref_1739_7">Cnt
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_1739_7">Cnt
</A> +
1;
1759 <b>end
</b> <b>loop
</b>;
1760 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1739_7">Cnt
</A> < <A HREF=
"terminal_interface-curses__ads.htm#ref_1441_20">Str
</A>'Length
<b>then
</b>
1761 <A HREF=
"terminal_interface-curses__ads.htm#ref_1441_20">Str
</A> ((
<A HREF=
"terminal_interface-curses__ads.htm#ref_1441_20">Str
</A>'First +
<A HREF=
"terminal_interface-curses__adb.htm#ref_1739_7">Cnt
</A>) ..
<A HREF=
"terminal_interface-curses__ads.htm#ref_1441_20">Str
</A>'Last) :=
1762 (
<b>others
</b> =
> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_358_10">Ch
</A> =
> ' ',
1763 <A HREF=
"terminal_interface-curses__ads.htm#ref_357_10">Color
</A> =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_299_9">Color_Pair
</A>'First,
1764 <A HREF=
"terminal_interface-curses__ads.htm#ref_356_10">Attr
</A> =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_352_4">Normal_Video
</A>));
1765 <b>end
</b> <b>if
</b>;
1766 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1440_14">Peek
</A>;
1768 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1763_14" HREF=
"terminal_interface-curses__ads.htm#ref_1449_14">Peek
</A></FONT>
1769 (
<FONT COLOR=red
><A NAME=
"ref_1764_7" HREF=
"terminal_interface-curses__ads.htm#ref_1449_20">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1770 <FONT COLOR=red
><A NAME=
"ref_1765_7" HREF=
"terminal_interface-curses__ads.htm#ref_1450_20">Line
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
1771 <FONT COLOR=red
><A NAME=
"ref_1766_7" HREF=
"terminal_interface-curses__ads.htm#ref_1451_20">Column
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>;
1772 <FONT COLOR=red
><A NAME=
"ref_1767_7" HREF=
"terminal_interface-curses__ads.htm#ref_1452_20">Str
</A></FONT> :
<b>out
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_373_4">Attributed_String
</A>;
1773 <FONT COLOR=red
><A NAME=
"ref_1768_7" HREF=
"terminal_interface-curses__ads.htm#ref_1453_20">Len
</A></FONT> : Integer := -
1)
1776 <A HREF=
"terminal_interface-curses__ads.htm#ref_513_14">Move_Cursor
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1449_20">Win
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1450_20">Line
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1451_20">Column
</A>);
1777 <A HREF=
"terminal_interface-curses__ads.htm#ref_1440_14">Peek
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1449_20">Win
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1452_20">Str
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1453_20">Len
</A>);
1778 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1449_14">Peek
</A>;
1779 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
1780 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1775_14" HREF=
"terminal_interface-curses__ads.htm#ref_1465_14">Get
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1775_19" HREF=
"terminal_interface-curses__ads.htm#ref_1465_19">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1781 <FONT COLOR=red
><A NAME=
"ref_1776_19" HREF=
"terminal_interface-curses__ads.htm#ref_1466_19">Str
</A></FONT> :
<b>out
</b> String;
1782 <FONT COLOR=red
><A NAME=
"ref_1777_19" HREF=
"terminal_interface-curses__ads.htm#ref_1467_19">Len
</A></FONT> : Integer := -
1)
1784 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1779_16">Wgetnstr
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1779_26" HREF=
"terminal_interface-curses__adb.htm#ref_1779_16">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
1785 <FONT COLOR=red
><A NAME=
"ref_1780_26" HREF=
"terminal_interface-curses__adb.htm#ref_1779_16">Str
</A></FONT> : char_array;
1786 <FONT COLOR=red
><A NAME=
"ref_1781_26" HREF=
"terminal_interface-curses__adb.htm#ref_1779_16">Len
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1787 <b>pragma
</b> Import (C, Wgetnstr,
"wgetnstr");
1789 <FONT COLOR=red
><A NAME=
"ref_1784_7">N
</A></FONT> : Integer :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_1467_19">Len
</A>;
1790 <FONT COLOR=red
><A NAME=
"ref_1785_7">Txt
</A></FONT> : char_array (
0 ..
<A HREF=
"terminal_interface-curses__ads.htm#ref_1466_19">Str
</A>'Length);
1791 <FONT COLOR=red
><A NAME=
"ref_1786_7">Cnt
</A></FONT> : Natural;
1793 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1784_7">N
</A> < 0 <b>then
</b>
1794 <A HREF=
"terminal_interface-curses__adb.htm#ref_1784_7">N
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_1466_19">Str
</A>'Length;
1795 <b>end
</b> <b>if
</b>;
1796 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1784_7">N
</A> > <A HREF=
"terminal_interface-curses__ads.htm#ref_1466_19">Str
</A>'Length
<b>then
</b>
1797 <b>raise
</b> Constraint_Error;
1798 <b>end
</b> <b>if
</b>;
1799 <A HREF=
"terminal_interface-curses__adb.htm#ref_1785_7">Txt
</A> (
0) :=
<A HREF=
"interfac__ads.htm#ref_38_9">Interfaces
</A>.C.char'First;
1800 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1779_16">Wgetnstr
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1465_19">Win
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_1785_7">Txt
</A>,
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1784_7">N
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1801 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1802 <b>end
</b> <b>if
</b>;
1803 To_Ada (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1785_7">Txt
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1466_19">Str
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_1786_7">Cnt
</A>, True);
1804 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1786_7">Cnt
</A> < <A HREF=
"terminal_interface-curses__ads.htm#ref_1466_19">Str
</A>'Length
<b>then
</b>
1805 <A HREF=
"terminal_interface-curses__ads.htm#ref_1466_19">Str
</A> ((
<A HREF=
"terminal_interface-curses__ads.htm#ref_1466_19">Str
</A>'First +
<A HREF=
"terminal_interface-curses__adb.htm#ref_1786_7">Cnt
</A>) ..
<A HREF=
"terminal_interface-curses__ads.htm#ref_1466_19">Str
</A>'Last) := (
<b>others
</b> =
> ' ');
1806 <b>end
</b> <b>if
</b>;
1807 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1465_14">Get
</A>;
1809 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1804_14" HREF=
"terminal_interface-curses__ads.htm#ref_1476_14">Get
</A></FONT>
1810 (
<FONT COLOR=red
><A NAME=
"ref_1805_7" HREF=
"terminal_interface-curses__ads.htm#ref_1476_19">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
1811 <FONT COLOR=red
><A NAME=
"ref_1806_7" HREF=
"terminal_interface-curses__ads.htm#ref_1477_19">Line
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
1812 <FONT COLOR=red
><A NAME=
"ref_1807_7" HREF=
"terminal_interface-curses__ads.htm#ref_1478_19">Column
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>;
1813 <FONT COLOR=red
><A NAME=
"ref_1808_7" HREF=
"terminal_interface-curses__ads.htm#ref_1479_19">Str
</A></FONT> :
<b>out
</b> String;
1814 <FONT COLOR=red
><A NAME=
"ref_1809_7" HREF=
"terminal_interface-curses__ads.htm#ref_1480_19">Len
</A></FONT> : Integer := -
1)
1817 <A HREF=
"terminal_interface-curses__ads.htm#ref_513_14">Move_Cursor
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1476_19">Win
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1477_19">Line
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1478_19">Column
</A>);
1818 <A HREF=
"terminal_interface-curses__ads.htm#ref_1465_14">Get
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1476_19">Win
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1479_19">Str
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1480_19">Len
</A>);
1819 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1476_14">Get
</A>;
1820 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
1821 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1816_14" HREF=
"terminal_interface-curses__ads.htm#ref_1501_14">Init_Soft_Label_Keys
</A></FONT>
1822 (
<FONT COLOR=red
><A NAME=
"ref_1817_7" HREF=
"terminal_interface-curses__ads.htm#ref_1502_7">Format
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_1493_9">Soft_Label_Key_Format
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_1493_35">Three_Two_Three
</A>)
1824 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1819_16">Slk_Init
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1819_26" HREF=
"terminal_interface-curses__adb.htm#ref_1819_16">Fmt
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1825 <b>pragma
</b> Import (C, Slk_Init,
"slk_init");
1827 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1819_16">Slk_Init
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1493_9">Soft_Label_Key_Format
</A>'Pos (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1502_7">Format
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1828 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1829 <b>end
</b> <b>if
</b>;
1830 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1501_14">Init_Soft_Label_Keys
</A>;
1832 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1827_14" HREF=
"terminal_interface-curses__ads.htm#ref_1507_14">Set_Soft_Label_Key
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1827_34" HREF=
"terminal_interface-curses__ads.htm#ref_1507_34">Label
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_1497_9">Label_Number
</A>;
1833 <FONT COLOR=red
><A NAME=
"ref_1828_34" HREF=
"terminal_interface-curses__ads.htm#ref_1508_34">Text
</A></FONT> : String;
1834 <FONT COLOR=red
><A NAME=
"ref_1829_34" HREF=
"terminal_interface-curses__ads.htm#ref_1509_34">Fmt
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_1498_9">Label_Justification
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_1498_33">Left
</A>)
1836 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1831_16">Slk_Set
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1831_25" HREF=
"terminal_interface-curses__adb.htm#ref_1831_16">Label
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1837 <FONT COLOR=red
><A NAME=
"ref_1832_25" HREF=
"terminal_interface-curses__adb.htm#ref_1831_16">Txt
</A></FONT> : char_array;
1838 <FONT COLOR=red
><A NAME=
"ref_1833_25" HREF=
"terminal_interface-curses__adb.htm#ref_1831_16">Fmt
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1839 <b>pragma
</b> Import (C, Slk_Set,
"slk_set");
1841 <FONT COLOR=red
><A NAME=
"ref_1836_7">Txt
</A></FONT> : char_array (
0 ..
<A HREF=
"terminal_interface-curses__ads.htm#ref_1508_34">Text
</A>'Length);
1842 <FONT COLOR=red
><A NAME=
"ref_1837_7">Len
</A></FONT> : size_t;
1844 To_C (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1508_34">Text
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_1836_7">Txt
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_1837_7">Len
</A>);
1845 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1831_16">Slk_Set
</A> (
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1507_34">Label
</A>),
<A HREF=
"terminal_interface-curses__adb.htm#ref_1836_7">Txt
</A>,
1846 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1498_9">Label_Justification
</A>'Pos (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1509_34">Fmt
</A>))) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1847 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1848 <b>end
</b> <b>if
</b>;
1849 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1507_14">Set_Soft_Label_Key
</A>;
1851 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1846_14" HREF=
"terminal_interface-curses__ads.htm#ref_1514_14">Refresh_Soft_Label_Keys
</A></FONT>
1853 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1848_16">Slk_Refresh
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1854 <b>pragma
</b> Import (C, Slk_Refresh,
"slk_refresh");
1856 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1848_16">Slk_Refresh
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1857 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1858 <b>end
</b> <b>if
</b>;
1859 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1514_14">Refresh_Soft_Label_Keys
</A>;
1861 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1856_14" HREF=
"terminal_interface-curses__ads.htm#ref_1519_14">Refresh_Soft_Label_Keys_Without_Update
</A></FONT>
1863 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1858_16">Slk_Noutrefresh
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1864 <b>pragma
</b> Import (C, Slk_Noutrefresh,
"slk_noutrefresh");
1866 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1858_16">Slk_Noutrefresh
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1867 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1868 <b>end
</b> <b>if
</b>;
1869 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1519_14">Refresh_Soft_Label_Keys_Without_Update
</A>;
1871 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1866_14" HREF=
"terminal_interface-curses__ads.htm#ref_1524_14">Get_Soft_Label_Key
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1866_34" HREF=
"terminal_interface-curses__ads.htm#ref_1524_34">Label
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_1497_9">Label_Number
</A>;
1872 <FONT COLOR=red
><A NAME=
"ref_1867_34" HREF=
"terminal_interface-curses__ads.htm#ref_1525_34">Text
</A></FONT> :
<b>out
</b> String)
1874 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1869_16">Slk_Label
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1869_27" HREF=
"terminal_interface-curses__adb.htm#ref_1869_16">Label
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> chars_ptr;
1875 <b>pragma
</b> Import (C, Slk_Label,
"slk_label");
1877 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_116_14">Fill_String
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1869_16">Slk_Label
</A> (
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1524_34">Label
</A>)),
<A HREF=
"terminal_interface-curses__ads.htm#ref_1525_34">Text
</A>);
1878 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1524_14">Get_Soft_Label_Key
</A>;
1880 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1875_13" HREF=
"terminal_interface-curses__ads.htm#ref_1529_13">Get_Soft_Label_Key
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1875_33" HREF=
"terminal_interface-curses__ads.htm#ref_1529_33">Label
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_1497_9">Label_Number
</A>)
<b>return
</b> String
1882 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1877_16">Slk_Label
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1877_27" HREF=
"terminal_interface-curses__adb.htm#ref_1877_16">Label
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> chars_ptr;
1883 <b>pragma
</b> Import (C, Slk_Label,
"slk_label");
1885 <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_121_13">Fill_String
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1877_16">Slk_Label
</A> (
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1529_33">Label
</A>)));
1886 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1529_13">Get_Soft_Label_Key
</A>;
1888 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1883_14" HREF=
"terminal_interface-curses__ads.htm#ref_1535_14">Clear_Soft_Label_Keys
</A></FONT>
1890 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1885_16">Slk_Clear
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1891 <b>pragma
</b> Import (C, Slk_Clear,
"slk_clear");
1893 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1885_16">Slk_Clear
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1894 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1895 <b>end
</b> <b>if
</b>;
1896 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1535_14">Clear_Soft_Label_Keys
</A>;
1898 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1893_14" HREF=
"terminal_interface-curses__ads.htm#ref_1540_14">Restore_Soft_Label_Keys
</A></FONT>
1900 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1895_16">Slk_Restore
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1901 <b>pragma
</b> Import (C, Slk_Restore,
"slk_restore");
1903 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1895_16">Slk_Restore
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1904 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1905 <b>end
</b> <b>if
</b>;
1906 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1540_14">Restore_Soft_Label_Keys
</A>;
1908 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1903_14" HREF=
"terminal_interface-curses__ads.htm#ref_1545_14">Touch_Soft_Label_Keys
</A></FONT>
1910 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1905_16">Slk_Touch
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1911 <b>pragma
</b> Import (C, Slk_Touch,
"slk_touch");
1913 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1905_16">Slk_Touch
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1914 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1915 <b>end
</b> <b>if
</b>;
1916 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1545_14">Touch_Soft_Label_Keys
</A>;
1918 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1913_14" HREF=
"terminal_interface-curses__ads.htm#ref_1550_14">Switch_Soft_Label_Key_Attributes
</A></FONT>
1919 (
<FONT COLOR=red
><A NAME=
"ref_1914_7" HREF=
"terminal_interface-curses__ads.htm#ref_1551_7">Attr
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_307_9">Character_Attribute_Set
</A>;
1920 <FONT COLOR=red
><A NAME=
"ref_1915_7" HREF=
"terminal_interface-curses__ads.htm#ref_1552_7">On
</A></FONT> : Boolean := True)
1922 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1917_16">Slk_Attron
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1917_28" HREF=
"terminal_interface-curses__adb.htm#ref_1917_16">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1923 <b>pragma
</b> Import (C, Slk_Attron,
"slk_attron");
1924 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1919_16">Slk_Attroff
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1919_29" HREF=
"terminal_interface-curses__adb.htm#ref_1919_16">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1925 <b>pragma
</b> Import (C, Slk_Attroff,
"slk_attroff");
1927 <FONT COLOR=red
><A NAME=
"ref_1922_7">Err
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1928 <FONT COLOR=red
><A NAME=
"ref_1923_7">Ch
</A></FONT> :
<b>constant
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A> := (
<A HREF=
"terminal_interface-curses__ads.htm#ref_358_10">Ch
</A> =
> Character'First,
1929 <A HREF=
"terminal_interface-curses__ads.htm#ref_356_10">Attr
</A> =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_1551_7">Attr
</A>,
1930 <A HREF=
"terminal_interface-curses__ads.htm#ref_357_10">Color
</A> =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_299_9">Color_Pair
</A>'First);
1932 <b>if
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1552_7">On
</A> <b>then
</b>
1933 <A HREF=
"terminal_interface-curses__adb.htm#ref_1922_7">Err
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_1917_16">Slk_Attron
</A> (
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_75_4">AttrChar_To_Chtype
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1923_7">Ch
</A>));
1935 <A HREF=
"terminal_interface-curses__adb.htm#ref_1922_7">Err
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_1919_16">Slk_Attroff
</A> (
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_75_4">AttrChar_To_Chtype
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1923_7">Ch
</A>));
1936 <b>end
</b> <b>if
</b>;
1937 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1922_7">Err
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1938 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1939 <b>end
</b> <b>if
</b>;
1940 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1550_14">Switch_Soft_Label_Key_Attributes
</A>;
1942 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1937_14" HREF=
"terminal_interface-curses__ads.htm#ref_1558_14">Set_Soft_Label_Key_Attributes
</A></FONT>
1943 (
<FONT COLOR=red
><A NAME=
"ref_1938_7" HREF=
"terminal_interface-curses__ads.htm#ref_1559_7">Attr
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_307_9">Character_Attribute_Set
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_352_4">Normal_Video
</A>;
1944 <FONT COLOR=red
><A NAME=
"ref_1939_7" HREF=
"terminal_interface-curses__ads.htm#ref_1560_7">Color
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_299_9">Color_Pair
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_299_9">Color_Pair
</A>'First)
1946 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1941_16">Slk_Attrset
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1941_29" HREF=
"terminal_interface-curses__adb.htm#ref_1941_16">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1947 <b>pragma
</b> Import (C, Slk_Attrset,
"slk_attrset");
1949 <FONT COLOR=red
><A NAME=
"ref_1944_7">Ch
</A></FONT> :
<b>constant
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A> := (
<A HREF=
"terminal_interface-curses__ads.htm#ref_358_10">Ch
</A> =
> Character'First,
1950 <A HREF=
"terminal_interface-curses__ads.htm#ref_356_10">Attr
</A> =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_1559_7">Attr
</A>,
1951 <A HREF=
"terminal_interface-curses__ads.htm#ref_357_10">Color
</A> =
> <A HREF=
"terminal_interface-curses__ads.htm#ref_1560_7">Color
</A>);
1953 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1941_16">Slk_Attrset
</A> (
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_75_4">AttrChar_To_Chtype
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1944_7">Ch
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1954 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1955 <b>end
</b> <b>if
</b>;
1956 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1558_14">Set_Soft_Label_Key_Attributes
</A>;
1958 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1953_13" HREF=
"terminal_interface-curses__ads.htm#ref_1565_13">Get_Soft_Label_Key_Attributes
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_307_9">Character_Attribute_Set
</A>
1960 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1955_16">Slk_Attr
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>;
1961 <b>pragma
</b> Import (C, Slk_Attr,
"slk_attr");
1963 <FONT COLOR=red
><A NAME=
"ref_1958_7">Attr
</A></FONT> :
<b>constant
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_1955_16">Slk_Attr
</A>;
1965 <b>return
</b> Chtype_To_AttrChar (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1958_7">Attr
</A>).
<A HREF=
"terminal_interface-curses__ads.htm#ref_356_10">Attr
</A>;
1966 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1565_13">Get_Soft_Label_Key_Attributes
</A>;
1968 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1963_13" HREF=
"terminal_interface-curses__ads.htm#ref_1569_13">Get_Soft_Label_Key_Attributes
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_299_9">Color_Pair
</A>
1970 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1965_16">Slk_Attr
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>;
1971 <b>pragma
</b> Import (C, Slk_Attr,
"slk_attr");
1973 <FONT COLOR=red
><A NAME=
"ref_1968_7">Attr
</A></FONT> :
<b>constant
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_1965_16">Slk_Attr
</A>;
1975 <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_75_4">Chtype_To_AttrChar
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_1968_7">Attr
</A>).
<A HREF=
"terminal_interface-curses__ads.htm#ref_357_10">Color
</A>;
1976 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1569_13">Get_Soft_Label_Key_Attributes
</A>;
1978 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1973_14" HREF=
"terminal_interface-curses__ads.htm#ref_1574_14">Set_Soft_Label_Key_Color
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1973_40" HREF=
"terminal_interface-curses__ads.htm#ref_1574_40">Pair
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_299_9">Color_Pair
</A>)
1980 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1975_16">Slk_Color
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1975_27" HREF=
"terminal_interface-curses__adb.htm#ref_1975_16">Color
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1981 <b>pragma
</b> Import (C, Slk_Color,
"slk_color");
1983 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1975_16">Slk_Color
</A> (
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1574_40">Pair
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1984 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1985 <b>end
</b> <b>if
</b>;
1986 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1574_14">Set_Soft_Label_Key_Color
</A>;
1988 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
1989 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1984_14" HREF=
"terminal_interface-curses__ads.htm#ref_1588_14">Enable_Key
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1984_26" HREF=
"terminal_interface-curses__ads.htm#ref_1588_26">Key
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_78_12">Special_Key_Code
</A>;
1990 <FONT COLOR=red
><A NAME=
"ref_1985_26" HREF=
"terminal_interface-curses__ads.htm#ref_1589_26">Enable
</A></FONT> : Boolean := True)
1992 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_1987_16">Keyok
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1987_23" HREF=
"terminal_interface-curses__adb.htm#ref_1987_16">Keycode
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1993 <FONT COLOR=red
><A NAME=
"ref_1988_23" HREF=
"terminal_interface-curses__adb.htm#ref_1987_16">On_Off
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
1994 <b>pragma
</b> Import (C, Keyok,
"keyok");
1996 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_1987_16">Keyok
</A> (
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1588_26">Key
</A>),
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A> (Boolean'Pos (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1589_26">Enable
</A>)))
1997 =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
1998 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
1999 <b>end
</b> <b>if
</b>;
2000 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1588_14">Enable_Key
</A>;
2001 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
2002 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_1997_14" HREF=
"terminal_interface-curses__ads.htm#ref_1598_14">Define_Key
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_1997_26" HREF=
"terminal_interface-curses__ads.htm#ref_1598_26">Definition
</A></FONT> : String;
2003 <FONT COLOR=red
><A NAME=
"ref_1998_26" HREF=
"terminal_interface-curses__ads.htm#ref_1599_26">Key
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_78_12">Special_Key_Code
</A>)
2005 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2000_16">Defkey
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2000_24" HREF=
"terminal_interface-curses__adb.htm#ref_2000_16">Def
</A></FONT> : char_array;
2006 <FONT COLOR=red
><A NAME=
"ref_2001_24" HREF=
"terminal_interface-curses__adb.htm#ref_2000_16">Key
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2007 <b>pragma
</b> Import (C, Defkey,
"define_key");
2009 <FONT COLOR=red
><A NAME=
"ref_2004_7">Txt
</A></FONT> : char_array (
0 ..
<A HREF=
"terminal_interface-curses__ads.htm#ref_1598_26">Definition
</A>'Length);
2010 <FONT COLOR=red
><A NAME=
"ref_2005_7">Length
</A></FONT> : size_t;
2012 To_C (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1598_26">Definition
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_2004_7">Txt
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_2005_7">Length
</A>);
2013 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_2000_16">Defkey
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2004_7">Txt
</A>,
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1599_26">Key
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
2014 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
2015 <b>end
</b> <b>if
</b>;
2016 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1598_14">Define_Key
</A>;
2017 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
2018 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_2013_14" HREF=
"terminal_interface-curses__ads.htm#ref_1624_14">Un_Control
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2013_26" HREF=
"terminal_interface-curses__ads.htm#ref_1624_26">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A>;
2019 <FONT COLOR=red
><A NAME=
"ref_2014_26" HREF=
"terminal_interface-curses__ads.htm#ref_1625_26">Str
</A></FONT> :
<b>out
</b> String)
2021 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2016_16">Unctrl
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2016_24" HREF=
"terminal_interface-curses__adb.htm#ref_2016_16">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>)
<b>return
</b> chars_ptr;
2022 <b>pragma
</b> Import (C, Unctrl,
"unctrl");
2024 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_116_14">Fill_String
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2016_16">Unctrl
</A> (
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_75_4">AttrChar_To_Chtype
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1624_26">Ch
</A>)),
<A HREF=
"terminal_interface-curses__ads.htm#ref_1625_26">Str
</A>);
2025 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1624_14">Un_Control
</A>;
2027 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2022_13" HREF=
"terminal_interface-curses__ads.htm#ref_1629_13">Un_Control
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2022_25" HREF=
"terminal_interface-curses__ads.htm#ref_1629_25">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A>)
<b>return
</b> String
2029 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2024_16">Unctrl
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2024_24" HREF=
"terminal_interface-curses__adb.htm#ref_2024_16">Ch
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>)
<b>return
</b> chars_ptr;
2030 <b>pragma
</b> Import (C, Unctrl,
"unctrl");
2032 <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_121_13">Fill_String
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2024_16">Unctrl
</A> (
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_75_4">AttrChar_To_Chtype
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1629_25">Ch
</A>)));
2033 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1629_13">Un_Control
</A>;
2035 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_2030_14" HREF=
"terminal_interface-curses__ads.htm#ref_1635_14">Delay_Output
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2030_28" HREF=
"terminal_interface-curses__ads.htm#ref_1635_28">Msecs
</A></FONT> : Natural)
2037 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2032_16">Delayoutput
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2032_29" HREF=
"terminal_interface-curses__adb.htm#ref_2032_16">Msecs
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2038 <b>pragma
</b> Import (C, Delayoutput,
"delay_output");
2040 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_2032_16">Delayoutput
</A> (
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1635_28">Msecs
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
2041 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
2042 <b>end
</b> <b>if
</b>;
2043 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1635_14">Delay_Output
</A>;
2045 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_2040_14" HREF=
"terminal_interface-curses__ads.htm#ref_1640_14">Flush_Input
</A></FONT>
2047 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2042_16">Flushinp
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2048 <b>pragma
</b> Import (C, Flushinp,
"flushinp");
2050 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_2042_16">Flushinp
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b> <FONT COLOR=green
><EM>-- docu says that never happens, but...
</EM></FONT>
2051 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
2052 <b>end
</b> <b>if
</b>;
2053 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1640_14">Flush_Input
</A>;
2054 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
2055 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2050_13" HREF=
"terminal_interface-curses__ads.htm#ref_1649_13">Baudrate
</A></FONT> <b>return
</b> Natural
2057 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2052_16">Baud
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2058 <b>pragma
</b> Import (C, Baud,
"baudrate");
2060 <b>return
</b> Natural (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2052_16">Baud
</A>);
2061 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1649_13">Baudrate
</A>;
2063 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2058_13" HREF=
"terminal_interface-curses__ads.htm#ref_1654_13">Erase_Character
</A></FONT> <b>return
</b> Character
2065 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2060_16">Erasechar
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2066 <b>pragma
</b> Import (C, Erasechar,
"erasechar");
2068 <b>return
</b> Character'Val (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2060_16">Erasechar
</A>);
2069 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1654_13">Erase_Character
</A>;
2071 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2066_13" HREF=
"terminal_interface-curses__ads.htm#ref_1659_13">Kill_Character
</A></FONT> <b>return
</b> Character
2073 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2068_16">Killchar
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2074 <b>pragma
</b> Import (C, Killchar,
"killchar");
2076 <b>return
</b> Character'Val (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2068_16">Killchar
</A>);
2077 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1659_13">Kill_Character
</A>;
2079 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2074_13" HREF=
"terminal_interface-curses__ads.htm#ref_1664_13">Has_Insert_Character
</A></FONT> <b>return
</b> Boolean
2081 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2076_16">Has_Ic
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A>;
2082 <b>pragma
</b> Import (C, Has_Ic,
"has_ic");
2084 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_2076_16">Has_Ic
</A> =
<A HREF=
"terminal_interface-curses__ads.htm#ref_1927_4">Curses_Bool_False
</A> <b>then
</b>
2085 <b>return
</b> False;
2088 <b>end
</b> <b>if
</b>;
2089 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1664_13">Has_Insert_Character
</A>;
2091 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2086_13" HREF=
"terminal_interface-curses__ads.htm#ref_1669_13">Has_Insert_Line
</A></FONT> <b>return
</b> Boolean
2093 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2088_16">Has_Il
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A>;
2094 <b>pragma
</b> Import (C, Has_Il,
"has_il");
2096 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_2088_16">Has_Il
</A> =
<A HREF=
"terminal_interface-curses__ads.htm#ref_1927_4">Curses_Bool_False
</A> <b>then
</b>
2097 <b>return
</b> False;
2100 <b>end
</b> <b>if
</b>;
2101 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1669_13">Has_Insert_Line
</A>;
2103 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2098_13" HREF=
"terminal_interface-curses__ads.htm#ref_1674_13">Supported_Attributes
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_307_9">Character_Attribute_Set
</A>
2105 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2100_16">Termattrs
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_63_12">C_Chtype
</A>;
2106 <b>pragma
</b> Import (C, Termattrs,
"termattrs");
2108 <FONT COLOR=red
><A NAME=
"ref_2103_7">Ch
</A></FONT> :
<b>constant
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_354_9">Attributed_Character
</A> :=
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_75_4">Chtype_To_AttrChar
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2100_16">Termattrs
</A>);
2110 <b>return
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_2103_7">Ch
</A>.
<A HREF=
"terminal_interface-curses__ads.htm#ref_356_10">Attr
</A>;
2111 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1674_13">Supported_Attributes
</A>;
2113 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_2108_14" HREF=
"terminal_interface-curses__ads.htm#ref_1679_14">Long_Name
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2108_25" HREF=
"terminal_interface-curses__ads.htm#ref_1679_25">Name
</A></FONT> :
<b>out
</b> String)
2115 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2110_16">Longname
</A></FONT> <b>return
</b> chars_ptr;
2116 <b>pragma
</b> Import (C, Longname,
"longname");
2118 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_116_14">Fill_String
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2110_16">Longname
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1679_25">Name
</A>);
2119 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1679_14">Long_Name
</A>;
2121 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2116_13" HREF=
"terminal_interface-curses__ads.htm#ref_1683_13">Long_Name
</A></FONT> <b>return
</b> String
2123 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2118_16">Longname
</A></FONT> <b>return
</b> chars_ptr;
2124 <b>pragma
</b> Import (C, Longname,
"longname");
2126 <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_121_13">Fill_String
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2118_16">Longname
</A>);
2127 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1683_13">Long_Name
</A>;
2129 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_2124_14" HREF=
"terminal_interface-curses__ads.htm#ref_1689_14">Terminal_Name
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2124_29" HREF=
"terminal_interface-curses__ads.htm#ref_1689_29">Name
</A></FONT> :
<b>out
</b> String)
2131 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2126_16">Termname
</A></FONT> <b>return
</b> chars_ptr;
2132 <b>pragma
</b> Import (C, Termname,
"termname");
2134 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_116_14">Fill_String
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2126_16">Termname
</A>,
<A HREF=
"terminal_interface-curses__ads.htm#ref_1689_29">Name
</A>);
2135 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1689_14">Terminal_Name
</A>;
2137 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2132_13" HREF=
"terminal_interface-curses__ads.htm#ref_1693_13">Terminal_Name
</A></FONT> <b>return
</b> String
2139 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2134_16">Termname
</A></FONT> <b>return
</b> chars_ptr;
2140 <b>pragma
</b> Import (C, Termname,
"termname");
2142 <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_121_13">Fill_String
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2134_16">Termname
</A>);
2143 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1693_13">Terminal_Name
</A>;
2144 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
2145 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_2140_14" HREF=
"terminal_interface-curses__ads.htm#ref_1714_14">Init_Pair
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2140_25" HREF=
"terminal_interface-curses__ads.htm#ref_1714_25">Pair
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_301_12">Redefinable_Color_Pair
</A>;
2146 <FONT COLOR=red
><A NAME=
"ref_2141_25" HREF=
"terminal_interface-curses__ads.htm#ref_1715_25">Fore
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_278_9">Color_Number
</A>;
2147 <FONT COLOR=red
><A NAME=
"ref_2142_25" HREF=
"terminal_interface-curses__ads.htm#ref_1716_25">Back
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_278_9">Color_Number
</A>)
2149 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2144_16">Initpair
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2144_26" HREF=
"terminal_interface-curses__adb.htm#ref_2144_16">Pair
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A>;
2150 <FONT COLOR=red
><A NAME=
"ref_2145_26" HREF=
"terminal_interface-curses__adb.htm#ref_2144_16">Fore
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A>;
2151 <FONT COLOR=red
><A NAME=
"ref_2146_26" HREF=
"terminal_interface-curses__adb.htm#ref_2144_16">Back
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2152 <b>pragma
</b> Import (C, Initpair,
"init_pair");
2154 <b>if
</b> Integer (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1714_25">Pair
</A>)
>=
<A HREF=
"terminal_interface-curses__ads.htm#ref_426_13">Number_Of_Color_Pairs
</A> <b>then
</b>
2155 <b>raise
</b> Constraint_Error;
2156 <b>end
</b> <b>if
</b>;
2157 <b>if
</b> Integer (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1715_25">Fore
</A>)
>=
<A HREF=
"terminal_interface-curses__ads.htm#ref_423_13">Number_Of_Colors
</A> <b>or
</b> <b>else
</b>
2158 Integer (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1716_25">Back
</A>)
>=
<A HREF=
"terminal_interface-curses__ads.htm#ref_423_13">Number_Of_Colors
</A> <b>then
</b>
2159 <b>raise
</b> Constraint_Error;
2160 <b>end
</b> <b>if
</b>;
2161 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_2144_16">Initpair
</A> (
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1714_25">Pair
</A>),
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1715_25">Fore
</A>),
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1716_25">Back
</A>))
2162 =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
2163 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
2164 <b>end
</b> <b>if
</b>;
2165 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1714_14">Init_Pair
</A>;
2167 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_2162_14" HREF=
"terminal_interface-curses__ads.htm#ref_1721_14">Pair_Content
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2162_28" HREF=
"terminal_interface-curses__ads.htm#ref_1721_28">Pair
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_299_9">Color_Pair
</A>;
2168 <FONT COLOR=red
><A NAME=
"ref_2163_28" HREF=
"terminal_interface-curses__ads.htm#ref_1722_28">Fore
</A></FONT> :
<b>out
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_278_9">Color_Number
</A>;
2169 <FONT COLOR=red
><A NAME=
"ref_2164_28" HREF=
"terminal_interface-curses__ads.htm#ref_1723_28">Back
</A></FONT> :
<b>out
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_278_9">Color_Number
</A>)
2171 <b>type
</b> <FONT COLOR=red
><A NAME=
"ref_2166_12">C_Short_Access
</A></FONT> <b>is
</b> <b>access
</b> <b>all
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A>;
2172 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2167_16">Paircontent
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2167_29" HREF=
"terminal_interface-curses__adb.htm#ref_2167_16">Pair
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A>;
2173 <FONT COLOR=red
><A NAME=
"ref_2168_29" HREF=
"terminal_interface-curses__adb.htm#ref_2167_16">Fp
</A></FONT> :
<A HREF=
"terminal_interface-curses__adb.htm#ref_2166_12">C_Short_Access
</A>;
2174 <FONT COLOR=red
><A NAME=
"ref_2169_29" HREF=
"terminal_interface-curses__adb.htm#ref_2167_16">Bp
</A></FONT> :
<A HREF=
"terminal_interface-curses__adb.htm#ref_2166_12">C_Short_Access
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2175 <b>pragma
</b> Import (C, Paircontent,
"pair_content");
2177 <FONT COLOR=red
><A NAME=
"ref_2172_7">F
</A></FONT>,
<FONT COLOR=red
><A NAME=
"ref_2172_10">B
</A></FONT> :
<b>aliased
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A>;
2179 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_2167_16">Paircontent
</A> (
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1721_28">Pair
</A>),
<A HREF=
"terminal_interface-curses__adb.htm#ref_2172_7">F
</A>'
<b>Access
</b>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_2172_10">B
</A>'
<b>Access
</b>) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
2180 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
2182 <A HREF=
"terminal_interface-curses__ads.htm#ref_1722_28">Fore
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_278_9">Color_Number
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2172_7">F
</A>);
2183 <A HREF=
"terminal_interface-curses__ads.htm#ref_1723_28">Back
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_278_9">Color_Number
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2172_10">B
</A>);
2184 <b>end
</b> <b>if
</b>;
2185 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1721_14">Pair_Content
</A>;
2187 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2182_13" HREF=
"terminal_interface-curses__ads.htm#ref_1728_13">Has_Colors
</A></FONT> <b>return
</b> Boolean
2189 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2184_16">Hascolors
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A>;
2190 <b>pragma
</b> Import (C, Hascolors,
"has_colors");
2192 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_2184_16">Hascolors
</A> =
<A HREF=
"terminal_interface-curses__ads.htm#ref_1927_4">Curses_Bool_False
</A> <b>then
</b>
2193 <b>return
</b> False;
2196 <b>end
</b> <b>if
</b>;
2197 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1728_13">Has_Colors
</A>;
2199 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_2194_14" HREF=
"terminal_interface-curses__ads.htm#ref_1733_14">Init_Color
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2194_26" HREF=
"terminal_interface-curses__ads.htm#ref_1733_26">Color
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_278_9">Color_Number
</A>;
2200 <FONT COLOR=red
><A NAME=
"ref_2195_26" HREF=
"terminal_interface-curses__ads.htm#ref_1734_26">Red
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_295_9">RGB_Value
</A>;
2201 <FONT COLOR=red
><A NAME=
"ref_2196_26" HREF=
"terminal_interface-curses__ads.htm#ref_1735_26">Green
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_295_9">RGB_Value
</A>;
2202 <FONT COLOR=red
><A NAME=
"ref_2197_26" HREF=
"terminal_interface-curses__ads.htm#ref_1736_26">Blue
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_295_9">RGB_Value
</A>)
2204 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2199_16">Initcolor
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2199_27" HREF=
"terminal_interface-curses__adb.htm#ref_2199_16">Col
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A>;
2205 <FONT COLOR=red
><A NAME=
"ref_2200_27" HREF=
"terminal_interface-curses__adb.htm#ref_2199_16">Red
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A>;
2206 <FONT COLOR=red
><A NAME=
"ref_2201_27" HREF=
"terminal_interface-curses__adb.htm#ref_2199_16">Green
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A>;
2207 <FONT COLOR=red
><A NAME=
"ref_2202_27" HREF=
"terminal_interface-curses__adb.htm#ref_2199_16">Blue
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2208 <b>pragma
</b> Import (C, Initcolor,
"init_color");
2210 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_2199_16">Initcolor
</A> (
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1733_26">Color
</A>),
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1734_26">Red
</A>),
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1735_26">Green
</A>),
2211 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1736_26">Blue
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
2212 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
2213 <b>end
</b> <b>if
</b>;
2214 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1733_14">Init_Color
</A>;
2216 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2211_13" HREF=
"terminal_interface-curses__ads.htm#ref_1741_13">Can_Change_Color
</A></FONT> <b>return
</b> Boolean
2218 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2213_16">Canchangecolor
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A>;
2219 <b>pragma
</b> Import (C, Canchangecolor,
"can_change_color");
2221 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_2213_16">Canchangecolor
</A> =
<A HREF=
"terminal_interface-curses__ads.htm#ref_1927_4">Curses_Bool_False
</A> <b>then
</b>
2222 <b>return
</b> False;
2225 <b>end
</b> <b>if
</b>;
2226 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1741_13">Can_Change_Color
</A>;
2228 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_2223_14" HREF=
"terminal_interface-curses__ads.htm#ref_1746_14">Color_Content
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2223_29" HREF=
"terminal_interface-curses__ads.htm#ref_1746_29">Color
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_278_9">Color_Number
</A>;
2229 <FONT COLOR=red
><A NAME=
"ref_2224_29" HREF=
"terminal_interface-curses__ads.htm#ref_1747_29">Red
</A></FONT> :
<b>out
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_295_9">RGB_Value
</A>;
2230 <FONT COLOR=red
><A NAME=
"ref_2225_29" HREF=
"terminal_interface-curses__ads.htm#ref_1748_29">Green
</A></FONT> :
<b>out
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_295_9">RGB_Value
</A>;
2231 <FONT COLOR=red
><A NAME=
"ref_2226_29" HREF=
"terminal_interface-curses__ads.htm#ref_1749_29">Blue
</A></FONT> :
<b>out
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_295_9">RGB_Value
</A>)
2233 <b>type
</b> <FONT COLOR=red
><A NAME=
"ref_2228_12">C_Short_Access
</A></FONT> <b>is
</b> <b>access
</b> <b>all
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A>;
2235 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2230_16">Colorcontent
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2230_30" HREF=
"terminal_interface-curses__adb.htm#ref_2230_16">Color
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A>;
<FONT COLOR=red
><A NAME=
"ref_2230_47" HREF=
"terminal_interface-curses__adb.htm#ref_2230_16">R
</A></FONT>,
<FONT COLOR=red
><A NAME=
"ref_2230_50" HREF=
"terminal_interface-curses__adb.htm#ref_2230_16">G
</A></FONT>,
<FONT COLOR=red
><A NAME=
"ref_2230_53" HREF=
"terminal_interface-curses__adb.htm#ref_2230_16">B
</A></FONT> :
<A HREF=
"terminal_interface-curses__adb.htm#ref_2228_12">C_Short_Access
</A>)
2236 <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2237 <b>pragma
</b> Import (C, Colorcontent,
"color_content");
2239 <FONT COLOR=red
><A NAME=
"ref_2234_7">R
</A></FONT>,
<FONT COLOR=red
><A NAME=
"ref_2234_10">G
</A></FONT>,
<FONT COLOR=red
><A NAME=
"ref_2234_13">B
</A></FONT> :
<b>aliased
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A>;
2241 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_2230_16">Colorcontent
</A> (
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_56_12">C_Short
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1746_29">Color
</A>),
<A HREF=
"terminal_interface-curses__adb.htm#ref_2234_7">R
</A>'
<b>Access
</b>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_2234_10">G
</A>'
<b>Access
</b>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_2234_13">B
</A>'
<b>Access
</b>) =
2242 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
2243 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
2245 <A HREF=
"terminal_interface-curses__ads.htm#ref_1747_29">Red
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_295_9">RGB_Value
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2234_7">R
</A>);
2246 <A HREF=
"terminal_interface-curses__ads.htm#ref_1748_29">Green
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_295_9">RGB_Value
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2234_10">G
</A>);
2247 <A HREF=
"terminal_interface-curses__ads.htm#ref_1749_29">Blue
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_295_9">RGB_Value
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2234_13">B
</A>);
2248 <b>end
</b> <b>if
</b>;
2249 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1746_14">Color_Content
</A>;
2251 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
2252 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_2247_14" HREF=
"terminal_interface-curses__ads.htm#ref_1761_14">Save_Curses_Mode
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2247_32" HREF=
"terminal_interface-curses__ads.htm#ref_1761_32">Mode
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_1758_9">Curses_Mode
</A>)
2254 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2249_16">Def_Prog_Mode
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2255 <b>pragma
</b> Import (C, Def_Prog_Mode,
"def_prog_mode");
2256 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2251_16">Def_Shell_Mode
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2257 <b>pragma
</b> Import (C, Def_Shell_Mode,
"def_shell_mode");
2259 <FONT COLOR=red
><A NAME=
"ref_2254_7">Err
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2261 <b>case
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1761_32">Mode
</A> <b>is
</b>
2262 <b>when
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1758_25">Curses
</A> =
> <A HREF=
"terminal_interface-curses__adb.htm#ref_2254_7">Err
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_2249_16">Def_Prog_Mode
</A>;
2263 <b>when
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1758_33">Shell
</A> =
> <A HREF=
"terminal_interface-curses__adb.htm#ref_2254_7">Err
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_2251_16">Def_Shell_Mode
</A>;
2264 <b>end
</b> <b>case
</b>;
2265 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_2254_7">Err
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
2266 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
2267 <b>end
</b> <b>if
</b>;
2268 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1761_14">Save_Curses_Mode
</A>;
2270 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_2265_14" HREF=
"terminal_interface-curses__ads.htm#ref_1767_14">Reset_Curses_Mode
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2265_33" HREF=
"terminal_interface-curses__ads.htm#ref_1767_33">Mode
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_1758_9">Curses_Mode
</A>)
2272 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2267_16">Reset_Prog_Mode
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2273 <b>pragma
</b> Import (C, Reset_Prog_Mode,
"reset_prog_mode");
2274 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2269_16">Reset_Shell_Mode
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2275 <b>pragma
</b> Import (C, Reset_Shell_Mode,
"reset_shell_mode");
2277 <FONT COLOR=red
><A NAME=
"ref_2272_7">Err
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2279 <b>case
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1767_33">Mode
</A> <b>is
</b>
2280 <b>when
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1758_25">Curses
</A> =
> <A HREF=
"terminal_interface-curses__adb.htm#ref_2272_7">Err
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_2267_16">Reset_Prog_Mode
</A>;
2281 <b>when
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1758_33">Shell
</A> =
> <A HREF=
"terminal_interface-curses__adb.htm#ref_2272_7">Err
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_2269_16">Reset_Shell_Mode
</A>;
2282 <b>end
</b> <b>case
</b>;
2283 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_2272_7">Err
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
2284 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
2285 <b>end
</b> <b>if
</b>;
2286 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1767_14">Reset_Curses_Mode
</A>;
2288 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_2283_14" HREF=
"terminal_interface-curses__ads.htm#ref_1773_14">Save_Terminal_State
</A></FONT>
2290 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2285_16">Savetty
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2291 <b>pragma
</b> Import (C, Savetty,
"savetty");
2293 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_2285_16">Savetty
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
2294 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
2295 <b>end
</b> <b>if
</b>;
2296 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1773_14">Save_Terminal_State
</A>;
2298 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_2293_14" HREF=
"terminal_interface-curses__ads.htm#ref_1778_14">Reset_Terminal_State
</A></FONT>
2300 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2295_16">Resetty
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2301 <b>pragma
</b> Import (C, Resetty,
"resetty");
2303 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_2295_16">Resetty
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
2304 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
2305 <b>end
</b> <b>if
</b>;
2306 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1778_14">Reset_Terminal_State
</A>;
2308 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_2303_14" HREF=
"terminal_interface-curses__ads.htm#ref_1791_14">Rip_Off_Lines
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2303_29" HREF=
"terminal_interface-curses__ads.htm#ref_1791_29">Lines
</A></FONT> : Integer;
2309 <FONT COLOR=red
><A NAME=
"ref_2304_29" HREF=
"terminal_interface-curses__ads.htm#ref_1792_29">Proc
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_1782_9">Stdscr_Init_Proc
</A>)
2311 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2306_16">Ripoffline
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2306_28" HREF=
"terminal_interface-curses__adb.htm#ref_2306_16">Lines
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2312 <FONT COLOR=red
><A NAME=
"ref_2307_28" HREF=
"terminal_interface-curses__adb.htm#ref_2306_16">Proc
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_1782_9">Stdscr_Init_Proc
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2313 <b>pragma
</b> Import (C, Ripoffline,
"_nc_ripoffline");
2315 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_2306_16">Ripoffline
</A> (
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1791_29">Lines
</A>),
<A HREF=
"terminal_interface-curses__ads.htm#ref_1792_29">Proc
</A>) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
2316 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
2317 <b>end
</b> <b>if
</b>;
2318 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1791_14">Rip_Off_Lines
</A>;
2320 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_2315_14" HREF=
"terminal_interface-curses__ads.htm#ref_1803_14">Set_Cursor_Visibility
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2315_37" HREF=
"terminal_interface-curses__ads.htm#ref_1803_37">Visibility
</A></FONT> :
<b>in
</b> <b>out
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1800_9">Cursor_Visibility
</A>)
2322 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2317_16">Curs_Set
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2317_26" HREF=
"terminal_interface-curses__adb.htm#ref_2317_16">Curs
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2323 <b>pragma
</b> Import (C, Curs_Set,
"curs_set");
2325 <FONT COLOR=red
><A NAME=
"ref_2320_7">Res
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2327 <A HREF=
"terminal_interface-curses__adb.htm#ref_2320_7">Res
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_2317_16">Curs_Set
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1800_9">Cursor_Visibility
</A>'Pos (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1803_37">Visibility
</A>));
2328 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_2320_7">Res
</A> /=
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
2329 <A HREF=
"terminal_interface-curses__ads.htm#ref_1803_37">Visibility
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_1800_9">Cursor_Visibility
</A>'Val (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2320_7">Res
</A>);
2330 <b>end
</b> <b>if
</b>;
2331 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1803_14">Set_Cursor_Visibility
</A>;
2333 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_2328_14" HREF=
"terminal_interface-curses__ads.htm#ref_1808_14">Nap_Milli_Seconds
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2328_33" HREF=
"terminal_interface-curses__ads.htm#ref_1808_33">Ms
</A></FONT> : Natural)
2335 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2330_16">Napms
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2330_23" HREF=
"terminal_interface-curses__adb.htm#ref_2330_16">Ms
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2336 <b>pragma
</b> Import (C, Napms,
"napms");
2338 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_2330_16">Napms
</A> (
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1808_33">Ms
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
2339 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
2340 <b>end
</b> <b>if
</b>;
2341 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1808_14">Nap_Milli_Seconds
</A>;
2342 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
2344 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2339_13" HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>
2346 <FONT COLOR=red
><A NAME=
"ref_2341_7">Result
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
2347 <b>pragma
</b> Import (C,
<A HREF=
"terminal_interface-curses__adb.htm#ref_2341_7">Result
</A>,
"stdscr");
2349 <b>return
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_2341_7">Result
</A>;
2350 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
2352 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2347_13" HREF=
"terminal_interface-curses__ads.htm#ref_483_13">Current_Window
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>
2354 <FONT COLOR=red
><A NAME=
"ref_2349_7">Result
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
2355 <b>pragma
</b> Import (C,
<A HREF=
"terminal_interface-curses__adb.htm#ref_2349_7">Result
</A>,
"curscr");
2357 <b>return
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_2349_7">Result
</A>;
2358 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_483_13">Current_Window
</A>;
2360 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2355_13" HREF=
"terminal_interface-curses__ads.htm#ref_414_13">Lines
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_63_12">Line_Count
</A>
2362 <FONT COLOR=red
><A NAME=
"ref_2357_7">Result
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2363 <b>pragma
</b> Import (C,
<A HREF=
"terminal_interface-curses__adb.htm#ref_2357_7">Result
</A>,
"LINES");
2365 <b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_63_12">Line_Count
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2357_7">Result
</A>);
2366 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_414_13">Lines
</A>;
2368 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2363_13" HREF=
"terminal_interface-curses__ads.htm#ref_417_13">Columns
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_65_12">Column_Count
</A>
2370 <FONT COLOR=red
><A NAME=
"ref_2365_7">Result
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2371 <b>pragma
</b> Import (C,
<A HREF=
"terminal_interface-curses__adb.htm#ref_2365_7">Result
</A>,
"COLS");
2373 <b>return
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_65_12">Column_Count
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2365_7">Result
</A>);
2374 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_417_13">Columns
</A>;
2376 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2371_13" HREF=
"terminal_interface-curses__ads.htm#ref_420_13">Tab_Size
</A></FONT> <b>return
</b> Natural
2378 <FONT COLOR=red
><A NAME=
"ref_2373_7">Result
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2379 <b>pragma
</b> Import (C,
<A HREF=
"terminal_interface-curses__adb.htm#ref_2373_7">Result
</A>,
"TABSIZE");
2381 <b>return
</b> Natural (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2373_7">Result
</A>);
2382 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_420_13">Tab_Size
</A>;
2384 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2379_13" HREF=
"terminal_interface-curses__ads.htm#ref_423_13">Number_Of_Colors
</A></FONT> <b>return
</b> Natural
2386 <FONT COLOR=red
><A NAME=
"ref_2381_7">Result
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2387 <b>pragma
</b> Import (C,
<A HREF=
"terminal_interface-curses__adb.htm#ref_2381_7">Result
</A>,
"COLORS");
2389 <b>return
</b> Natural (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2381_7">Result
</A>);
2390 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_423_13">Number_Of_Colors
</A>;
2392 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2387_13" HREF=
"terminal_interface-curses__ads.htm#ref_426_13">Number_Of_Color_Pairs
</A></FONT> <b>return
</b> Natural
2394 <FONT COLOR=red
><A NAME=
"ref_2389_7">Result
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2395 <b>pragma
</b> Import (C,
<A HREF=
"terminal_interface-curses__adb.htm#ref_2389_7">Result
</A>,
"COLOR_PAIRS");
2397 <b>return
</b> Natural (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2389_7">Result
</A>);
2398 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_426_13">Number_Of_Color_Pairs
</A>;
2400 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
2401 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_2396_14" HREF=
"terminal_interface-curses__ads.htm#ref_1816_14">Transform_Coordinates
</A></FONT>
2402 (
<FONT COLOR=red
><A NAME=
"ref_2397_7" HREF=
"terminal_interface-curses__ads.htm#ref_1817_7">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
2403 <FONT COLOR=red
><A NAME=
"ref_2398_7" HREF=
"terminal_interface-curses__ads.htm#ref_1818_7">Line
</A></FONT> :
<b>in
</b> <b>out
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A>;
2404 <FONT COLOR=red
><A NAME=
"ref_2399_7" HREF=
"terminal_interface-curses__ads.htm#ref_1819_7">Column
</A></FONT> :
<b>in
</b> <b>out
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A>;
2405 <FONT COLOR=red
><A NAME=
"ref_2400_7" HREF=
"terminal_interface-curses__ads.htm#ref_1820_7">Dir
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_1815_9">Transform_Direction
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_1815_33">From_Screen
</A>)
2407 <b>type
</b> <FONT COLOR=red
><A NAME=
"ref_2402_12">Int_Access
</A></FONT> <b>is
</b> <b>access
</b> <b>all
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2408 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2403_16">Transform
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2403_27" HREF=
"terminal_interface-curses__adb.htm#ref_2403_16">W
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
2409 <FONT COLOR=red
><A NAME=
"ref_2404_27" HREF=
"terminal_interface-curses__adb.htm#ref_2403_16">Y
</A></FONT>,
<FONT COLOR=red
><A NAME=
"ref_2404_30" HREF=
"terminal_interface-curses__adb.htm#ref_2403_16">X
</A></FONT> :
<A HREF=
"terminal_interface-curses__adb.htm#ref_2402_12">Int_Access
</A>;
2410 <FONT COLOR=red
><A NAME=
"ref_2405_27" HREF=
"terminal_interface-curses__adb.htm#ref_2403_16">Dir
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2411 <b>pragma
</b> Import (C, Transform,
"wmouse_trafo");
2413 <FONT COLOR=red
><A NAME=
"ref_2408_7">X
</A></FONT> :
<b>aliased
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> :=
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1819_7">Column
</A>);
2414 <FONT COLOR=red
><A NAME=
"ref_2409_7">Y
</A></FONT> :
<b>aliased
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> :=
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1818_7">Line
</A>);
2415 <FONT COLOR=red
><A NAME=
"ref_2410_7">D
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_1927_4">Curses_Bool_False
</A>;
2416 <FONT COLOR=red
><A NAME=
"ref_2411_7">R
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2418 <b>if
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1820_7">Dir
</A> =
<A HREF=
"terminal_interface-curses__ads.htm#ref_1815_46">To_Screen
</A> <b>then
</b>
2419 <A HREF=
"terminal_interface-curses__adb.htm#ref_2410_7">D
</A> :=
1;
2420 <b>end
</b> <b>if
</b>;
2421 <A HREF=
"terminal_interface-curses__adb.htm#ref_2411_7">R
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_2403_16">Transform
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1817_7">W
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_2409_7">Y
</A>'
<b>Access
</b>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_2408_7">X
</A>'
<b>Access
</b>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_2410_7">D
</A>);
2422 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_2411_7">R
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_75_4">Curses_False
</A> <b>then
</b>
2423 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
2425 <A HREF=
"terminal_interface-curses__ads.htm#ref_1818_7">Line
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_60_9">Line_Position
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2409_7">Y
</A>);
2426 <A HREF=
"terminal_interface-curses__ads.htm#ref_1819_7">Column
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_61_9">Column_Position
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2408_7">X
</A>);
2427 <b>end
</b> <b>if
</b>;
2428 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1816_14">Transform_Coordinates
</A>;
2429 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
2430 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_2425_14" HREF=
"terminal_interface-curses__ads.htm#ref_1833_14">Use_Default_Colors
</A></FONT> <b>is
</b>
2431 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2426_16">C_Use_Default_Colors
</A></FONT> <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2432 <b>pragma
</b> Import (C, C_Use_Default_Colors,
"use_default_colors");
2433 <FONT COLOR=red
><A NAME=
"ref_2428_7">Err
</A></FONT> :
<b>constant
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_2426_16">C_Use_Default_Colors
</A>;
2435 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_2428_7">Err
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
2436 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
2437 <b>end
</b> <b>if
</b>;
2438 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1833_14">Use_Default_Colors
</A>;
2440 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_2435_14" HREF=
"terminal_interface-curses__ads.htm#ref_1838_14">Assume_Default_Colors
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2435_37" HREF=
"terminal_interface-curses__ads.htm#ref_1838_37">Fore
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_278_9">Color_Number
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_285_4">Default_Color
</A>;
2441 <FONT COLOR=red
><A NAME=
"ref_2436_37" HREF=
"terminal_interface-curses__ads.htm#ref_1839_37">Back
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_278_9">Color_Number
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_285_4">Default_Color
</A>)
2443 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2438_16">C_Assume_Default_Colors
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2438_41" HREF=
"terminal_interface-curses__adb.htm#ref_2438_16">Fore
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2444 <FONT COLOR=red
><A NAME=
"ref_2439_41" HREF=
"terminal_interface-curses__adb.htm#ref_2438_16">Back
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2445 <b>pragma
</b> Import (C, C_Assume_Default_Colors,
"assume_default_colors");
2447 <FONT COLOR=red
><A NAME=
"ref_2442_7">Err
</A></FONT> :
<b>constant
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_2438_16">C_Assume_Default_Colors
</A> (
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1838_37">Fore
</A>),
2448 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1839_37">Back
</A>));
2450 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_2442_7">Err
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
2451 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
2452 <b>end
</b> <b>if
</b>;
2453 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1838_14">Assume_Default_Colors
</A>;
2454 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
2455 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2450_13" HREF=
"terminal_interface-curses__ads.htm#ref_1848_13">Curses_Version
</A></FONT> <b>return
</b> String
2457 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2452_16">curses_versionC
</A></FONT> <b>return
</b> chars_ptr;
2458 <b>pragma
</b> Import (C, curses_versionC,
"curses_version");
2459 <FONT COLOR=red
><A NAME=
"ref_2454_7">Result
</A></FONT> :
<b>constant
</b> chars_ptr :=
<A HREF=
"terminal_interface-curses__adb.htm#ref_2452_16">curses_versionC
</A>;
2461 <b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_121_13">Fill_String
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2454_7">Result
</A>);
2462 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1848_13">Curses_Version
</A>;
2463 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
2464 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_2459_14" HREF=
"terminal_interface-curses__ads.htm#ref_1861_14">Curses_Free_All
</A></FONT> <b>is
</b>
2465 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_2460_17">curses_freeall
</A></FONT>;
2466 <b>pragma
</b> Import (C, curses_freeall,
"_nc_freeall");
2468 <FONT COLOR=green
><EM>-- Use this only for testing: you cannot use curses after calling it,
</EM></FONT>
2469 <FONT COLOR=green
><EM>-- so it has to be the
"last" thing done before exiting the program.
</EM></FONT>
2470 <FONT COLOR=green
><EM>-- This will not really free ALL of memory used by curses. That is
</EM></FONT>
2471 <FONT COLOR=green
><EM>-- because it cannot free the memory used for stdout's setbuf. The
</EM></FONT>
2472 <FONT COLOR=green
><EM>-- _nc_free_and_exit() procedure can do that, but it can be invoked
</EM></FONT>
2473 <FONT COLOR=green
><EM>-- safely only from C - and again, that only as the
"last" thing done
</EM></FONT>
2474 <FONT COLOR=green
><EM>-- before exiting the program.
</EM></FONT>
2475 <A HREF=
"terminal_interface-curses__adb.htm#ref_2460_17">curses_freeall
</A>;
2476 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1861_14">Curses_Free_All
</A>;
2477 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
2478 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2473_13" HREF=
"terminal_interface-curses__ads.htm#ref_1853_13">Use_Extended_Names
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2473_33" HREF=
"terminal_interface-curses__ads.htm#ref_1853_33">Enable
</A></FONT> : Boolean)
<b>return
</b> Boolean
2480 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2475_16">use_extended_namesC
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2475_37" HREF=
"terminal_interface-curses__adb.htm#ref_2475_16">e
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2481 <b>pragma
</b> Import (C, use_extended_namesC,
"use_extended_names");
2483 <FONT COLOR=red
><A NAME=
"ref_2478_7">Res
</A></FONT> :
<b>constant
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> :=
2484 <A HREF=
"terminal_interface-curses__adb.htm#ref_2475_16">use_extended_namesC
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1926_9">Curses_Bool
</A> (Boolean'Pos (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1853_33">Enable
</A>)));
2486 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_2478_7">Res
</A> =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1927_4">Curses_Bool_False
</A>)
<b>then
</b>
2487 <b>return
</b> False;
2490 <b>end
</b> <b>if
</b>;
2491 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1853_13">Use_Extended_Names
</A>;
2492 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
2493 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_2488_14" HREF=
"terminal_interface-curses__ads.htm#ref_1869_14">Screen_Dump_To_File
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2488_35" HREF=
"terminal_interface-curses__ads.htm#ref_1869_35">Filename
</A></FONT> : String)
2495 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2490_16">scr_dump
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2490_26" HREF=
"terminal_interface-curses__adb.htm#ref_2490_16">f
</A></FONT> : char_array)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2496 <b>pragma
</b> Import (C, scr_dump,
"scr_dump");
2497 <FONT COLOR=red
><A NAME=
"ref_2492_7">Txt
</A></FONT> : char_array (
0 ..
<A HREF=
"terminal_interface-curses__ads.htm#ref_1869_35">Filename
</A>'Length);
2498 <FONT COLOR=red
><A NAME=
"ref_2493_7">Length
</A></FONT> : size_t;
2500 To_C (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1869_35">Filename
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_2492_7">Txt
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_2493_7">Length
</A>);
2501 <b>if
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> =
<A HREF=
"terminal_interface-curses__adb.htm#ref_2490_16">scr_dump
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2492_7">Txt
</A>)
<b>then
</b>
2502 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
2503 <b>end
</b> <b>if
</b>;
2504 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1869_14">Screen_Dump_To_File
</A>;
2506 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_2501_14" HREF=
"terminal_interface-curses__ads.htm#ref_1873_14">Screen_Restore_From_File
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2501_40" HREF=
"terminal_interface-curses__ads.htm#ref_1873_40">Filename
</A></FONT> : String)
2508 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2503_16">scr_restore
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2503_29" HREF=
"terminal_interface-curses__adb.htm#ref_2503_16">f
</A></FONT> : char_array)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2509 <b>pragma
</b> Import (C, scr_restore,
"scr_restore");
2510 <FONT COLOR=red
><A NAME=
"ref_2505_7">Txt
</A></FONT> : char_array (
0 ..
<A HREF=
"terminal_interface-curses__ads.htm#ref_1873_40">Filename
</A>'Length);
2511 <FONT COLOR=red
><A NAME=
"ref_2506_7">Length
</A></FONT> : size_t;
2513 To_C (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1873_40">Filename
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_2505_7">Txt
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_2506_7">Length
</A>);
2514 <b>if
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> =
<A HREF=
"terminal_interface-curses__adb.htm#ref_2503_16">scr_restore
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2505_7">Txt
</A>)
<b>then
</b>
2515 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
2516 <b>end
</b> <b>if
</b>;
2517 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1873_14">Screen_Restore_From_File
</A>;
2519 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_2514_14" HREF=
"terminal_interface-curses__ads.htm#ref_1877_14">Screen_Init_From_File
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2514_37" HREF=
"terminal_interface-curses__ads.htm#ref_1877_37">Filename
</A></FONT> : String)
2521 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2516_16">scr_init
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2516_26" HREF=
"terminal_interface-curses__adb.htm#ref_2516_16">f
</A></FONT> : char_array)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2522 <b>pragma
</b> Import (C, scr_init,
"scr_init");
2523 <FONT COLOR=red
><A NAME=
"ref_2518_7">Txt
</A></FONT> : char_array (
0 ..
<A HREF=
"terminal_interface-curses__ads.htm#ref_1877_37">Filename
</A>'Length);
2524 <FONT COLOR=red
><A NAME=
"ref_2519_7">Length
</A></FONT> : size_t;
2526 To_C (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1877_37">Filename
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_2518_7">Txt
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_2519_7">Length
</A>);
2527 <b>if
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> =
<A HREF=
"terminal_interface-curses__adb.htm#ref_2516_16">scr_init
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2518_7">Txt
</A>)
<b>then
</b>
2528 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
2529 <b>end
</b> <b>if
</b>;
2530 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1877_14">Screen_Init_From_File
</A>;
2532 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_2527_14" HREF=
"terminal_interface-curses__ads.htm#ref_1881_14">Screen_Set_File
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2527_31" HREF=
"terminal_interface-curses__ads.htm#ref_1881_31">Filename
</A></FONT> : String)
2534 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2529_16">scr_set
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2529_25" HREF=
"terminal_interface-curses__adb.htm#ref_2529_16">f
</A></FONT> : char_array)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2535 <b>pragma
</b> Import (C, scr_set,
"scr_set");
2536 <FONT COLOR=red
><A NAME=
"ref_2531_7">Txt
</A></FONT> : char_array (
0 ..
<A HREF=
"terminal_interface-curses__ads.htm#ref_1881_31">Filename
</A>'Length);
2537 <FONT COLOR=red
><A NAME=
"ref_2532_7">Length
</A></FONT> : size_t;
2539 To_C (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1881_31">Filename
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_2531_7">Txt
</A>,
<A HREF=
"terminal_interface-curses__adb.htm#ref_2532_7">Length
</A>);
2540 <b>if
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> =
<A HREF=
"terminal_interface-curses__adb.htm#ref_2529_16">scr_set
</A> (
<A HREF=
"terminal_interface-curses__adb.htm#ref_2531_7">Txt
</A>)
<b>then
</b>
2541 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
2542 <b>end
</b> <b>if
</b>;
2543 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1881_14">Screen_Set_File
</A>;
2544 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
2545 <b>procedure
</b> <FONT COLOR=red
><A NAME=
"ref_2540_14" HREF=
"terminal_interface-curses__ads.htm#ref_1913_14">Resize
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2540_22" HREF=
"terminal_interface-curses__ads.htm#ref_1913_22">Win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A> :=
<A HREF=
"terminal_interface-curses__ads.htm#ref_478_13">Standard_Window
</A>;
2546 <FONT COLOR=red
><A NAME=
"ref_2541_22" HREF=
"terminal_interface-curses__ads.htm#ref_1914_22">Number_Of_Lines
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_63_12">Line_Count
</A>;
2547 <FONT COLOR=red
><A NAME=
"ref_2542_22" HREF=
"terminal_interface-curses__ads.htm#ref_1915_22">Number_Of_Columns
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_65_12">Column_Count
</A>)
<b>is
</b>
2548 <b>function
</b> <FONT COLOR=red
><A NAME=
"ref_2543_16">wresize
</A></FONT> (
<FONT COLOR=red
><A NAME=
"ref_2543_25" HREF=
"terminal_interface-curses__adb.htm#ref_2543_16">win
</A></FONT> :
<A HREF=
"terminal_interface-curses__ads.htm#ref_57_9">Window
</A>;
2549 <FONT COLOR=red
><A NAME=
"ref_2544_25" HREF=
"terminal_interface-curses__adb.htm#ref_2543_16">lines
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2550 <FONT COLOR=red
><A NAME=
"ref_2545_25" HREF=
"terminal_interface-curses__adb.htm#ref_2543_16">columns
</A></FONT> :
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>)
<b>return
</b> <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A>;
2551 <b>pragma
</b> Import (C, wresize);
2553 <b>if
</b> <A HREF=
"terminal_interface-curses__adb.htm#ref_2543_16">wresize
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1913_22">Win
</A>,
2554 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1914_22">Number_Of_Lines
</A>),
2555 <A HREF=
"terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int
</A> (
<A HREF=
"terminal_interface-curses__ads.htm#ref_1915_22">Number_Of_Columns
</A>)) =
<A HREF=
"terminal_interface-curses-aux__ads.htm#ref_72_4">Curses_Err
</A> <b>then
</b>
2556 <b>raise
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_385_4">Curses_Exception
</A>;
2557 <b>end
</b> <b>if
</b>;
2558 <b>end
</b> <A HREF=
"terminal_interface-curses__ads.htm#ref_1913_14">Resize
</A>;
2559 <FONT COLOR=green
><EM>------------------------------------------------------------------------------
</EM></FONT>
2561 <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>;
2562 </PRE></BODY></HTML>