⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 terminal_interface-curses-menus__ads.htm

📁 ncurses-5.4 需要的就来下把 一定会有用的哦
💻 HTM
📖 第 1 页 / 共 4 页
字号:
<HTML><HEAD><TITLE>terminal_interface-curses-menus.ads</TITLE></HEAD><BODY><HR><DIV ALIGN="center"><H1> File : terminal_interface-curses-menus.ads </H1></DIV><HR><PRE><FONT COLOR=green><EM>------------------------------------------------------------------------------</EM></FONT><FONT COLOR=green><EM>--                                                                          --</EM></FONT><FONT COLOR=green><EM>--                           <A HREF="http://www.gnat.com">GNAT</A> ncurses Binding                           --</EM></FONT><FONT COLOR=green><EM>--                                                                          --</EM></FONT><FONT COLOR=green><EM>--                      Terminal_Interface.Curses.Menu                      --</EM></FONT><FONT COLOR=green><EM>--                                                                          --</EM></FONT><FONT COLOR=green><EM>--                                 S P E C                                  --</EM></FONT><FONT COLOR=green><EM>--                                                                          --</EM></FONT><FONT COLOR=green><EM>------------------------------------------------------------------------------</EM></FONT><FONT COLOR=green><EM>-- Copyright (c) 1998 Free Software Foundation, Inc.                        --</EM></FONT><FONT COLOR=green><EM>--                                                                          --</EM></FONT><FONT COLOR=green><EM>-- Permission is hereby granted, free of charge, to any person obtaining a  --</EM></FONT><FONT COLOR=green><EM>-- copy of this software and associated documentation files (the            --</EM></FONT><FONT COLOR=green><EM>-- "Software"), to deal in the Software without restriction, including      --</EM></FONT><FONT COLOR=green><EM>-- without limitation the rights to use, copy, modify, merge, publish,      --</EM></FONT><FONT COLOR=green><EM>-- distribute, distribute with modifications, sublicense, and/or sell       --</EM></FONT><FONT COLOR=green><EM>-- copies of the Software, and to permit persons to whom the Software is    --</EM></FONT><FONT COLOR=green><EM>-- furnished to do so, subject to the following conditions:                 --</EM></FONT><FONT COLOR=green><EM>--                                                                          --</EM></FONT><FONT COLOR=green><EM>-- The above copyright notice and this permission notice shall be included  --</EM></FONT><FONT COLOR=green><EM>-- in all copies or substantial portions of the Software.                   --</EM></FONT><FONT COLOR=green><EM>--                                                                          --</EM></FONT><FONT COLOR=green><EM>-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  --</EM></FONT><FONT COLOR=green><EM>-- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               --</EM></FONT><FONT COLOR=green><EM>-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   --</EM></FONT><FONT COLOR=green><EM>-- IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   --</EM></FONT><FONT COLOR=green><EM>-- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    --</EM></FONT><FONT COLOR=green><EM>-- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    --</EM></FONT><FONT COLOR=green><EM>-- THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               --</EM></FONT><FONT COLOR=green><EM>--                                                                          --</EM></FONT><FONT COLOR=green><EM>-- Except as contained in this notice, the name(s) of the above copyright   --</EM></FONT><FONT COLOR=green><EM>-- holders shall not be used in advertising or otherwise to promote the     --</EM></FONT><FONT COLOR=green><EM>-- sale, use or other dealings in this Software without prior written       --</EM></FONT><FONT COLOR=green><EM>-- authorization.                                                           --</EM></FONT><FONT COLOR=green><EM>------------------------------------------------------------------------------</EM></FONT><FONT COLOR=green><EM>--  Author:  Juergen Pfeifer, 1996</EM></FONT><FONT COLOR=green><EM>--  Version Control:</EM></FONT><FONT COLOR=green><EM>--  @Revision: 1.24 @</EM></FONT><FONT COLOR=green><EM>--  Binding Version 01.00</EM></FONT><FONT COLOR=green><EM>------------------------------------------------------------------------------</EM></FONT><FONT COLOR=green><EM>--  menu binding.</EM></FONT><FONT COLOR=green><EM>--  This module is generated. Please don't change it manually!</EM></FONT><FONT COLOR=green><EM>--  Run the generator instead.</EM></FONT><FONT COLOR=green><EM>--  |</EM></FONT><b>with</b> System;<b>with</b> Ada.Characters.Latin_1;<b>package</b> Terminal_Interface.Curses.Menus <b>is</b>   <b>pragma</b> Preelaborate (Terminal_Interface.Curses.Menus);   <b>pragma</b> Linker_Options ("-lmenu");   <b>pragma</b> Linker_Options ("-lncurses");   Space : Character <b>renames</b> Ada.Characters.Latin_1.Space;   <b>type</b> <FONT COLOR=red><A NAME="56_9">Item</A></FONT> <b>is</b> <b>private</b>;   <b>type</b> Menu <b>is</b> <b>private</b>;   <FONT COLOR=green><EM>---------------------------</EM></FONT>   <FONT COLOR=green><EM>--  Interface constants  --</EM></FONT>   <FONT COLOR=green><EM>---------------------------</EM></FONT>   <FONT COLOR=red><A NAME="62_4">Null_Item</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses-menus__ads.htm#56_9">Item</A>;   Null_Menu : <b>constant</b> Menu;   <b>subtype</b> Menu_Request_Code <b>is</b> Key_Code     <b>range</b> (Key_Max + 1) .. (Key_Max + 17);   <FONT COLOR=green><EM>--  The prefix M_ stands for "Menu Request"</EM></FONT>   <FONT COLOR=red><A NAME="69_4">M_Left_Item</A></FONT>       : <b>constant</b> <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> := <A HREF="terminal_interface-curses__ads.htm#205_4">Key_Max</A> + 1;   <FONT COLOR=red><A NAME="70_4">M_Right_Item</A></FONT>      : <b>constant</b> <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> := <A HREF="terminal_interface-curses__ads.htm#205_4">Key_Max</A> + 2;   <FONT COLOR=red><A NAME="71_4">M_Up_Item</A></FONT>         : <b>constant</b> <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> := <A HREF="terminal_interface-curses__ads.htm#205_4">Key_Max</A> + 3;   <FONT COLOR=red><A NAME="72_4">M_Down_Item</A></FONT>       : <b>constant</b> <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> := <A HREF="terminal_interface-curses__ads.htm#205_4">Key_Max</A> + 4;   <FONT COLOR=red><A NAME="73_4">M_ScrollUp_Line</A></FONT>   : <b>constant</b> <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> := <A HREF="terminal_interface-curses__ads.htm#205_4">Key_Max</A> + 5;   <FONT COLOR=red><A NAME="74_4">M_ScrollDown_Line</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> := <A HREF="terminal_interface-curses__ads.htm#205_4">Key_Max</A> + 6;   <FONT COLOR=red><A NAME="75_4">M_ScrollDown_Page</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> := <A HREF="terminal_interface-curses__ads.htm#205_4">Key_Max</A> + 7;   <FONT COLOR=red><A NAME="76_4">M_ScrollUp_Page</A></FONT>   : <b>constant</b> <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> := <A HREF="terminal_interface-curses__ads.htm#205_4">Key_Max</A> + 8;   <FONT COLOR=red><A NAME="77_4">M_First_Item</A></FONT>      : <b>constant</b> <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> := <A HREF="terminal_interface-curses__ads.htm#205_4">Key_Max</A> + 9;   <FONT COLOR=red><A NAME="78_4">M_Last_Item</A></FONT>       : <b>constant</b> <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> := <A HREF="terminal_interface-curses__ads.htm#205_4">Key_Max</A> + 10;   <FONT COLOR=red><A NAME="79_4">M_Next_Item</A></FONT>       : <b>constant</b> <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> := <A HREF="terminal_interface-curses__ads.htm#205_4">Key_Max</A> + 11;   <FONT COLOR=red><A NAME="80_4">M_Previous_Item</A></FONT>   : <b>constant</b> <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> := <A HREF="terminal_interface-curses__ads.htm#205_4">Key_Max</A> + 12;   <FONT COLOR=red><A NAME="81_4">M_Toggle_Item</A></FONT>     : <b>constant</b> <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> := <A HREF="terminal_interface-curses__ads.htm#205_4">Key_Max</A> + 13;   <FONT COLOR=red><A NAME="82_4">M_Clear_Pattern</A></FONT>   : <b>constant</b> <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> := <A HREF="terminal_interface-curses__ads.htm#205_4">Key_Max</A> + 14;   <FONT COLOR=red><A NAME="83_4">M_Back_Pattern</A></FONT>    : <b>constant</b> <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> := <A HREF="terminal_interface-curses__ads.htm#205_4">Key_Max</A> + 15;   <FONT COLOR=red><A NAME="84_4">M_Next_Match</A></FONT>      : <b>constant</b> <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> := <A HREF="terminal_interface-curses__ads.htm#205_4">Key_Max</A> + 16;   M_Previous_Match  : <b>constant</b> Menu_Request_Code := Key_Max + 17;   <FONT COLOR=green><EM>--  For those who like the old 'C' names for the request codes</EM></FONT>   <FONT COLOR=red><A NAME="88_4">REQ_LEFT_ITEM</A></FONT>     : <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> <b>renames</b> <A HREF="terminal_interface-curses-menus__ads.htm#69_4">M_Left_Item</A>;   <FONT COLOR=red><A NAME="89_4">REQ_RIGHT_ITEM</A></FONT>    : <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> <b>renames</b> <A HREF="terminal_interface-curses-menus__ads.htm#70_4">M_Right_Item</A>;   <FONT COLOR=red><A NAME="90_4">REQ_UP_ITEM</A></FONT>       : <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> <b>renames</b> <A HREF="terminal_interface-curses-menus__ads.htm#71_4">M_Up_Item</A>;   <FONT COLOR=red><A NAME="91_4">REQ_DOWN_ITEM</A></FONT>     : <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> <b>renames</b> <A HREF="terminal_interface-curses-menus__ads.htm#72_4">M_Down_Item</A>;   <FONT COLOR=red><A NAME="92_4">REQ_SCR_ULINE</A></FONT>     : <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> <b>renames</b> <A HREF="terminal_interface-curses-menus__ads.htm#73_4">M_ScrollUp_Line</A>;   <FONT COLOR=red><A NAME="93_4">REQ_SCR_DLINE</A></FONT>     : <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> <b>renames</b> <A HREF="terminal_interface-curses-menus__ads.htm#74_4">M_ScrollDown_Line</A>;   <FONT COLOR=red><A NAME="94_4">REQ_SCR_DPAGE</A></FONT>     : <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> <b>renames</b> <A HREF="terminal_interface-curses-menus__ads.htm#75_4">M_ScrollDown_Page</A>;   <FONT COLOR=red><A NAME="95_4">REQ_SCR_UPAGE</A></FONT>     : <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> <b>renames</b> <A HREF="terminal_interface-curses-menus__ads.htm#76_4">M_ScrollUp_Page</A>;   <FONT COLOR=red><A NAME="96_4">REQ_FIRST_ITEM</A></FONT>    : <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> <b>renames</b> <A HREF="terminal_interface-curses-menus__ads.htm#77_4">M_First_Item</A>;   <FONT COLOR=red><A NAME="97_4">REQ_LAST_ITEM</A></FONT>     : <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> <b>renames</b> <A HREF="terminal_interface-curses-menus__ads.htm#78_4">M_Last_Item</A>;   <FONT COLOR=red><A NAME="98_4">REQ_NEXT_ITEM</A></FONT>     : <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> <b>renames</b> <A HREF="terminal_interface-curses-menus__ads.htm#79_4">M_Next_Item</A>;   <FONT COLOR=red><A NAME="99_4">REQ_PREV_ITEM</A></FONT>     : <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> <b>renames</b> <A HREF="terminal_interface-curses-menus__ads.htm#80_4">M_Previous_Item</A>;   <FONT COLOR=red><A NAME="100_4">REQ_TOGGLE_ITEM</A></FONT>   : <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> <b>renames</b> <A HREF="terminal_interface-curses-menus__ads.htm#81_4">M_Toggle_Item</A>;   <FONT COLOR=red><A NAME="101_4">REQ_CLEAR_PATTERN</A></FONT> : <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> <b>renames</b> <A HREF="terminal_interface-curses-menus__ads.htm#82_4">M_Clear_Pattern</A>;   <FONT COLOR=red><A NAME="102_4">REQ_BACK_PATTERN</A></FONT>  : <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> <b>renames</b> <A HREF="terminal_interface-curses-menus__ads.htm#83_4">M_Back_Pattern</A>;   <FONT COLOR=red><A NAME="103_4">REQ_NEXT_MATCH</A></FONT>    : <A HREF="terminal_interface-curses-menus__ads.htm#64_12">Menu_Request_Code</A> <b>renames</b> <A HREF="terminal_interface-curses-menus__ads.htm#84_4">M_Next_Match</A>;   REQ_PREV_MATCH    : Menu_Request_Code <b>renames</b> M_Previous_Match;   <b>procedure</b> Request_Name (<FONT COLOR=red><A NAME="106_28">Key</A></FONT>  : <b>in</b> Menu_Request_Code;                           Name : <b>out</b> String);   <b>function</b>  Request_Name (Key : Menu_Request_Code) <b>return</b> String;   <FONT COLOR=green><EM>--  Same as function</EM></FONT>   <FONT COLOR=green><EM>------------------</EM></FONT>   <FONT COLOR=green><EM>--  Exceptions  --</EM></FONT>   <FONT COLOR=green><EM>------------------</EM></FONT>   Menu_Exception : <b>exception</b>;   <FONT COLOR=green><EM>--</EM></FONT>   <FONT COLOR=green><EM>--  Menu options</EM></FONT>   <FONT COLOR=green><EM>--</EM></FONT>   <b>pragma</b> Warnings (Off);   <b>type</b> Menu_Option_Set <b>is</b>      <b>record</b>         <FONT COLOR=red><A NAME="123_10">One_Valued</A></FONT>        : Boolean;         <FONT COLOR=red><A NAME="124_10">Show_Descriptions</A></FONT> : Boolean;         <FONT COLOR=red><A NAME="125_10">Row_Major_Order</A></FONT>   : Boolean;         <FONT COLOR=red><A NAME="126_10">Ignore_Case</A></FONT>       : Boolean;         <FONT COLOR=red><A NAME="127_10">Show_Matches</A></FONT>      : Boolean;         Non_Cyclic        : Boolean;      <b>end</b> <b>record</b><A HREF="terminal_interface-curses-menus__ads.htm#120_9">;</A>   <b>pragma</b> Pack (Menu_Option_Set);   <b>pragma</b> Convention (C, Menu_Option_Set);   <b>for</b> Menu_Option_Set <b>use</b>      <b>record</b>         One_Valued        <b>at</b> 0 <b>range</b>  0 ..  0;         Show_Descriptions <b>at</b> 0 <b>range</b>  1 ..  1;         Row_Major_Order   <b>at</b> 0 <b>range</b>  2 ..  2;         Ignore_Case       <b>at</b> 0 <b>range</b>  3 ..  3;         Show_Matches      <b>at</b> 0 <b>range</b>  4 ..  4;         Non_Cyclic        <b>at</b> 0 <b>range</b>  5 ..  5;      <b>end</b> <b>record</b>;   <b>for</b> Menu_Option_Set'Size <b>use</b> 32;   <FONT COLOR=green><EM>--  Please note: this rep. clause is generated and may be</EM></FONT>   <FONT COLOR=green><EM>--               different on your system.</EM></FONT>   <b>pragma</b> Warnings (On);   <b>function</b> Default_Menu_Options <b>return</b> Menu_Option_Set;   <FONT COLOR=green><EM>--  Initial default options for a menu.</EM></FONT>   <b>pragma</b> Inline (Default_Menu_Options);   <FONT COLOR=green><EM>--</EM></FONT>   <FONT COLOR=green><EM>--  Item options</EM></FONT>   <FONT COLOR=green><EM>--</EM></FONT>   <b>pragma</b> Warnings (Off);   <b>type</b> Item_Option_Set <b>is</b>      <b>record</b>         Selectable  : Boolean;      <b>end</b> <b>record</b><A HREF="terminal_interface-curses-menus__ads.htm#153_9">;</A>   <b>pragma</b> Pack (Item_Option_Set);   <b>pragma</b> Convention (C, Item_Option_Set);   <b>for</b> Item_Option_Set <b>use</b>      <b>record</b>         Selectable  <b>at</b> 0 <b>range</b>  0 ..  0;      <b>end</b> <b>record</b>;   <b>for</b> Item_Option_Set'Size <b>use</b> 32;   <FONT COLOR=green><EM>--  Please note: this rep. clause is generated and may be</EM></FONT>   <FONT COLOR=green><EM>--               different on your system.</EM></FONT>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -