📄 terminal_interface-curses__ads.htm
字号:
<HTML><HEAD><TITLE>terminal_interface-curses.ads</TITLE></HEAD><BODY><HR><DIV ALIGN="center"><H1> File : terminal_interface-curses.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 --</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.31 @</EM></FONT><FONT COLOR=green><EM>-- Binding Version 01.00</EM></FONT><FONT COLOR=green><EM>------------------------------------------------------------------------------</EM></FONT><FONT COLOR=green><EM>-- curses 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> <A HREF="interfac__ads.htm#23_9">System</A>.Storage_Elements;<b>with</b> Interfaces.C; <FONT COLOR=green><EM>-- We need this for some assertions.</EM></FONT><b>package</b> Terminal_Interface.Curses <b>is</b> <b>pragma</b> Preelaborate (Terminal_Interface.Curses); <b>pragma</b> Linker_Options ("-lncurses"); <FONT COLOR=red><A NAME="53_4">NC_Major_Version</A></FONT> : <b>constant</b> := 5; <FONT COLOR=green><EM>-- Major version of the library</EM></FONT> <FONT COLOR=red><A NAME="54_4">NC_Minor_Version</A></FONT> : <b>constant</b> := 3; <FONT COLOR=green><EM>-- Minor version of the library</EM></FONT> NC_Version : <b>constant</b> String := "5.3"; <FONT COLOR=green><EM>-- Version of library</EM></FONT> <b>type</b> Window <b>is</b> <b>private</b>; Null_Window : <b>constant</b> Window; <b>type</b> <FONT COLOR=red><A NAME="60_9">Line_Position</A></FONT> <b>is</b> <b>new</b> Natural; <FONT COLOR=green><EM>-- line coordinate</EM></FONT> <b>type</b> Column_Position <b>is</b> <b>new</b> Natural; <FONT COLOR=green><EM>-- column coordinate</EM></FONT> <b>subtype</b> Line_Count <b>is</b> Line_Position <b>range</b> 1 .. Line_Position'Last; <FONT COLOR=green><EM>-- Type to count lines. We do not allow null windows, so must be positive</EM></FONT> <b>subtype</b> Column_Count <b>is</b> Column_Position <b>range</b> 1 .. Column_Position'Last; <FONT COLOR=green><EM>-- Type to count columns. We do not allow null windows, so must be positive</EM></FONT> <b>type</b> Key_Code <b>is</b> <b>new</b> Natural; <FONT COLOR=green><EM>-- That is anything including real characters, special keys and logical</EM></FONT> <FONT COLOR=green><EM>-- request codes.</EM></FONT> <b>subtype</b> Real_Key_Code <b>is</b> Key_Code <b>range</b> 0 .. 8#777#; <FONT COLOR=green><EM>-- This are the codes that potentially represent a real keystroke.</EM></FONT> <FONT COLOR=green><EM>-- Not all codes may be possible on a specific terminal. To check the</EM></FONT> <FONT COLOR=green><EM>-- availability of a special key, the Has_Key function is provided.</EM></FONT> <b>subtype</b> Special_Key_Code <b>is</b> Real_Key_Code <b>range</b> 8#400# .. Real_Key_Code'Last; <FONT COLOR=green><EM>-- Type for a function- or special key number</EM></FONT> <b>subtype</b> Normal_Key_Code <b>is</b> Real_Key_Code <b>range</b> Character'Pos (Character'First) .. Character'Pos (Character'Last); <FONT COLOR=green><EM>-- This are the codes for regular (incl. non-graphical) characters.</EM></FONT> <FONT COLOR=green><EM>-- Constants for function- and special keys</EM></FONT> <FONT COLOR=green><EM>--</EM></FONT> <FONT COLOR=red><A NAME="87_4">Key_None</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#400#; <FONT COLOR=red><A NAME="88_4">Key_Code_Yes</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#400#; <FONT COLOR=red><A NAME="89_4">Key_Min</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#401#; <FONT COLOR=red><A NAME="90_4">Key_Break</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#401#; <FONT COLOR=red><A NAME="91_4">Key_Cursor_Down</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#402#; <FONT COLOR=red><A NAME="92_4">Key_Cursor_Up</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#403#; <FONT COLOR=red><A NAME="93_4">Key_Cursor_Left</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#404#; <FONT COLOR=red><A NAME="94_4">Key_Cursor_Right</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#405#; <FONT COLOR=red><A NAME="95_4">Key_Home</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#406#; <FONT COLOR=red><A NAME="96_4">Key_Backspace</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#407#; <FONT COLOR=red><A NAME="97_4">Key_F0</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#410#; <FONT COLOR=red><A NAME="98_4">Key_F1</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#411#; <FONT COLOR=red><A NAME="99_4">Key_F2</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#412#; <FONT COLOR=red><A NAME="100_4">Key_F3</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#413#; <FONT COLOR=red><A NAME="101_4">Key_F4</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#414#; <FONT COLOR=red><A NAME="102_4">Key_F5</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#415#; <FONT COLOR=red><A NAME="103_4">Key_F6</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#416#; <FONT COLOR=red><A NAME="104_4">Key_F7</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#417#; <FONT COLOR=red><A NAME="105_4">Key_F8</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#420#; <FONT COLOR=red><A NAME="106_4">Key_F9</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#421#; <FONT COLOR=red><A NAME="107_4">Key_F10</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#422#; <FONT COLOR=red><A NAME="108_4">Key_F11</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#423#; <FONT COLOR=red><A NAME="109_4">Key_F12</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#424#; <FONT COLOR=red><A NAME="110_4">Key_F13</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#425#; <FONT COLOR=red><A NAME="111_4">Key_F14</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#426#; <FONT COLOR=red><A NAME="112_4">Key_F15</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#427#; <FONT COLOR=red><A NAME="113_4">Key_F16</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#430#; <FONT COLOR=red><A NAME="114_4">Key_F17</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#431#; <FONT COLOR=red><A NAME="115_4">Key_F18</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#432#; <FONT COLOR=red><A NAME="116_4">Key_F19</A></FONT> : <b>constant</b> <A HREF="terminal_interface-curses__ads.htm#76_12">Special_Key_Code</A> := 8#433#;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -