X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=doc%2Fhtml%2Fada%2Fterminal_interface-curses__ads.htm;h=cedb6ee6111234d5e698331897ebf4edf97945d2;hb=ca5fdd32fd43d84fe3d720cd5c07fba28fc506a4;hp=b45b93c8bbea2112c675467cd9039a15a9816f3d;hpb=a8987e73ec254703634802b4f7ee30d3a485524d;p=ncurses.git diff --git a/doc/html/ada/terminal_interface-curses__ads.htm b/doc/html/ada/terminal_interface-curses__ads.htm index b45b93c8..cedb6ee6 100644 --- a/doc/html/ada/terminal_interface-curses__ads.htm +++ b/doc/html/ada/terminal_interface-curses__ads.htm @@ -1,3 +1,4 @@ + terminal_interface-curses.ads

File : terminal_interface-curses.ads


@@ -12,7 +13,7 @@ -- S P E C -- -- -- ------------------------------------------------------------------------------ --- Copyright (c) 1998 Free Software Foundation, Inc. -- +-- Copyright (c) 1998-2004,2006 Free Software Foundation, Inc. -- -- -- -- Permission is hereby granted, free of charge, to any person obtaining a -- -- copy of this software and associated documentation files (the -- @@ -40,28 +41,29 @@ ------------------------------------------------------------------------------ -- Author: Juergen Pfeifer, 1996 -- Version Control: --- @Revision: 1.31 @ +-- @Revision: 1.37 @ +-- @Date: 2006/06/25 14:30:22 @ -- Binding Version 01.00 ------------------------------------------------------------------------------ -- curses binding. -- This module is generated. Please don't change it manually! -- Run the generator instead. -- | -with System.Storage_Elements; +with System.Storage_Elements; with Interfaces.C; -- We need this for some assertions. package Terminal_Interface.Curses is pragma Preelaborate (Terminal_Interface.Curses); pragma Linker_Options ("-lncurses"); - NC_Major_Version : constant := 5; -- Major version of the library - NC_Minor_Version : constant := 3; -- Minor version of the library - NC_Version : constant String := "5.3"; -- Version of library + NC_Major_Version : constant := 5; -- Major version of the library + NC_Minor_Version : constant := 5; -- Minor version of the library + NC_Version : constant String := "5.5"; -- Version of library type Window is private; Null_Window : constant Window; - type Line_Position is new Natural; -- line coordinate + type Line_Position is new Natural; -- line coordinate type Column_Position is new Natural; -- column coordinate subtype Line_Count is Line_Position range 1 .. Line_Position'Last; @@ -69,11 +71,12 @@ subtype Column_Count is Column_Position range 1 .. Column_Position'Last; -- Type to count columns. We do not allow null windows, so must be positive - type Key_Code is new Natural; + type Key_Code is new Integer; -- That is anything including real characters, special keys and logical -- request codes. - subtype Real_Key_Code is Key_Code range 0 .. 8#777#; + -- FIXME: The "-1" should be Curses_Err + subtype Real_Key_Code is Key_Code range -1 .. 8#777#; -- This are the codes that potentially represent a real keystroke. -- Not all codes may be possible on a specific terminal. To check the -- availability of a special key, the Has_Key function is provided. @@ -88,123 +91,123 @@ -- Constants for function- and special keys -- - Key_None : constant Special_Key_Code := 8#400#; - Key_Code_Yes : constant Special_Key_Code := 8#400#; - Key_Min : constant Special_Key_Code := 8#401#; - Key_Break : constant Special_Key_Code := 8#401#; - Key_Cursor_Down : constant Special_Key_Code := 8#402#; - Key_Cursor_Up : constant Special_Key_Code := 8#403#; - Key_Cursor_Left : constant Special_Key_Code := 8#404#; - Key_Cursor_Right : constant Special_Key_Code := 8#405#; - Key_Home : constant Special_Key_Code := 8#406#; - Key_Backspace : constant Special_Key_Code := 8#407#; - Key_F0 : constant Special_Key_Code := 8#410#; - Key_F1 : constant Special_Key_Code := 8#411#; - Key_F2 : constant Special_Key_Code := 8#412#; - Key_F3 : constant Special_Key_Code := 8#413#; - Key_F4 : constant Special_Key_Code := 8#414#; - Key_F5 : constant Special_Key_Code := 8#415#; - Key_F6 : constant Special_Key_Code := 8#416#; - Key_F7 : constant Special_Key_Code := 8#417#; - Key_F8 : constant Special_Key_Code := 8#420#; - Key_F9 : constant Special_Key_Code := 8#421#; - Key_F10 : constant Special_Key_Code := 8#422#; - Key_F11 : constant Special_Key_Code := 8#423#; - Key_F12 : constant Special_Key_Code := 8#424#; - Key_F13 : constant Special_Key_Code := 8#425#; - Key_F14 : constant Special_Key_Code := 8#426#; - Key_F15 : constant Special_Key_Code := 8#427#; - Key_F16 : constant Special_Key_Code := 8#430#; - Key_F17 : constant Special_Key_Code := 8#431#; - Key_F18 : constant Special_Key_Code := 8#432#; - Key_F19 : constant Special_Key_Code := 8#433#; - Key_F20 : constant Special_Key_Code := 8#434#; - Key_F21 : constant Special_Key_Code := 8#435#; - Key_F22 : constant Special_Key_Code := 8#436#; - Key_F23 : constant Special_Key_Code := 8#437#; - Key_F24 : constant Special_Key_Code := 8#440#; - Key_Delete_Line : constant Special_Key_Code := 8#510#; - Key_Insert_Line : constant Special_Key_Code := 8#511#; - Key_Delete_Char : constant Special_Key_Code := 8#512#; - Key_Insert_Char : constant Special_Key_Code := 8#513#; - Key_Exit_Insert_Mode : constant Special_Key_Code := 8#514#; - Key_Clear_Screen : constant Special_Key_Code := 8#515#; - Key_Clear_End_Of_Screen : constant Special_Key_Code := 8#516#; - Key_Clear_End_Of_Line : constant Special_Key_Code := 8#517#; - Key_Scroll_1_Forward : constant Special_Key_Code := 8#520#; - Key_Scroll_1_Backward : constant Special_Key_Code := 8#521#; - Key_Next_Page : constant Special_Key_Code := 8#522#; - Key_Previous_Page : constant Special_Key_Code := 8#523#; - Key_Set_Tab : constant Special_Key_Code := 8#524#; - Key_Clear_Tab : constant Special_Key_Code := 8#525#; - Key_Clear_All_Tabs : constant Special_Key_Code := 8#526#; - Key_Enter_Or_Send : constant Special_Key_Code := 8#527#; - Key_Soft_Reset : constant Special_Key_Code := 8#530#; - Key_Reset : constant Special_Key_Code := 8#531#; - Key_Print : constant Special_Key_Code := 8#532#; - Key_Bottom : constant Special_Key_Code := 8#533#; - Key_Upper_Left_Of_Keypad : constant Special_Key_Code := 8#534#; - Key_Upper_Right_Of_Keypad : constant Special_Key_Code := 8#535#; - Key_Center_Of_Keypad : constant Special_Key_Code := 8#536#; - Key_Lower_Left_Of_Keypad : constant Special_Key_Code := 8#537#; - Key_Lower_Right_Of_Keypad : constant Special_Key_Code := 8#540#; - Key_Back_Tab : constant Special_Key_Code := 8#541#; - Key_Beginning : constant Special_Key_Code := 8#542#; - Key_Cancel : constant Special_Key_Code := 8#543#; - Key_Close : constant Special_Key_Code := 8#544#; - Key_Command : constant Special_Key_Code := 8#545#; - Key_Copy : constant Special_Key_Code := 8#546#; - Key_Create : constant Special_Key_Code := 8#547#; - Key_End : constant Special_Key_Code := 8#550#; - Key_Exit : constant Special_Key_Code := 8#551#; - Key_Find : constant Special_Key_Code := 8#552#; - Key_Help : constant Special_Key_Code := 8#553#; - Key_Mark : constant Special_Key_Code := 8#554#; - Key_Message : constant Special_Key_Code := 8#555#; - Key_Move : constant Special_Key_Code := 8#556#; - Key_Next : constant Special_Key_Code := 8#557#; - Key_Open : constant Special_Key_Code := 8#560#; - Key_Options : constant Special_Key_Code := 8#561#; - Key_Previous : constant Special_Key_Code := 8#562#; - Key_Redo : constant Special_Key_Code := 8#563#; - Key_Reference : constant Special_Key_Code := 8#564#; - Key_Refresh : constant Special_Key_Code := 8#565#; - Key_Replace : constant Special_Key_Code := 8#566#; - Key_Restart : constant Special_Key_Code := 8#567#; - Key_Resume : constant Special_Key_Code := 8#570#; - Key_Save : constant Special_Key_Code := 8#571#; - Key_Shift_Begin : constant Special_Key_Code := 8#572#; - Key_Shift_Cancel : constant Special_Key_Code := 8#573#; - Key_Shift_Command : constant Special_Key_Code := 8#574#; - Key_Shift_Copy : constant Special_Key_Code := 8#575#; - Key_Shift_Create : constant Special_Key_Code := 8#576#; - Key_Shift_Delete_Char : constant Special_Key_Code := 8#577#; - Key_Shift_Delete_Line : constant Special_Key_Code := 8#600#; - Key_Select : constant Special_Key_Code := 8#601#; - Key_Shift_End : constant Special_Key_Code := 8#602#; - Key_Shift_Clear_End_Of_Line : constant Special_Key_Code := 8#603#; - Key_Shift_Exit : constant Special_Key_Code := 8#604#; - Key_Shift_Find : constant Special_Key_Code := 8#605#; - Key_Shift_Help : constant Special_Key_Code := 8#606#; - Key_Shift_Home : constant Special_Key_Code := 8#607#; - Key_Shift_Insert_Char : constant Special_Key_Code := 8#610#; - Key_Shift_Cursor_Left : constant Special_Key_Code := 8#611#; - Key_Shift_Message : constant Special_Key_Code := 8#612#; - Key_Shift_Move : constant Special_Key_Code := 8#613#; - Key_Shift_Next_Page : constant Special_Key_Code := 8#614#; - Key_Shift_Options : constant Special_Key_Code := 8#615#; - Key_Shift_Previous_Page : constant Special_Key_Code := 8#616#; - Key_Shift_Print : constant Special_Key_Code := 8#617#; - Key_Shift_Redo : constant Special_Key_Code := 8#620#; - Key_Shift_Replace : constant Special_Key_Code := 8#621#; - Key_Shift_Cursor_Right : constant Special_Key_Code := 8#622#; - Key_Shift_Resume : constant Special_Key_Code := 8#623#; - Key_Shift_Save : constant Special_Key_Code := 8#624#; - Key_Shift_Suspend : constant Special_Key_Code := 8#625#; - Key_Shift_Undo : constant Special_Key_Code := 8#626#; - Key_Suspend : constant Special_Key_Code := 8#627#; - Key_Undo : constant Special_Key_Code := 8#630#; - Key_Mouse : constant Special_Key_Code := 8#631#; + Key_None : constant Special_Key_Code := 8#400#; + Key_Code_Yes : constant Special_Key_Code := 8#400#; + Key_Min : constant Special_Key_Code := 8#401#; + Key_Break : constant Special_Key_Code := 8#401#; + Key_Cursor_Down : constant Special_Key_Code := 8#402#; + Key_Cursor_Up : constant Special_Key_Code := 8#403#; + Key_Cursor_Left : constant Special_Key_Code := 8#404#; + Key_Cursor_Right : constant Special_Key_Code := 8#405#; + Key_Home : constant Special_Key_Code := 8#406#; + Key_Backspace : constant Special_Key_Code := 8#407#; + Key_F0 : constant Special_Key_Code := 8#410#; + Key_F1 : constant Special_Key_Code := 8#411#; + Key_F2 : constant Special_Key_Code := 8#412#; + Key_F3 : constant Special_Key_Code := 8#413#; + Key_F4 : constant Special_Key_Code := 8#414#; + Key_F5 : constant Special_Key_Code := 8#415#; + Key_F6 : constant Special_Key_Code := 8#416#; + Key_F7 : constant Special_Key_Code := 8#417#; + Key_F8 : constant Special_Key_Code := 8#420#; + Key_F9 : constant Special_Key_Code := 8#421#; + Key_F10 : constant Special_Key_Code := 8#422#; + Key_F11 : constant Special_Key_Code := 8#423#; + Key_F12 : constant Special_Key_Code := 8#424#; + Key_F13 : constant Special_Key_Code := 8#425#; + Key_F14 : constant Special_Key_Code := 8#426#; + Key_F15 : constant Special_Key_Code := 8#427#; + Key_F16 : constant Special_Key_Code := 8#430#; + Key_F17 : constant Special_Key_Code := 8#431#; + Key_F18 : constant Special_Key_Code := 8#432#; + Key_F19 : constant Special_Key_Code := 8#433#; + Key_F20 : constant Special_Key_Code := 8#434#; + Key_F21 : constant Special_Key_Code := 8#435#; + Key_F22 : constant Special_Key_Code := 8#436#; + Key_F23 : constant Special_Key_Code := 8#437#; + Key_F24 : constant Special_Key_Code := 8#440#; + Key_Delete_Line : constant Special_Key_Code := 8#510#; + Key_Insert_Line : constant Special_Key_Code := 8#511#; + Key_Delete_Char : constant Special_Key_Code := 8#512#; + Key_Insert_Char : constant Special_Key_Code := 8#513#; + Key_Exit_Insert_Mode : constant Special_Key_Code := 8#514#; + Key_Clear_Screen : constant Special_Key_Code := 8#515#; + Key_Clear_End_Of_Screen : constant Special_Key_Code := 8#516#; + Key_Clear_End_Of_Line : constant Special_Key_Code := 8#517#; + Key_Scroll_1_Forward : constant Special_Key_Code := 8#520#; + Key_Scroll_1_Backward : constant Special_Key_Code := 8#521#; + Key_Next_Page : constant Special_Key_Code := 8#522#; + Key_Previous_Page : constant Special_Key_Code := 8#523#; + Key_Set_Tab : constant Special_Key_Code := 8#524#; + Key_Clear_Tab : constant Special_Key_Code := 8#525#; + Key_Clear_All_Tabs : constant Special_Key_Code := 8#526#; + Key_Enter_Or_Send : constant Special_Key_Code := 8#527#; + Key_Soft_Reset : constant Special_Key_Code := 8#530#; + Key_Reset : constant Special_Key_Code := 8#531#; + Key_Print : constant Special_Key_Code := 8#532#; + Key_Bottom : constant Special_Key_Code := 8#533#; + Key_Upper_Left_Of_Keypad : constant Special_Key_Code := 8#534#; + Key_Upper_Right_Of_Keypad : constant Special_Key_Code := 8#535#; + Key_Center_Of_Keypad : constant Special_Key_Code := 8#536#; + Key_Lower_Left_Of_Keypad : constant Special_Key_Code := 8#537#; + Key_Lower_Right_Of_Keypad : constant Special_Key_Code := 8#540#; + Key_Back_Tab : constant Special_Key_Code := 8#541#; + Key_Beginning : constant Special_Key_Code := 8#542#; + Key_Cancel : constant Special_Key_Code := 8#543#; + Key_Close : constant Special_Key_Code := 8#544#; + Key_Command : constant Special_Key_Code := 8#545#; + Key_Copy : constant Special_Key_Code := 8#546#; + Key_Create : constant Special_Key_Code := 8#547#; + Key_End : constant Special_Key_Code := 8#550#; + Key_Exit : constant Special_Key_Code := 8#551#; + Key_Find : constant Special_Key_Code := 8#552#; + Key_Help : constant Special_Key_Code := 8#553#; + Key_Mark : constant Special_Key_Code := 8#554#; + Key_Message : constant Special_Key_Code := 8#555#; + Key_Move : constant Special_Key_Code := 8#556#; + Key_Next : constant Special_Key_Code := 8#557#; + Key_Open : constant Special_Key_Code := 8#560#; + Key_Options : constant Special_Key_Code := 8#561#; + Key_Previous : constant Special_Key_Code := 8#562#; + Key_Redo : constant Special_Key_Code := 8#563#; + Key_Reference : constant Special_Key_Code := 8#564#; + Key_Refresh : constant Special_Key_Code := 8#565#; + Key_Replace : constant Special_Key_Code := 8#566#; + Key_Restart : constant Special_Key_Code := 8#567#; + Key_Resume : constant Special_Key_Code := 8#570#; + Key_Save : constant Special_Key_Code := 8#571#; + Key_Shift_Begin : constant Special_Key_Code := 8#572#; + Key_Shift_Cancel : constant Special_Key_Code := 8#573#; + Key_Shift_Command : constant Special_Key_Code := 8#574#; + Key_Shift_Copy : constant Special_Key_Code := 8#575#; + Key_Shift_Create : constant Special_Key_Code := 8#576#; + Key_Shift_Delete_Char : constant Special_Key_Code := 8#577#; + Key_Shift_Delete_Line : constant Special_Key_Code := 8#600#; + Key_Select : constant Special_Key_Code := 8#601#; + Key_Shift_End : constant Special_Key_Code := 8#602#; + Key_Shift_Clear_End_Of_Line : constant Special_Key_Code := 8#603#; + Key_Shift_Exit : constant Special_Key_Code := 8#604#; + Key_Shift_Find : constant Special_Key_Code := 8#605#; + Key_Shift_Help : constant Special_Key_Code := 8#606#; + Key_Shift_Home : constant Special_Key_Code := 8#607#; + Key_Shift_Insert_Char : constant Special_Key_Code := 8#610#; + Key_Shift_Cursor_Left : constant Special_Key_Code := 8#611#; + Key_Shift_Message : constant Special_Key_Code := 8#612#; + Key_Shift_Move : constant Special_Key_Code := 8#613#; + Key_Shift_Next_Page : constant Special_Key_Code := 8#614#; + Key_Shift_Options : constant Special_Key_Code := 8#615#; + Key_Shift_Previous_Page : constant Special_Key_Code := 8#616#; + Key_Shift_Print : constant Special_Key_Code := 8#617#; + Key_Shift_Redo : constant Special_Key_Code := 8#620#; + Key_Shift_Replace : constant Special_Key_Code := 8#621#; + Key_Shift_Cursor_Right : constant Special_Key_Code := 8#622#; + Key_Shift_Resume : constant Special_Key_Code := 8#623#; + Key_Shift_Save : constant Special_Key_Code := 8#624#; + Key_Shift_Suspend : constant Special_Key_Code := 8#625#; + Key_Shift_Undo : constant Special_Key_Code := 8#626#; + Key_Suspend : constant Special_Key_Code := 8#627#; + Key_Undo : constant Special_Key_Code := 8#630#; + Key_Mouse : constant Special_Key_Code := 8#631#; Key_Resize : constant Special_Key_Code := 8#632#; Key_Max : constant Special_Key_Code @@ -218,114 +221,113 @@ -- For those who like to use the original key names we produce them were -- they differ from the original. Please note that they may differ in -- lower/upper case. - KEY_DOWN : Special_Key_Code renames Key_Cursor_Down; - KEY_UP : Special_Key_Code renames Key_Cursor_Up; - KEY_LEFT : Special_Key_Code renames Key_Cursor_Left; - KEY_RIGHT : Special_Key_Code renames Key_Cursor_Right; - KEY_DL : Special_Key_Code renames Key_Delete_Line; - KEY_IL : Special_Key_Code renames Key_Insert_Line; - KEY_DC : Special_Key_Code renames Key_Delete_Char; - KEY_IC : Special_Key_Code renames Key_Insert_Char; - KEY_EIC : Special_Key_Code renames Key_Exit_Insert_Mode; - KEY_CLEAR : Special_Key_Code renames Key_Clear_Screen; - KEY_EOS : Special_Key_Code renames Key_Clear_End_Of_Screen; - KEY_EOL : Special_Key_Code renames Key_Clear_End_Of_Line; - KEY_SF : Special_Key_Code renames Key_Scroll_1_Forward; - KEY_SR : Special_Key_Code renames Key_Scroll_1_Backward; - KEY_NPAGE : Special_Key_Code renames Key_Next_Page; - KEY_PPAGE : Special_Key_Code renames Key_Previous_Page; - KEY_STAB : Special_Key_Code renames Key_Set_Tab; - KEY_CTAB : Special_Key_Code renames Key_Clear_Tab; - KEY_CATAB : Special_Key_Code renames Key_Clear_All_Tabs; - KEY_ENTER : Special_Key_Code renames Key_Enter_Or_Send; - KEY_SRESET : Special_Key_Code renames Key_Soft_Reset; - KEY_LL : Special_Key_Code renames Key_Bottom; - KEY_A1 : Special_Key_Code renames Key_Upper_Left_Of_Keypad; - KEY_A3 : Special_Key_Code renames Key_Upper_Right_Of_Keypad; - KEY_B2 : Special_Key_Code renames Key_Center_Of_Keypad; - KEY_C1 : Special_Key_Code renames Key_Lower_Left_Of_Keypad; - KEY_C3 : Special_Key_Code renames Key_Lower_Right_Of_Keypad; - KEY_BTAB : Special_Key_Code renames Key_Back_Tab; - KEY_BEG : Special_Key_Code renames Key_Beginning; - KEY_SBEG : Special_Key_Code renames Key_Shift_Begin; - KEY_SCANCEL : Special_Key_Code renames Key_Shift_Cancel; - KEY_SCOMMAND : Special_Key_Code renames Key_Shift_Command; - KEY_SCOPY : Special_Key_Code renames Key_Shift_Copy; - KEY_SCREATE : Special_Key_Code renames Key_Shift_Create; - KEY_SDC : Special_Key_Code renames Key_Shift_Delete_Char; - KEY_SDL : Special_Key_Code renames Key_Shift_Delete_Line; - KEY_SEND : Special_Key_Code renames Key_Shift_End; - KEY_SEOL : Special_Key_Code renames Key_Shift_Clear_End_Of_Line; - KEY_SEXIT : Special_Key_Code renames Key_Shift_Exit; - KEY_SFIND : Special_Key_Code renames Key_Shift_Find; - KEY_SHELP : Special_Key_Code renames Key_Shift_Help; - KEY_SHOME : Special_Key_Code renames Key_Shift_Home; - KEY_SIC : Special_Key_Code renames Key_Shift_Insert_Char; - KEY_SLEFT : Special_Key_Code renames Key_Shift_Cursor_Left; - KEY_SMESSAGE : Special_Key_Code renames Key_Shift_Message; - KEY_SMOVE : Special_Key_Code renames Key_Shift_Move; - KEY_SNEXT : Special_Key_Code renames Key_Shift_Next_Page; - KEY_SOPTIONS : Special_Key_Code renames Key_Shift_Options; - KEY_SPREVIOUS : Special_Key_Code renames Key_Shift_Previous_Page; - KEY_SPRINT : Special_Key_Code renames Key_Shift_Print; - KEY_SREDO : Special_Key_Code renames Key_Shift_Redo; - KEY_SREPLACE : Special_Key_Code renames Key_Shift_Replace; - KEY_SRIGHT : Special_Key_Code renames Key_Shift_Cursor_Right; - KEY_SRSUME : Special_Key_Code renames Key_Shift_Resume; - KEY_SSAVE : Special_Key_Code renames Key_Shift_Save; - KEY_SSUSPEND : Special_Key_Code renames Key_Shift_Suspend; + KEY_DOWN : Special_Key_Code renames Key_Cursor_Down; + KEY_UP : Special_Key_Code renames Key_Cursor_Up; + KEY_LEFT : Special_Key_Code renames Key_Cursor_Left; + KEY_RIGHT : Special_Key_Code renames Key_Cursor_Right; + KEY_DL : Special_Key_Code renames Key_Delete_Line; + KEY_IL : Special_Key_Code renames Key_Insert_Line; + KEY_DC : Special_Key_Code renames Key_Delete_Char; + KEY_IC : Special_Key_Code renames Key_Insert_Char; + KEY_EIC : Special_Key_Code renames Key_Exit_Insert_Mode; + KEY_CLEAR : Special_Key_Code renames Key_Clear_Screen; + KEY_EOS : Special_Key_Code renames Key_Clear_End_Of_Screen; + KEY_EOL : Special_Key_Code renames Key_Clear_End_Of_Line; + KEY_SF : Special_Key_Code renames Key_Scroll_1_Forward; + KEY_SR : Special_Key_Code renames Key_Scroll_1_Backward; + KEY_NPAGE : Special_Key_Code renames Key_Next_Page; + KEY_PPAGE : Special_Key_Code renames Key_Previous_Page; + KEY_STAB : Special_Key_Code renames Key_Set_Tab; + KEY_CTAB : Special_Key_Code renames Key_Clear_Tab; + KEY_CATAB : Special_Key_Code renames Key_Clear_All_Tabs; + KEY_ENTER : Special_Key_Code renames Key_Enter_Or_Send; + KEY_SRESET : Special_Key_Code renames Key_Soft_Reset; + KEY_LL : Special_Key_Code renames Key_Bottom; + KEY_A1 : Special_Key_Code renames Key_Upper_Left_Of_Keypad; + KEY_A3 : Special_Key_Code renames Key_Upper_Right_Of_Keypad; + KEY_B2 : Special_Key_Code renames Key_Center_Of_Keypad; + KEY_C1 : Special_Key_Code renames Key_Lower_Left_Of_Keypad; + KEY_C3 : Special_Key_Code renames Key_Lower_Right_Of_Keypad; + KEY_BTAB : Special_Key_Code renames Key_Back_Tab; + KEY_BEG : Special_Key_Code renames Key_Beginning; + KEY_SBEG : Special_Key_Code renames Key_Shift_Begin; + KEY_SCANCEL : Special_Key_Code renames Key_Shift_Cancel; + KEY_SCOMMAND : Special_Key_Code renames Key_Shift_Command; + KEY_SCOPY : Special_Key_Code renames Key_Shift_Copy; + KEY_SCREATE : Special_Key_Code renames Key_Shift_Create; + KEY_SDC : Special_Key_Code renames Key_Shift_Delete_Char; + KEY_SDL : Special_Key_Code renames Key_Shift_Delete_Line; + KEY_SEND : Special_Key_Code renames Key_Shift_End; + KEY_SEOL : Special_Key_Code renames Key_Shift_Clear_End_Of_Line; + KEY_SEXIT : Special_Key_Code renames Key_Shift_Exit; + KEY_SFIND : Special_Key_Code renames Key_Shift_Find; + KEY_SHELP : Special_Key_Code renames Key_Shift_Help; + KEY_SHOME : Special_Key_Code renames Key_Shift_Home; + KEY_SIC : Special_Key_Code renames Key_Shift_Insert_Char; + KEY_SLEFT : Special_Key_Code renames Key_Shift_Cursor_Left; + KEY_SMESSAGE : Special_Key_Code renames Key_Shift_Message; + KEY_SMOVE : Special_Key_Code renames Key_Shift_Move; + KEY_SNEXT : Special_Key_Code renames Key_Shift_Next_Page; + KEY_SOPTIONS : Special_Key_Code renames Key_Shift_Options; + KEY_SPREVIOUS : Special_Key_Code renames Key_Shift_Previous_Page; + KEY_SPRINT : Special_Key_Code renames Key_Shift_Print; + KEY_SREDO : Special_Key_Code renames Key_Shift_Redo; + KEY_SREPLACE : Special_Key_Code renames Key_Shift_Replace; + KEY_SRIGHT : Special_Key_Code renames Key_Shift_Cursor_Right; + KEY_SRSUME : Special_Key_Code renames Key_Shift_Resume; + KEY_SSAVE : Special_Key_Code renames Key_Shift_Save; + KEY_SSUSPEND : Special_Key_Code renames Key_Shift_Suspend; KEY_SUNDO : Special_Key_Code renames Key_Shift_Undo; ------------------------------------------------------------------------------ - type Color_Number is range -1 .. Integer (Interfaces.C.short'Last); + type Color_Number is range -1 .. Integer (Interfaces.C.short'Last); for Color_Number'Size use Interfaces.C.short'Size; -- (n)curses uses a short for the color index -- The model is, that a Color_Number is an index into an array of -- (potentially) definable colors. Some of those indices are -- predefined (see below), although they may not really exist. - Default_Color : constant Color_Number := -1; - Black : constant Color_Number := 0; - Red : constant Color_Number := 1; - Green : constant Color_Number := 2; - Yellow : constant Color_Number := 3; - Blue : constant Color_Number := 4; - Magenta : constant Color_Number := 5; - Cyan : constant Color_Number := 6; + Default_Color : constant Color_Number := -1; + Black : constant Color_Number := 0; + Red : constant Color_Number := 1; + Green : constant Color_Number := 2; + Yellow : constant Color_Number := 3; + Blue : constant Color_Number := 4; + Magenta : constant Color_Number := 5; + Cyan : constant Color_Number := 6; White : constant Color_Number := 7; - type RGB_Value is range 0 .. Integer (Interfaces.C.short'Last); + type RGB_Value is range 0 .. Integer (Interfaces.C.short'Last); for RGB_Value'Size use Interfaces.C.short'Size; -- Some system may allow to redefine a color by setting RGB values. - type Color_Pair is range 0 .. 255; + type Color_Pair is range 0 .. 255; for Color_Pair'Size use 8; subtype Redefinable_Color_Pair is Color_Pair range 1 .. 255; -- (n)curses reserves 1 Byte for the color-pair number. Color Pair 0 - -- is fixed (Black & White). A color pair is simply a combination of + -- is fixed (Black & White). A color pair is simply a combination of -- two colors described by Color_Numbers, one for the foreground and -- the other for the background type Character_Attribute_Set is record - Stand_Out : Boolean; - Under_Line : Boolean; - Reverse_Video : Boolean; - Blink : Boolean; - Dim_Character : Boolean; - Bold_Character : Boolean; - Alternate_Character_Set : Boolean; - Invisible_Character : Boolean; - Protected_Character : Boolean; - Horizontal : Boolean; - Left : Boolean; - Low : Boolean; - Right : Boolean; - Top : Boolean; + Stand_Out : Boolean; + Under_Line : Boolean; + Reverse_Video : Boolean; + Blink : Boolean; + Dim_Character : Boolean; + Bold_Character : Boolean; + Alternate_Character_Set : Boolean; + Invisible_Character : Boolean; + Protected_Character : Boolean; + Horizontal : Boolean; + Left : Boolean; + Low : Boolean; + Right : Boolean; + Top : Boolean; Vertical : Boolean; - end record; - pragma Pack (Character_Attribute_Set); + end record; pragma Convention (C, Character_Attribute_Set); for Character_Attribute_Set use @@ -355,9 +357,9 @@ type Attributed_Character is record - Attr : Character_Attribute_Set; - Color : Color_Pair; - Ch : Character; + Attr : Character_Attribute_Set; + Color : Color_Pair; + Ch : Character; end record; pragma Convention (C, Attributed_Character); -- This is the counterpart for the chtype in C. @@ -373,8 +375,8 @@ -- different on your system. Default_Character : constant Attributed_Character - := (Ch => Character'First, - Color => Color_Pair'First, + := (Ch => Character'First, + Color => Color_Pair'First, Attr => (others => False)); -- preelaboratable Normal_Video type Attributed_String is array (Positive range <>) of Attributed_Character; @@ -384,25 +386,25 @@ ------------------ -- Exceptions -- ------------------ - Curses_Exception : exception; + Curses_Exception : exception; Wrong_Curses_Version : exception; -- Those exceptions are raised by the ETI (Extended Terminal Interface) -- subpackets for Menu and Forms handling. -- - Eti_System_Error : exception; - Eti_Bad_Argument : exception; - Eti_Posted : exception; - Eti_Connected : exception; - Eti_Bad_State : exception; - Eti_No_Room : exception; - Eti_Not_Posted : exception; - Eti_Unknown_Command : exception; - Eti_No_Match : exception; - Eti_Not_Selectable : exception; - Eti_Not_Connected : exception; - Eti_Request_Denied : exception; - Eti_Invalid_Field : exception; + Eti_System_Error : exception; + Eti_Bad_Argument : exception; + Eti_Posted : exception; + Eti_Connected : exception; + Eti_Bad_State : exception; + Eti_No_Room : exception; + Eti_Not_Posted : exception; + Eti_Unknown_Command : exception; + Eti_No_Match : exception; + Eti_Not_Selectable : exception; + Eti_Not_Connected : exception; + Eti_Request_Denied : exception; + Eti_Invalid_Field : exception; Eti_Current : exception; -------------------------------------------------------------------------- @@ -413,7 +415,7 @@ -- this is to use functions. -------------------------------------------------------------------------- - function Lines return Line_Count; + function Lines return Line_Count; pragma Inline (Lines); function Columns return Column_Count; @@ -437,37 +439,37 @@ -- You must use this constants as indices into the ACS_Map array -- to get the corresponding attributed character at runtime. -- - ACS_Upper_Left_Corner : constant Character := 'l'; - ACS_Lower_Left_Corner : constant Character := 'm'; - ACS_Upper_Right_Corner : constant Character := 'k'; - ACS_Lower_Right_Corner : constant Character := 'j'; - ACS_Left_Tee : constant Character := 't'; - ACS_Right_Tee : constant Character := 'u'; - ACS_Bottom_Tee : constant Character := 'v'; - ACS_Top_Tee : constant Character := 'w'; - ACS_Horizontal_Line : constant Character := 'q'; - ACS_Vertical_Line : constant Character := 'x'; - ACS_Plus_Symbol : constant Character := 'n'; - ACS_Scan_Line_1 : constant Character := 'o'; - ACS_Scan_Line_9 : constant Character := 's'; - ACS_Diamond : constant Character := Character'Val (96); - ACS_Checker_Board : constant Character := 'a'; - ACS_Degree : constant Character := 'f'; - ACS_Plus_Minus : constant Character := 'g'; - ACS_Bullet : constant Character := '~'; - ACS_Left_Arrow : constant Character := ','; - ACS_Right_Arrow : constant Character := '+'; - ACS_Down_Arrow : constant Character := '.'; - ACS_Up_Arrow : constant Character := '-'; - ACS_Board_Of_Squares : constant Character := 'h'; - ACS_Lantern : constant Character := 'i'; - ACS_Solid_Block : constant Character := '0'; - ACS_Scan_Line_3 : constant Character := 'p'; - ACS_Scan_Line_7 : constant Character := 'r'; - ACS_Less_Or_Equal : constant Character := 'y'; - ACS_Greater_Or_Equal : constant Character := 'z'; - ACS_PI : constant Character := '{'; - ACS_Not_Equal : constant Character := '|'; + ACS_Upper_Left_Corner : constant Character := 'l'; + ACS_Lower_Left_Corner : constant Character := 'm'; + ACS_Upper_Right_Corner : constant Character := 'k'; + ACS_Lower_Right_Corner : constant Character := 'j'; + ACS_Left_Tee : constant Character := 't'; + ACS_Right_Tee : constant Character := 'u'; + ACS_Bottom_Tee : constant Character := 'v'; + ACS_Top_Tee : constant Character := 'w'; + ACS_Horizontal_Line : constant Character := 'q'; + ACS_Vertical_Line : constant Character := 'x'; + ACS_Plus_Symbol : constant Character := 'n'; + ACS_Scan_Line_1 : constant Character := 'o'; + ACS_Scan_Line_9 : constant Character := 's'; + ACS_Diamond : constant Character := Character'Val (96); + ACS_Checker_Board : constant Character := 'a'; + ACS_Degree : constant Character := 'f'; + ACS_Plus_Minus : constant Character := 'g'; + ACS_Bullet : constant Character := '~'; + ACS_Left_Arrow : constant Character := ','; + ACS_Right_Arrow : constant Character := '+'; + ACS_Down_Arrow : constant Character := '.'; + ACS_Up_Arrow : constant Character := '-'; + ACS_Board_Of_Squares : constant Character := 'h'; + ACS_Lantern : constant Character := 'i'; + ACS_Solid_Block : constant Character := '0'; + ACS_Scan_Line_3 : constant Character := 'p'; + ACS_Scan_Line_7 : constant Character := 'r'; + ACS_Less_Or_Equal : constant Character := 'y'; + ACS_Greater_Or_Equal : constant Character := 'z'; + ACS_PI : constant Character := '{'; + ACS_Not_Equal : constant Character := '|'; ACS_Sterling : constant Character := '}'; -- |===================================================================== @@ -486,15 +488,15 @@ -- #1A NAME="AFU_3"#2| procedure Init_Windows renames Init_Screen; -- AKA: initscr() - pragma Inline (Init_Screen); - pragma Inline (Init_Windows); + pragma Inline (Init_Screen); + -- pragma Inline (Init_Windows); -- #1A NAME="AFU_4"#2| procedure End_Windows; -- AKA: endwin() procedure End_Screen renames End_Windows; - pragma Inline (End_Windows); - pragma Inline (End_Screen); + pragma Inline (End_Windows); + -- pragma Inline (End_Screen); -- #1A NAME="AFU_5"#2| function Is_End_Window return Boolean; @@ -506,8 +508,8 @@ -- |===================================================================== -- #1A NAME="AFU_6"#2| - procedure Move_Cursor (Win : in Window := Standard_Window; - Line : in Line_Position; + procedure Move_Cursor (Win : in Window := Standard_Window; + Line : in Line_Position; Column : in Column_Position); -- AKA: wmove() -- AKA: move() @@ -518,42 +520,42 @@ -- |===================================================================== -- #1A NAME="AFU_7"#2| - procedure Add (Win : in Window := Standard_Window; + procedure Add (Win : in Window := Standard_Window; Ch : in Attributed_Character); -- AKA: waddch() -- AKA: addch() - procedure Add (Win : in Window := Standard_Window; + procedure Add (Win : in Window := Standard_Window; Ch : in Character); -- Add a single character at the current logical cursor position to -- the window. Use the current windows attributes. -- #1A NAME="AFU_8"#2| procedure Add - (Win : in Window := Standard_Window; - Line : in Line_Position; - Column : in Column_Position; + (Win : in Window := Standard_Window; + Line : in Line_Position; + Column : in Column_Position; Ch : in Attributed_Character); -- AKA: mvwaddch() -- AKA: mvaddch() procedure Add - (Win : in Window := Standard_Window; - Line : in Line_Position; - Column : in Column_Position; + (Win : in Window := Standard_Window; + Line : in Line_Position; + Column : in Column_Position; Ch : in Character); -- Move to the position and add a single character into the window -- There are more Add routines, so the Inline pragma follows later -- #1A NAME="AFU_9"#2| procedure Add_With_Immediate_Echo - (Win : in Window := Standard_Window; + (Win : in Window := Standard_Window; Ch : in Attributed_Character); -- AKA: wechochar() -- AKA: echochar() procedure Add_With_Immediate_Echo - (Win : in Window := Standard_Window; + (Win : in Window := Standard_Window; Ch : in Character); -- Add a character and do an immediate refresh of the screen. pragma Inline (Add_With_Immediate_Echo); @@ -565,9 +567,9 @@ -- #1A NAME="AFU_10"#2| function Create - (Number_Of_Lines : Line_Count; - Number_Of_Columns : Column_Count; - First_Line_Position : Line_Position; + (Number_Of_Lines : Line_Count; + Number_Of_Columns : Column_Count; + First_Line_Position : Line_Position; First_Column_Position : Column_Position) return Window; -- Not Implemented: Default Number_Of_Lines, Number_Of_Columns -- the C version lets them be 0, see the man page. @@ -575,12 +577,12 @@ pragma Inline (Create); function New_Window - (Number_Of_Lines : Line_Count; - Number_Of_Columns : Column_Count; - First_Line_Position : Line_Position; + (Number_Of_Lines : Line_Count; + Number_Of_Columns : Column_Count; + First_Line_Position : Line_Position; First_Column_Position : Column_Position) return Window renames Create; - pragma Inline (New_Window); + -- pragma Inline (New_Window); -- #1A NAME="AFU_11"#2| procedure Delete (Win : in out Window); @@ -590,20 +592,20 @@ -- #1A NAME="AFU_12"#2| function Sub_Window - (Win : Window := Standard_Window; - Number_Of_Lines : Line_Count; - Number_Of_Columns : Column_Count; - First_Line_Position : Line_Position; + (Win : Window := Standard_Window; + Number_Of_Lines : Line_Count; + Number_Of_Columns : Column_Count; + First_Line_Position : Line_Position; First_Column_Position : Column_Position) return Window; -- AKA: subwin() pragma Inline (Sub_Window); -- #1A NAME="AFU_13"#2| function Derived_Window - (Win : Window := Standard_Window; - Number_Of_Lines : Line_Count; - Number_Of_Columns : Column_Count; - First_Line_Position : Line_Position; + (Win : Window := Standard_Window; + Number_Of_Lines : Line_Count; + Number_Of_Columns : Column_Count; + First_Line_Position : Line_Position; First_Column_Position : Column_Position) return Window; -- AKA: derwin() pragma Inline (Derived_Window); @@ -614,15 +616,15 @@ pragma Inline (Duplicate); -- #1A NAME="AFU_15"#2| - procedure Move_Window (Win : in Window; - Line : in Line_Position; + procedure Move_Window (Win : in Window; + Line : in Line_Position; Column : in Column_Position); -- AKA: mvwin() pragma Inline (Move_Window); -- #1A NAME="AFU_16"#2| - procedure Move_Derived_Window (Win : in Window; - Line : in Line_Position; + procedure Move_Derived_Window (Win : in Window; + Line : in Line_Position; Column : in Column_Position); -- AKA: mvderwin() pragma Inline (Move_Derived_Window); @@ -638,7 +640,7 @@ pragma Import (C, Synchronize_Downwards, "wsyncdown"); -- #1A NAME="AFU_19"#2| - procedure Set_Synch_Mode (Win : in Window := Standard_Window; + procedure Set_Synch_Mode (Win : in Window := Standard_Window; Mode : in Boolean := False); -- AKA: syncok() pragma Inline (Set_Synch_Mode); @@ -648,8 +650,8 @@ -- |===================================================================== -- #1A NAME="AFU_20"#2| - procedure Add (Win : in Window := Standard_Window; - Str : in String; + procedure Add (Win : in Window := Standard_Window; + Str : in String; Len : in Integer := -1); -- AKA: waddnstr() -- AKA: waddstr() @@ -657,10 +659,10 @@ -- AKA: addstr() -- #1A NAME="AFU_21"#2| - procedure Add (Win : in Window := Standard_Window; - Line : in Line_Position; - Column : in Column_Position; - Str : in String; + procedure Add (Win : in Window := Standard_Window; + Line : in Line_Position; + Column : in Column_Position; + Str : in String; Len : in Integer := -1); -- AKA: mvwaddnstr() -- AKA: mvwaddstr() @@ -672,8 +674,8 @@ -- |===================================================================== -- #1A NAME="AFU_22"#2| - procedure Add (Win : in Window := Standard_Window; - Str : in Attributed_String; + procedure Add (Win : in Window := Standard_Window; + Str : in Attributed_String; Len : in Integer := -1); -- AKA: waddchnstr() -- AKA: waddchstr() @@ -681,10 +683,10 @@ -- AKA: addchstr() -- #1A NAME="AFU_23"#2| - procedure Add (Win : in Window := Standard_Window; - Line : in Line_Position; - Column : in Column_Position; - Str : in Attributed_String; + procedure Add (Win : in Window := Standard_Window; + Line : in Line_Position; + Column : in Column_Position; + Str : in Attributed_String; Len : in Integer := -1); -- AKA: mvwaddchnstr() -- AKA: mvwaddchstr() @@ -700,14 +702,14 @@ -- #1A NAME="AFU_24"#2| procedure Border - (Win : in Window := Standard_Window; - Left_Side_Symbol : in Attributed_Character := Default_Character; - Right_Side_Symbol : in Attributed_Character := Default_Character; - Top_Side_Symbol : in Attributed_Character := Default_Character; - Bottom_Side_Symbol : in Attributed_Character := Default_Character; - Upper_Left_Corner_Symbol : in Attributed_Character := Default_Character; - Upper_Right_Corner_Symbol : in Attributed_Character := Default_Character; - Lower_Left_Corner_Symbol : in Attributed_Character := Default_Character; + (Win : in Window := Standard_Window; + Left_Side_Symbol : in Attributed_Character := Default_Character; + Right_Side_Symbol : in Attributed_Character := Default_Character; + Top_Side_Symbol : in Attributed_Character := Default_Character; + Bottom_Side_Symbol : in Attributed_Character := Default_Character; + Upper_Left_Corner_Symbol : in Attributed_Character := Default_Character; + Upper_Right_Corner_Symbol : in Attributed_Character := Default_Character; + Lower_Left_Corner_Symbol : in Attributed_Character := Default_Character; Lower_Right_Corner_Symbol : in Attributed_Character := Default_Character ); -- AKA: wborder() @@ -716,16 +718,16 @@ -- #1A NAME="AFU_25"#2| procedure Box - (Win : in Window := Standard_Window; - Vertical_Symbol : in Attributed_Character := Default_Character; + (Win : in Window := Standard_Window; + Vertical_Symbol : in Attributed_Character := Default_Character; Horizontal_Symbol : in Attributed_Character := Default_Character); -- AKA: box() pragma Inline (Box); -- #1A NAME="AFU_26"#2| procedure Horizontal_Line - (Win : in Window := Standard_Window; - Line_Size : in Natural; + (Win : in Window := Standard_Window; + Line_Size : in Natural; Line_Symbol : in Attributed_Character := Default_Character); -- AKA: whline() -- AKA: hline() @@ -733,8 +735,8 @@ -- #1A NAME="AFU_27"#2| procedure Vertical_Line - (Win : in Window := Standard_Window; - Line_Size : in Natural; + (Win : in Window := Standard_Window; + Line_Size : in Natural; Line_Symbol : in Attributed_Character := Default_Character); -- AKA: wvline() -- AKA: vline() @@ -795,15 +797,15 @@ -- PAIR_NUMBER(c) is the same as c.Color -- #1A NAME="AFU_31"#2| - procedure Standout (Win : Window := Standard_Window; + procedure Standout (Win : Window := Standard_Window; On : Boolean := True); -- AKA: wstandout() -- AKA: wstandend() -- #1A NAME="AFU_32"#2| procedure Switch_Character_Attribute - (Win : in Window := Standard_Window; - Attr : in Character_Attribute_Set := Normal_Video; + (Win : in Window := Standard_Window; + Attr : in Character_Attribute_Set := Normal_Video; On : in Boolean := True); -- if False we switch Off. -- Switches those Attributes set to true in the list. -- AKA: wattron() @@ -813,8 +815,8 @@ -- #1A NAME="AFU_33"#2| procedure Set_Character_Attributes - (Win : in Window := Standard_Window; - Attr : in Character_Attribute_Set := Normal_Video; + (Win : in Window := Standard_Window; + Attr : in Character_Attribute_Set := Normal_Video; Color : in Color_Pair := Color_Pair'First); -- AKA: wattrset() -- AKA: attrset() @@ -833,7 +835,7 @@ pragma Inline (Get_Character_Attribute); -- #1A NAME="AFU_36"#2| - procedure Set_Color (Win : in Window := Standard_Window; + procedure Set_Color (Win : in Window := Standard_Window; Pair : in Color_Pair); -- AKA: wcolor_set() -- AKA: color_set() @@ -841,20 +843,20 @@ -- #1A NAME="AFU_37"#2| procedure Change_Attributes - (Win : in Window := Standard_Window; - Count : in Integer := -1; - Attr : in Character_Attribute_Set := Normal_Video; + (Win : in Window := Standard_Window; + Count : in Integer := -1; + Attr : in Character_Attribute_Set := Normal_Video; Color : in Color_Pair := Color_Pair'First); -- AKA: wchgat() -- AKA: chgat() -- #1A NAME="AFU_38"#2| procedure Change_Attributes - (Win : in Window := Standard_Window; - Line : in Line_Position := Line_Position'First; - Column : in Column_Position := Column_Position'First; - Count : in Integer := -1; - Attr : in Character_Attribute_Set := Normal_Video; + (Win : in Window := Standard_Window; + Line : in Line_Position := Line_Position'First; + Column : in Column_Position := Column_Position'First; + Count : in Integer := -1; + Attr : in Character_Attribute_Set := Normal_Video; Color : in Color_Pair := Color_Pair'First); -- AKA: mvwchgat() -- AKA: mvchgat() @@ -899,13 +901,13 @@ pragma Inline (Set_Echo_Mode); -- #1A NAME="AFU_44"#2| - procedure Set_Meta_Mode (Win : in Window := Standard_Window; + procedure Set_Meta_Mode (Win : in Window := Standard_Window; SwitchOn : in Boolean := True); -- AKA: meta() pragma Inline (Set_Meta_Mode); -- #1A NAME="AFU_45"#2| - procedure Set_KeyPad_Mode (Win : in Window := Standard_Window; + procedure Set_KeyPad_Mode (Win : in Window := Standard_Window; SwitchOn : in Boolean := True); -- AKA: keypad() pragma Inline (Set_KeyPad_Mode); @@ -924,14 +926,14 @@ -- #1A NAME="AFU_47"#2| procedure Set_Flush_On_Interrupt_Mode - (Win : in Window := Standard_Window; + (Win : in Window := Standard_Window; Mode : in Boolean := True); -- AKA: intrflush() pragma Inline (Set_Flush_On_Interrupt_Mode); -- #1A NAME="AFU_48"#2| procedure Set_Queue_Interrupt_Mode - (Win : in Window := Standard_Window; + (Win : in Window := Standard_Window; Flush : in Boolean := True); -- AKA: qiflush() -- AKA: noqiflush() @@ -939,7 +941,7 @@ -- #1A NAME="AFU_49"#2| procedure Set_NoDelay_Mode - (Win : in Window := Standard_Window; + (Win : in Window := Standard_Window; Mode : in Boolean := False); -- AKA: nodelay() pragma Inline (Set_NoDelay_Mode); @@ -947,8 +949,8 @@ type Timeout_Mode is (Blocking, Non_Blocking, Delayed); -- #1A NAME="AFU_50"#2| - procedure Set_Timeout_Mode (Win : in Window := Standard_Window; - Mode : in Timeout_Mode; + procedure Set_Timeout_Mode (Win : in Window := Standard_Window; + Mode : in Timeout_Mode; Amount : in Natural); -- in Milliseconds -- AKA: wtimeout() -- AKA: timeout() @@ -960,7 +962,7 @@ -- #1A NAME="AFU_51"#2| procedure Set_Escape_Timer_Mode - (Win : in Window := Standard_Window; + (Win : in Window := Standard_Window; Timer_Off : in Boolean := False); -- AKA: notimeout() pragma Inline (Set_Escape_Timer_Mode); @@ -977,42 +979,42 @@ -- #1A NAME="AFU_53"#2| procedure Clear_On_Next_Update - (Win : in Window := Standard_Window; + (Win : in Window := Standard_Window; Do_Clear : in Boolean := True); -- AKA: clearok() pragma Inline (Clear_On_Next_Update); -- #1A NAME="AFU_54"#2| procedure Use_Insert_Delete_Line - (Win : in Window := Standard_Window; + (Win : in Window := Standard_Window; Do_Idl : in Boolean := True); -- AKA: idlok() pragma Inline (Use_Insert_Delete_Line); -- #1A NAME="AFU_55"#2| procedure Use_Insert_Delete_Character - (Win : in Window := Standard_Window; + (Win : in Window := Standard_Window; Do_Idc : in Boolean := True); -- AKA: idcok() pragma Inline (Use_Insert_Delete_Character); -- #1A NAME="AFU_56"#2| procedure Leave_Cursor_After_Update - (Win : in Window := Standard_Window; + (Win : in Window := Standard_Window; Do_Leave : in Boolean := True); -- AKA: leaveok() pragma Inline (Leave_Cursor_After_Update); -- #1A NAME="AFU_57"#2| procedure Immediate_Update_Mode - (Win : in Window := Standard_Window; + (Win : in Window := Standard_Window; Mode : in Boolean := False); -- AKA: immedok() pragma Inline (Immediate_Update_Mode); -- #1A NAME="AFU_58"#2| procedure Allow_Scrolling - (Win : in Window := Standard_Window; + (Win : in Window := Standard_Window; Mode : in Boolean := False); -- AKA: scrollok() pragma Inline (Allow_Scrolling); @@ -1023,8 +1025,8 @@ -- #1A NAME="AFU_59"#2| procedure Set_Scroll_Region - (Win : in Window := Standard_Window; - Top_Line : in Line_Position; + (Win : in Window := Standard_Window; + Top_Line : in Line_Position; Bottom_Line : in Line_Position); -- AKA: wsetscrreg() -- AKA: setscrreg() @@ -1058,8 +1060,8 @@ -- AKA: redrawwin() -- #1A NAME="AFU_64"#2| - procedure Redraw (Win : in Window := Standard_Window; - Begin_Line : in Line_Position; + procedure Redraw (Win : in Window := Standard_Window; + Begin_Line : in Line_Position; Line_Count : in Positive); -- AKA: wredrawln() pragma Inline (Redraw); @@ -1104,7 +1106,7 @@ -- because in C it is common to see bkgdset(A_BOLD) or -- bkgdset(COLOR_PAIR(n)) procedure Set_Background - (Win : in Window := Standard_Window; + (Win : in Window := Standard_Window; Ch : in Attributed_Character); -- AKA: wbkgdset() -- AKA: bkgdset() @@ -1112,7 +1114,7 @@ -- #1A NAME="AFU_70"#2| procedure Change_Background - (Win : in Window := Standard_Window; + (Win : in Window := Standard_Window; Ch : in Attributed_Character); -- AKA: wbkgd() -- AKA: bkgd() @@ -1120,7 +1122,7 @@ -- #1A NAME="AFU_71"#2| -- ? wbkgdget is not listed in curs_bkgd, getbkgd is thpough. - function Get_Background (Win : Window := Standard_Window) + function Get_Background (Win : Window := Standard_Window) return Attributed_Character; -- AKA: wbkgdget() -- AKA: bkgdget() @@ -1140,22 +1142,22 @@ -- AKA: touchwin() -- #1A NAME="AFU_74"#2| - procedure Touch (Win : in Window := Standard_Window; - Start : in Line_Position; + procedure Touch (Win : in Window := Standard_Window; + Start : in Line_Position; Count : in Positive); -- AKA: touchline() pragma Inline (Touch); -- #1A NAME="AFU_75"#2| - procedure Change_Lines_Status (Win : in Window := Standard_Window; - Start : in Line_Position; - Count : in Positive; + procedure Change_Lines_Status (Win : in Window := Standard_Window; + Start : in Line_Position; + Count : in Positive; State : in Boolean); -- AKA: wtouchln() pragma Inline (Change_Lines_Status); -- #1A NAME="AFU_76"#2| - function Is_Touched (Win : Window := Standard_Window; + function Is_Touched (Win : Window := Standard_Window; Line : Line_Position) return Boolean; -- AKA: is_linetouched() @@ -1170,26 +1172,26 @@ -- #1A NAME="AFU_78"#2| procedure Copy - (Source_Window : in Window; - Destination_Window : in Window; - Source_Top_Row : in Line_Position; - Source_Left_Column : in Column_Position; - Destination_Top_Row : in Line_Position; - Destination_Left_Column : in Column_Position; - Destination_Bottom_Row : in Line_Position; - Destination_Right_Column : in Column_Position; + (Source_Window : in Window; + Destination_Window : in Window; + Source_Top_Row : in Line_Position; + Source_Left_Column : in Column_Position; + Destination_Top_Row : in Line_Position; + Destination_Left_Column : in Column_Position; + Destination_Bottom_Row : in Line_Position; + Destination_Right_Column : in Column_Position; Non_Destructive_Mode : in Boolean := True); -- AKA: copywin() pragma Inline (Copy); -- #1A NAME="AFU_79"#2| - procedure Overwrite (Source_Window : in Window; + procedure Overwrite (Source_Window : in Window; Destination_Window : in Window); -- AKA: overwrite() pragma Inline (Overwrite); -- #1A NAME="AFU_80"#2| - procedure Overlay (Source_Window : in Window; + procedure Overlay (Source_Window : in Window; Destination_Window : in Window); -- AKA: overlay() pragma Inline (Overlay); @@ -1200,7 +1202,7 @@ -- #1A NAME="AFU_81"#2| procedure Insert_Delete_Lines - (Win : in Window := Standard_Window; + (Win : in Window := Standard_Window; Lines : in Integer := 1); -- default is to insert one line above -- AKA: winsdelln() -- AKA: insdelln() @@ -1224,33 +1226,33 @@ -- #1A NAME="AFU_84"#2| procedure Get_Size - (Win : in Window := Standard_Window; - Number_Of_Lines : out Line_Count; + (Win : in Window := Standard_Window; + Number_Of_Lines : out Line_Count; Number_Of_Columns : out Column_Count); -- AKA: getmaxyx() pragma Inline (Get_Size); -- #1A NAME="AFU_85"#2| procedure Get_Window_Position - (Win : in Window := Standard_Window; - Top_Left_Line : out Line_Position; + (Win : in Window := Standard_Window; + Top_Left_Line : out Line_Position; Top_Left_Column : out Column_Position); -- AKA: getbegyx() pragma Inline (Get_Window_Position); -- #1A NAME="AFU_86"#2| procedure Get_Cursor_Position - (Win : in Window := Standard_Window; - Line : out Line_Position; + (Win : in Window := Standard_Window; + Line : out Line_Position; Column : out Column_Position); -- AKA: getyx() pragma Inline (Get_Cursor_Position); -- #1A NAME="AFU_87"#2| procedure Get_Origin_Relative_To_Parent - (Win : in Window; - Top_Left_Line : out Line_Position; - Top_Left_Column : out Column_Position; + (Win : in Window; + Top_Left_Line : out Line_Position; + Top_Left_Column : out Column_Position; Is_Not_A_Subwindow : out Boolean); -- AKA: getparyx() -- Instead of placing -1 in the coordinates as return, we use a boolean @@ -1262,53 +1264,53 @@ -- |===================================================================== -- #1A NAME="AFU_88"#2| - function New_Pad (Lines : Line_Count; + function New_Pad (Lines : Line_Count; Columns : Column_Count) return Window; -- AKA: newpad() pragma Inline (New_Pad); -- #1A NAME="AFU_89"#2| function Sub_Pad - (Pad : Window; - Number_Of_Lines : Line_Count; - Number_Of_Columns : Column_Count; - First_Line_Position : Line_Position; + (Pad : Window; + Number_Of_Lines : Line_Count; + Number_Of_Columns : Column_Count; + First_Line_Position : Line_Position; First_Column_Position : Column_Position) return Window; -- AKA: subpad() pragma Inline (Sub_Pad); -- #1A NAME="AFU_90"#2| procedure Refresh - (Pad : in Window; - Source_Top_Row : in Line_Position; - Source_Left_Column : in Column_Position; - Destination_Top_Row : in Line_Position; - Destination_Left_Column : in Column_Position; - Destination_Bottom_Row : in Line_Position; + (Pad : in Window; + Source_Top_Row : in Line_Position; + Source_Left_Column : in Column_Position; + Destination_Top_Row : in Line_Position; + Destination_Left_Column : in Column_Position; + Destination_Bottom_Row : in Line_Position; Destination_Right_Column : in Column_Position); -- AKA: prefresh() pragma Inline (Refresh); -- #1A NAME="AFU_91"#2| procedure Refresh_Without_Update - (Pad : in Window; - Source_Top_Row : in Line_Position; - Source_Left_Column : in Column_Position; - Destination_Top_Row : in Line_Position; - Destination_Left_Column : in Column_Position; - Destination_Bottom_Row : in Line_Position; + (Pad : in Window; + Source_Top_Row : in Line_Position; + Source_Left_Column : in Column_Position; + Destination_Top_Row : in Line_Position; + Destination_Left_Column : in Column_Position; + Destination_Bottom_Row : in Line_Position; Destination_Right_Column : in Column_Position); -- AKA: pnoutrefresh() pragma Inline (Refresh_Without_Update); -- #1A NAME="AFU_92"#2| procedure Add_Character_To_Pad_And_Echo_It - (Pad : in Window; + (Pad : in Window; Ch : in Attributed_Character); -- AKA: pechochar() procedure Add_Character_To_Pad_And_Echo_It - (Pad : in Window; + (Pad : in Window; Ch : in Character); pragma Inline (Add_Character_To_Pad_And_Echo_It); @@ -1317,7 +1319,7 @@ -- |===================================================================== -- #1A NAME="AFU_93"#2| - procedure Scroll (Win : in Window := Standard_Window; + procedure Scroll (Win : in Window := Standard_Window; Amount : in Integer := 1); -- AKA: wscrl() -- AKA: scroll() @@ -1335,8 +1337,8 @@ -- #1A NAME="AFU_95"#2| procedure Delete_Character - (Win : in Window := Standard_Window; - Line : in Line_Position; + (Win : in Window := Standard_Window; + Line : in Line_Position; Column : in Column_Position); -- AKA: mvwdelch() -- AKA: mvdelch() @@ -1347,15 +1349,15 @@ -- |===================================================================== -- #1A NAME="AFU_96"#2| - function Peek (Win : Window := Standard_Window) + function Peek (Win : Window := Standard_Window) return Attributed_Character; -- AKA: inch() -- AKA: winch() -- #1A NAME="AFU_97"#2| function Peek - (Win : Window := Standard_Window; - Line : Line_Position; + (Win : Window := Standard_Window; + Line : Line_Position; Column : Column_Position) return Attributed_Character; -- AKA: mvwinch() -- AKA: mvinch() @@ -1366,15 +1368,15 @@ -- |===================================================================== -- #1A NAME="AFU_98"#2| - procedure Insert (Win : in Window := Standard_Window; + procedure Insert (Win : in Window := Standard_Window; Ch : in Attributed_Character); -- AKA: winsch() -- AKA: insch() -- #1A NAME="AFU_99"#2| - procedure Insert (Win : in Window := Standard_Window; - Line : in Line_Position; - Column : in Column_Position; + procedure Insert (Win : in Window := Standard_Window; + Line : in Line_Position; + Column : in Column_Position; Ch : in Attributed_Character); -- AKA: mvwinsch() -- AKA: mvinsch() @@ -1384,8 +1386,8 @@ -- |===================================================================== -- #1A NAME="AFU_100"#2| - procedure Insert (Win : in Window := Standard_Window; - Str : in String; + procedure Insert (Win : in Window := Standard_Window; + Str : in String; Len : in Integer := -1); -- AKA: winsnstr() -- AKA: winsstr() @@ -1393,10 +1395,10 @@ -- AKA: insstr() -- #1A NAME="AFU_101"#2| - procedure Insert (Win : in Window := Standard_Window; - Line : in Line_Position; - Column : in Column_Position; - Str : in String; + procedure Insert (Win : in Window := Standard_Window; + Line : in Line_Position; + Column : in Column_Position; + Str : in String; Len : in Integer := -1); -- AKA: mvwinsnstr() -- AKA: mvwinsstr() @@ -1409,8 +1411,8 @@ -- |===================================================================== -- #1A NAME="AFU_102"#2| - procedure Peek (Win : in Window := Standard_Window; - Str : out String; + procedure Peek (Win : in Window := Standard_Window; + Str : out String; Len : in Integer := -1); -- AKA: winnstr() -- AKA: winstr() @@ -1418,10 +1420,10 @@ -- AKA: instr() -- #1A NAME="AFU_103"#2| - procedure Peek (Win : in Window := Standard_Window; - Line : in Line_Position; - Column : in Column_Position; - Str : out String; + procedure Peek (Win : in Window := Standard_Window; + Line : in Line_Position; + Column : in Column_Position; + Str : out String; Len : in Integer := -1); -- AKA: mvwinnstr() -- AKA: mvwinstr() @@ -1433,8 +1435,8 @@ -- |===================================================================== -- #1A NAME="AFU_104"#2| - procedure Peek (Win : in Window := Standard_Window; - Str : out Attributed_String; + procedure Peek (Win : in Window := Standard_Window; + Str : out Attributed_String; Len : in Integer := -1); -- AKA: winchnstr() -- AKA: winchstr() @@ -1442,10 +1444,10 @@ -- AKA: inchstr() -- #1A NAME="AFU_105"#2| - procedure Peek (Win : in Window := Standard_Window; - Line : in Line_Position; - Column : in Column_Position; - Str : out Attributed_String; + procedure Peek (Win : in Window := Standard_Window; + Line : in Line_Position; + Column : in Column_Position; + Str : out Attributed_String; Len : in Integer := -1); -- AKA: mvwinchnstr() -- AKA: mvwinchstr() @@ -1458,8 +1460,8 @@ -- |===================================================================== -- #1A NAME="AFU_106"#2| - procedure Get (Win : in Window := Standard_Window; - Str : out String; + procedure Get (Win : in Window := Standard_Window; + Str : out String; Len : in Integer := -1); -- AKA: wgetnstr() -- AKA: wgetstr() @@ -1469,10 +1471,10 @@ -- overflows. -- #1A NAME="AFU_107"#2| - procedure Get (Win : in Window := Standard_Window; - Line : in Line_Position; - Column : in Column_Position; - Str : out String; + procedure Get (Win : in Window := Standard_Window; + Line : in Line_Position; + Column : in Column_Position; + Str : out String; Len : in Integer := -1); -- AKA: mvwgetnstr() -- AKA: mvwgetstr() @@ -1486,11 +1488,11 @@ -- Not Implemented: slk_attr_on, slk_attr_off, slk_attr_set - type Soft_Label_Key_Format is (Three_Two_Three, - Four_Four, - PC_Style, -- ncurses specific - PC_Style_With_Index); -- " - type Label_Number is new Positive range 1 .. 12; + type Soft_Label_Key_Format is (Three_Two_Three, + Four_Four, + PC_Style, -- ncurses specific + PC_Style_With_Index); -- " + type Label_Number is new Positive range 1 .. 12; type Label_Justification is (Left, Centered, Right); -- #1A NAME="AFU_108"#2| @@ -1500,8 +1502,8 @@ pragma Inline (Init_Soft_Label_Keys); -- #1A NAME="AFU_109"#2| - procedure Set_Soft_Label_Key (Label : in Label_Number; - Text : in String; + procedure Set_Soft_Label_Key (Label : in Label_Number; + Text : in String; Fmt : in Label_Justification := Left); -- AKA: slk_set() -- We don't inline this procedure @@ -1517,7 +1519,7 @@ pragma Inline (Refresh_Soft_Label_Keys_Without_Update); -- #1A NAME="AFU_112"#2| - procedure Get_Soft_Label_Key (Label : in Label_Number; + procedure Get_Soft_Label_Key (Label : in Label_Number; Text : out String); -- AKA: slk_label() @@ -1544,7 +1546,7 @@ -- #1A NAME="AFU_117"#2| procedure Switch_Soft_Label_Key_Attributes - (Attr : in Character_Attribute_Set; + (Attr : in Character_Attribute_Set; On : in Boolean := True); -- AKA: slk_attron() -- AKA: slk_attroff() @@ -1552,7 +1554,7 @@ -- #1A NAME="AFU_118"#2| procedure Set_Soft_Label_Key_Attributes - (Attr : in Character_Attribute_Set := Normal_Video; + (Attr : in Character_Attribute_Set := Normal_Video; Color : in Color_Pair := Color_Pair'First); -- AKA: slk_attrset() pragma Inline (Set_Soft_Label_Key_Attributes); @@ -1581,7 +1583,7 @@ -- |===================================================================== -- #1A NAME="AFU_122"#2| - procedure Enable_Key (Key : in Special_Key_Code; + procedure Enable_Key (Key : in Special_Key_Code; Enable : in Boolean := True); -- AKA: keyok() pragma Inline (Enable_Key); @@ -1591,7 +1593,7 @@ -- |===================================================================== -- #1A NAME="AFU_123"#2| - procedure Define_Key (Definition : in String; + procedure Define_Key (Definition : in String; Key : in Special_Key_Code); -- AKA: define_key() pragma Inline (Define_Key); @@ -1605,7 +1607,7 @@ -- -- #1A NAME="AFU_124"#2| - procedure Key_Name (Key : in Real_Key_Code; + procedure Key_Name (Key : in Real_Key_Code; Name : out String); -- AKA: keyname() -- The external name for a real keystroke. @@ -1617,7 +1619,7 @@ -- We don't inline this routine -- #1A NAME="AFU_126"#2| - procedure Un_Control (Ch : in Attributed_Character; + procedure Un_Control (Ch : in Attributed_Character; Str : out String); -- AKA: unctrl() @@ -1707,15 +1709,15 @@ pragma Import (C, Start_Color, "start_color"); -- #1A NAME="AFU_141"#2| - procedure Init_Pair (Pair : in Redefinable_Color_Pair; - Fore : in Color_Number; + procedure Init_Pair (Pair : in Redefinable_Color_Pair; + Fore : in Color_Number; Back : in Color_Number); -- AKA: init_pair() pragma Inline (Init_Pair); -- #1A NAME="AFU_142"#2| - procedure Pair_Content (Pair : in Color_Pair; - Fore : out Color_Number; + procedure Pair_Content (Pair : in Color_Pair; + Fore : out Color_Number; Back : out Color_Number); -- AKA: pair_content() pragma Inline (Pair_Content); @@ -1726,9 +1728,9 @@ pragma Inline (Has_Colors); -- #1A NAME="AFU_144"#2| - procedure Init_Color (Color : in Color_Number; - Red : in RGB_Value; - Green : in RGB_Value; + procedure Init_Color (Color : in Color_Number; + Red : in RGB_Value; + Green : in RGB_Value; Blue : in RGB_Value); -- AKA: init_color() pragma Inline (Init_Color); @@ -1739,9 +1741,9 @@ pragma Inline (Can_Change_Color); -- #1A NAME="AFU_146"#2| - procedure Color_Content (Color : in Color_Number; - Red : out RGB_Value; - Green : out RGB_Value; + procedure Color_Content (Color : in Color_Number; + Red : out RGB_Value; + Green : out RGB_Value; Blue : out RGB_Value); -- AKA: color_content() pragma Inline (Color_Content); @@ -1776,15 +1778,15 @@ pragma Inline (Reset_Terminal_State); type Stdscr_Init_Proc is access - function (Win : Window; - Columns : Column_Count) return Integer; + function (Win : Window; + Columns : Column_Count) return Integer; pragma Convention (C, Stdscr_Init_Proc); -- N.B.: the return value is actually ignored, but it seems to be -- a good practice to return 0 if you think all went fine -- and -1 otherwise. -- #1A NAME="AFU_151"#2| - procedure Rip_Off_Lines (Lines : in Integer; + procedure Rip_Off_Lines (Lines : in Integer; Proc : in Stdscr_Init_Proc); -- AKA: ripoffline() -- N.B.: to be more precise, this uses a ncurses specific enhancement of @@ -1810,9 +1812,9 @@ -- |===================================================================== type Transform_Direction is (From_Screen, To_Screen); procedure Transform_Coordinates - (W : in Window := Standard_Window; - Line : in out Line_Position; - Column : in out Column_Position; + (W : in Window := Standard_Window; + Line : in out Line_Position; + Column : in out Column_Position; Dir : in Transform_Direction := From_Screen); -- This procedure transforms screen coordinates into coordinates relative -- to the window and vice versa, depending on the Dir parameter. @@ -1831,7 +1833,7 @@ pragma Inline (Use_Default_Colors); -- #1A NAME="AFU_155"#2| - procedure Assume_Default_Colors (Fore : Color_Number := Default_Color; + procedure Assume_Default_Colors (Fore : Color_Number := Default_Color; Back : Color_Number := Default_Color); -- AKA: assume_default_colors() pragma Inline (Assume_Default_Colors); @@ -1888,7 +1890,6 @@ -- |===================================================================== -- Not implemented: scanw, wscanw, mvscanw, mvwscanw, vwscanw, vw_scanw - -- |===================================================================== -- | Man page resizeterm.3x -- |===================================================================== @@ -1899,8 +1900,8 @@ -- |===================================================================== -- #1A NAME="AFU_162"#2| - procedure Resize (Win : Window := Standard_Window; - Number_Of_Lines : Line_Count; + procedure Resize (Win : Window := Standard_Window; + Number_Of_Lines : Line_Count; Number_Of_Columns : Column_Count); -- AKA: wresize() @@ -1911,28 +1912,28 @@ -- The next constants are generated and may be different on your -- architecture. -- - Offset_maxy : constant Natural := 2; -- short - Offset_maxx : constant Natural := 3; -- short - Offset_begy : constant Natural := 4; -- short - Offset_begx : constant Natural := 5; -- short - Offset_cury : constant Natural := 0; -- short - Offset_curx : constant Natural := 1; -- short - Offset_yoffset : constant Natural := 36; -- short - Offset_pary : constant Natural := 13; -- int - Offset_parx : constant Natural := 12; -- int - Offset_notimeout : constant Natural := 24; -- char - Offset_clear : constant Natural := 25; -- char - Offset_leaveok : constant Natural := 26; -- char - Offset_scroll : constant Natural := 27; -- char - Offset_idlok : constant Natural := 28; -- char - Offset_idcok : constant Natural := 29; -- char - Offset_immed : constant Natural := 30; -- char - Offset_sync : constant Natural := 31; -- char - Offset_use_keypad : constant Natural := 32; -- char - Sizeof_bool : constant Natural := 1; -- bool + Offset_maxy : constant Natural := 2; -- short + Offset_maxx : constant Natural := 3; -- short + Offset_begy : constant Natural := 4; -- short + Offset_begx : constant Natural := 5; -- short + Offset_cury : constant Natural := 0; -- short + Offset_curx : constant Natural := 1; -- short + Offset_yoffset : constant Natural := 36; -- short + Offset_pary : constant Natural := 13; -- int + Offset_parx : constant Natural := 12; -- int + Offset_notimeout : constant Natural := 24; -- char + Offset_clear : constant Natural := 25; -- char + Offset_leaveok : constant Natural := 26; -- char + Offset_scroll : constant Natural := 27; -- char + Offset_idlok : constant Natural := 28; -- char + Offset_idcok : constant Natural := 29; -- char + Offset_immed : constant Natural := 30; -- char + Offset_sync : constant Natural := 31; -- char + Offset_use_keypad : constant Natural := 32; -- char + Sizeof_bool : constant Natural := 1; -- bool Offset_XY : constant Natural := 1; -- int - type Curses_Bool is mod 2 ** Interfaces.C.char'Size; + type Curses_Bool is mod 2 ** Interfaces.C.char'Size; Curses_Bool_False : constant Curses_Bool := 0; end Terminal_Interface.Curses;