X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=doc%2Fhtml%2Fada%2Fterminal_interface-curses__ads.htm;h=3d690414bf5a86e04e3de5800d2a18acf2c99ee6;hp=09750abedd7681b9c17a37f966ca23e381774be4;hb=2b635f090ec43c82958cef9369464aee4dd8975f;hpb=f86cbeb5f9bd96ab041d34039c35749a14965039 diff --git a/doc/html/ada/terminal_interface-curses__ads.htm b/doc/html/ada/terminal_interface-curses__ads.htm index 09750abe..3d690414 100644 --- a/doc/html/ada/terminal_interface-curses__ads.htm +++ b/doc/html/ada/terminal_interface-curses__ads.htm @@ -12,7 +12,7 @@ -- S P E C -- -- -- ------------------------------------------------------------------------------ --- Copyright (c) 1998-2007,2009 Free Software Foundation, Inc. -- +-- Copyright (c) 1998-2009,2011 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,8 +40,8 @@ ------------------------------------------------------------------------------ -- Author: Juergen Pfeifer, 1996 -- Version Control: --- @Revision: 1.42 @ --- @Date: 2009/12/26 17:38:58 @ +-- @Revision: 1.44 @ +-- @Date: 2011/03/19 23:05:56 @ -- Binding Version 01.00 ------------------------------------------------------------------------------ -- curses binding. @@ -62,8 +62,8 @@ type Window is private; Null_Window : constant Window; - type Line_Position is new Natural; -- line coordinate - type Column_Position is new Natural; -- column coordinate + type Line_Position is new Integer; -- line coordinate + type Column_Position is new Integer; -- column coordinate subtype Line_Count is Line_Position range 1 .. Line_Position'Last; -- Type to count lines. We do not allow null windows, so must be positive @@ -326,6 +326,7 @@ Right : Boolean; Top : Boolean; Vertical : Boolean; + Unused : Boolean; end record; pragma Convention (C, Character_Attribute_Set); @@ -346,65 +347,66 @@ Right at 0 range 12 .. 12; Top at 0 range 13 .. 13; Vertical at 0 range 14 .. 14; + Unused at 0 range 15 .. 15; end record; for Character_Attribute_Set'Size use 16; -- Please note: this rep. clause is generated and may be -- different on your system. -- (n)curses uses all but the lowest 16 Bits for Attributes. - Normal_Video : constant Character_Attribute_Set := (others => False); + Normal_Video : constant Character_Attribute_Set := (others => False); - type Attributed_Character is + 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); + pragma Convention (C, Attributed_Character); -- This is the counterpart for the chtype in C. - for Attributed_Character use + for Attributed_Character use record - Ch at 0 range 0 .. 7; - Color at 0 range 8 .. 15; - Attr at 0 range 16 .. 31; + Ch at 0 range 0 .. 7; + Color at 0 range 8 .. 15; + Attr at 0 range 16 .. 31; end record; - for Attributed_Character'Size use 32; + for Attributed_Character'Size use 32; -- Please note: this rep. clause is generated and may be -- different on your system. - Default_Character : constant Attributed_Character - := (Ch => Character'First, - Color => Color_Pair'First, - Attr => (others => False)); -- preelaboratable Normal_Video + Default_Character : constant Attributed_Character + := (Ch => Character'First, + Color => Color_Pair'First, + Attr => (others => False)); -- preelaboratable Normal_Video - type Attributed_String is array (Positive range <>) of Attributed_Character; + type Attributed_String is array (Positive range <>) of Attributed_Character; pragma Pack (Attributed_String); -- In this binding we allow strings of attributed characters. ------------------ -- Exceptions -- ------------------ - Curses_Exception : exception; - Wrong_Curses_Version : 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_Current : 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; -------------------------------------------------------------------------- -- External C variables @@ -414,63 +416,63 @@ -- this is to use functions. -------------------------------------------------------------------------- - function Lines return Line_Count; - pragma Inline (Lines); + function Lines return Line_Count; + pragma Inline (Lines); - function Columns return Column_Count; - pragma Inline (Columns); + function Columns return Column_Count; + pragma Inline (Columns); - function Tab_Size return Natural; - pragma Inline (Tab_Size); + function Tab_Size return Natural; + pragma Inline (Tab_Size); - function Number_Of_Colors return Natural; - pragma Inline (Number_Of_Colors); + function Number_Of_Colors return Natural; + pragma Inline (Number_Of_Colors); - function Number_Of_Color_Pairs return Natural; - pragma Inline (Number_Of_Color_Pairs); + function Number_Of_Color_Pairs return Natural; + pragma Inline (Number_Of_Color_Pairs); type C_ACS_Map is array (Character'Val (0) .. Character'Val (127)) - of Attributed_Character; - ACS_Map : C_ACS_Map; - pragma Import (C, ACS_Map, "acs_map"); + of Attributed_Character; + ACS_Map : C_ACS_Map; + pragma Import (C, ACS_Map, "acs_map"); -- -- -- Constants for several characters from the Alternate Character Set -- You must use these 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_Sterling : 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 := '}'; -- |===================================================================== -- | Man page curs_initscr.3x @@ -478,90 +480,90 @@ -- | Not implemented: newterm, set_term, delscreen -- #1A NAME="AFU_1"#2| - function Standard_Window return Window; + function Standard_Window return Window; -- AKA: stdscr - pragma Inline (Standard_Window); + pragma Inline (Standard_Window); -- #1A NAME="AFU_2"#2| - function Current_Window return Window; + function Current_Window return Window; -- AKA: curscr - pragma Inline (Current_Window); + pragma Inline (Current_Window); -- #1A NAME="AFU_3"#2| - procedure Init_Screen; + procedure Init_Screen; -- #1A NAME="AFU_4"#2| - procedure Init_Windows renames Init_Screen; + procedure Init_Windows renames Init_Screen; -- AKA: initscr() - pragma Inline (Init_Screen); + pragma Inline (Init_Screen); -- pragma Inline (Init_Windows); -- #1A NAME="AFU_5"#2| - procedure End_Windows; + procedure End_Windows; -- AKA: endwin() - procedure End_Screen renames End_Windows; - pragma Inline (End_Windows); + procedure End_Screen renames End_Windows; + pragma Inline (End_Windows); -- pragma Inline (End_Screen); -- #1A NAME="AFU_6"#2| - function Is_End_Window return Boolean; + function Is_End_Window return Boolean; -- AKA: isendwin() - pragma Inline (Is_End_Window); + pragma Inline (Is_End_Window); -- |===================================================================== -- | Man page curs_move.3x -- |===================================================================== -- #1A NAME="AFU_7"#2| - procedure Move_Cursor (Win : Window := Standard_Window; - Line : Line_Position; - Column : Column_Position); + procedure Move_Cursor (Win : Window := Standard_Window; + Line : Line_Position; + Column : Column_Position); -- AKA: wmove() -- AKA: move() - pragma Inline (Move_Cursor); + pragma Inline (Move_Cursor); -- |===================================================================== -- | Man page curs_addch.3x -- |===================================================================== -- #1A NAME="AFU_8"#2| - procedure Add (Win : Window := Standard_Window; - Ch : Attributed_Character); + procedure Add (Win : Window := Standard_Window; + Ch : Attributed_Character); -- AKA: waddch() -- AKA: addch() - procedure Add (Win : Window := Standard_Window; - Ch : Character); + procedure Add (Win : Window := Standard_Window; + Ch : Character); -- Add a single character at the current logical cursor position to -- the window. Use the current windows attributes. -- #1A NAME="AFU_9"#2| - procedure Add - (Win : Window := Standard_Window; - Line : Line_Position; - Column : Column_Position; - Ch : Attributed_Character); + procedure Add + (Win : Window := Standard_Window; + Line : Line_Position; + Column : Column_Position; + Ch : Attributed_Character); -- AKA: mvwaddch() -- AKA: mvaddch() - procedure Add - (Win : Window := Standard_Window; - Line : Line_Position; - Column : Column_Position; - Ch : Character); + procedure Add + (Win : Window := Standard_Window; + Line : Line_Position; + Column : Column_Position; + Ch : 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_10"#2| - procedure Add_With_Immediate_Echo - (Win : Window := Standard_Window; - Ch : Attributed_Character); + procedure Add_With_Immediate_Echo + (Win : Window := Standard_Window; + Ch : Attributed_Character); -- AKA: wechochar() -- AKA: echochar() - procedure Add_With_Immediate_Echo - (Win : Window := Standard_Window; - Ch : Character); + procedure Add_With_Immediate_Echo + (Win : Window := Standard_Window; + Ch : Character); -- Add a character and do an immediate refresh of the screen. pragma Inline (Add_With_Immediate_Echo); @@ -571,104 +573,104 @@ -- Not Implemented: wcursyncup -- #1A NAME="AFU_11"#2| - function Create - (Number_Of_Lines : Line_Count; - Number_Of_Columns : Column_Count; - First_Line_Position : Line_Position; - First_Column_Position : Column_Position) return Window; + function Create + (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. -- AKA: newwin() - pragma Inline (Create); + pragma Inline (Create); function New_Window - (Number_Of_Lines : Line_Count; - Number_Of_Columns : Column_Count; - First_Line_Position : Line_Position; - First_Column_Position : Column_Position) return Window - renames Create; + (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); -- #1A NAME="AFU_12"#2| - procedure Delete (Win : in out Window); + procedure Delete (Win : in out Window); -- AKA: delwin() -- Reset Win to Null_Window - pragma Inline (Delete); + pragma Inline (Delete); -- #1A NAME="AFU_13"#2| - function Sub_Window - (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; + function Sub_Window + (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); + pragma Inline (Sub_Window); -- #1A NAME="AFU_14"#2| - function Derived_Window - (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; + function Derived_Window + (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); + pragma Inline (Derived_Window); -- #1A NAME="AFU_15"#2| - function Duplicate (Win : Window) return Window; + function Duplicate (Win : Window) return Window; -- AKA: dupwin() - pragma Inline (Duplicate); + pragma Inline (Duplicate); -- #1A NAME="AFU_16"#2| - procedure Move_Window (Win : Window; - Line : Line_Position; - Column : Column_Position); + procedure Move_Window (Win : Window; + Line : Line_Position; + Column : Column_Position); -- AKA: mvwin() - pragma Inline (Move_Window); + pragma Inline (Move_Window); -- #1A NAME="AFU_17"#2| - procedure Move_Derived_Window (Win : Window; - Line : Line_Position; - Column : Column_Position); + procedure Move_Derived_Window (Win : Window; + Line : Line_Position; + Column : Column_Position); -- AKA: mvderwin() - pragma Inline (Move_Derived_Window); + pragma Inline (Move_Derived_Window); -- #1A NAME="AFU_18"#2| - procedure Synchronize_Upwards (Win : Window); + procedure Synchronize_Upwards (Win : Window); -- AKA: wsyncup() pragma Import (C, Synchronize_Upwards, "wsyncup"); -- #1A NAME="AFU_19"#2| - procedure Synchronize_Downwards (Win : Window); + procedure Synchronize_Downwards (Win : Window); -- AKA: wsyncdown() pragma Import (C, Synchronize_Downwards, "wsyncdown"); -- #1A NAME="AFU_20"#2| - procedure Set_Synch_Mode (Win : Window := Standard_Window; - Mode : Boolean := False); + procedure Set_Synch_Mode (Win : Window := Standard_Window; + Mode : Boolean := False); -- AKA: syncok() - pragma Inline (Set_Synch_Mode); + pragma Inline (Set_Synch_Mode); -- |===================================================================== -- | Man page curs_addstr.3x -- |===================================================================== -- #1A NAME="AFU_21"#2| - procedure Add (Win : Window := Standard_Window; - Str : String; - Len : Integer := -1); + procedure Add (Win : Window := Standard_Window; + Str : String; + Len : Integer := -1); -- AKA: waddnstr() -- AKA: waddstr() -- AKA: addnstr() -- AKA: addstr() -- #1A NAME="AFU_22"#2| - procedure Add (Win : Window := Standard_Window; - Line : Line_Position; - Column : Column_Position; - Str : String; - Len : Integer := -1); + procedure Add (Win : Window := Standard_Window; + Line : Line_Position; + Column : Column_Position; + Str : String; + Len : Integer := -1); -- AKA: mvwaddnstr() -- AKA: mvwaddstr() -- AKA: mvaddnstr() @@ -679,20 +681,20 @@ -- |===================================================================== -- #1A NAME="AFU_23"#2| - procedure Add (Win : Window := Standard_Window; - Str : Attributed_String; - Len : Integer := -1); + procedure Add (Win : Window := Standard_Window; + Str : Attributed_String; + Len : Integer := -1); -- AKA: waddchnstr() -- AKA: waddchstr() -- AKA: addchnstr() -- AKA: addchstr() -- #1A NAME="AFU_24"#2| - procedure Add (Win : Window := Standard_Window; - Line : Line_Position; - Column : Column_Position; - Str : Attributed_String; - Len : Integer := -1); + procedure Add (Win : Window := Standard_Window; + Line : Line_Position; + Column : Column_Position; + Str : Attributed_String; + Len : Integer := -1); -- AKA: mvwaddchnstr() -- AKA: mvwaddchstr() -- AKA: mvaddchnstr() @@ -706,46 +708,46 @@ -- | use Move_Cursor then Horizontal_Line or Vertical_Line -- #1A NAME="AFU_25"#2| - procedure Border - (Win : Window := Standard_Window; - Left_Side_Symbol : Attributed_Character := Default_Character; - Right_Side_Symbol : Attributed_Character := Default_Character; - Top_Side_Symbol : Attributed_Character := Default_Character; - Bottom_Side_Symbol : Attributed_Character := Default_Character; - Upper_Left_Corner_Symbol : Attributed_Character := Default_Character; - Upper_Right_Corner_Symbol : Attributed_Character := Default_Character; - Lower_Left_Corner_Symbol : Attributed_Character := Default_Character; - Lower_Right_Corner_Symbol : Attributed_Character := Default_Character + procedure Border + (Win : Window := Standard_Window; + Left_Side_Symbol : Attributed_Character := Default_Character; + Right_Side_Symbol : Attributed_Character := Default_Character; + Top_Side_Symbol : Attributed_Character := Default_Character; + Bottom_Side_Symbol : Attributed_Character := Default_Character; + Upper_Left_Corner_Symbol : Attributed_Character := Default_Character; + Upper_Right_Corner_Symbol : Attributed_Character := Default_Character; + Lower_Left_Corner_Symbol : Attributed_Character := Default_Character; + Lower_Right_Corner_Symbol : Attributed_Character := Default_Character ); -- AKA: wborder() -- AKA: border() - pragma Inline (Border); + pragma Inline (Border); -- #1A NAME="AFU_26"#2| - procedure Box - (Win : Window := Standard_Window; - Vertical_Symbol : Attributed_Character := Default_Character; - Horizontal_Symbol : Attributed_Character := Default_Character); + procedure Box + (Win : Window := Standard_Window; + Vertical_Symbol : Attributed_Character := Default_Character; + Horizontal_Symbol : Attributed_Character := Default_Character); -- AKA: box() - pragma Inline (Box); + pragma Inline (Box); -- #1A NAME="AFU_27"#2| - procedure Horizontal_Line - (Win : Window := Standard_Window; - Line_Size : Natural; - Line_Symbol : Attributed_Character := Default_Character); + procedure Horizontal_Line + (Win : Window := Standard_Window; + Line_Size : Natural; + Line_Symbol : Attributed_Character := Default_Character); -- AKA: whline() -- AKA: hline() - pragma Inline (Horizontal_Line); + pragma Inline (Horizontal_Line); -- #1A NAME="AFU_28"#2| - procedure Vertical_Line - (Win : Window := Standard_Window; - Line_Size : Natural; - Line_Symbol : Attributed_Character := Default_Character); + procedure Vertical_Line + (Win : Window := Standard_Window; + Line_Size : Natural; + Line_Symbol : Attributed_Character := Default_Character); -- AKA: wvline() -- AKA: vline() - pragma Inline (Vertical_Line); + pragma Inline (Vertical_Line); -- |===================================================================== -- | Man page curs_getch.3x @@ -753,44 +755,44 @@ -- Not implemented: mvgetch, mvwgetch -- #1A NAME="AFU_29"#2| - function Get_Keystroke (Win : Window := Standard_Window) + function Get_Keystroke (Win : Window := Standard_Window) return Real_Key_Code; -- AKA: wgetch() -- AKA: getch() -- Get a character from the keyboard and echo it - if enabled - to the -- window. - -- If for any reason (i.e. a timeout) we couldn't get a character the + -- If for any reason (i.e. a timeout) we could not get a character the -- returned keycode is Key_None. - pragma Inline (Get_Keystroke); + pragma Inline (Get_Keystroke); -- #1A NAME="AFU_30"#2| - procedure Undo_Keystroke (Key : Real_Key_Code); + procedure Undo_Keystroke (Key : Real_Key_Code); -- AKA: ungetch() - pragma Inline (Undo_Keystroke); + pragma Inline (Undo_Keystroke); -- #1A NAME="AFU_31"#2| - function Has_Key (Key : Special_Key_Code) return Boolean; + function Has_Key (Key : Special_Key_Code) return Boolean; -- AKA: has_key() - pragma Inline (Has_Key); + pragma Inline (Has_Key); -- | -- | Some helper functions -- | - function Is_Function_Key (Key : Special_Key_Code) return Boolean; + function Is_Function_Key (Key : Special_Key_Code) return Boolean; -- Return True if the Key is a function key (i.e. one of F0 .. F63) - pragma Inline (Is_Function_Key); + pragma Inline (Is_Function_Key); - subtype Function_Key_Number is Integer range 0 .. 63; + subtype Function_Key_Number is Integer range 0 .. 63; -- (n)curses allows for 64 function keys. - function Function_Key (Key : Real_Key_Code) return Function_Key_Number; + function Function_Key (Key : Real_Key_Code) return Function_Key_Number; -- Return the number of the function key. If the code is not a -- function key, a CONSTRAINT_ERROR will be raised. - pragma Inline (Function_Key); + pragma Inline (Function_Key); - function Function_Key_Code (Key : Function_Key_Number) return Real_Key_Code; + function Function_Key_Code (Key : Function_Key_Number) return Real_Key_Code; -- Return the key code for a given function-key number. - pragma Inline (Function_Key_Code); + pragma Inline (Function_Key_Code); -- |===================================================================== -- | Man page curs_attr.3x @@ -802,16 +804,16 @@ -- PAIR_NUMBER(c) is the same as c.Color -- #1A NAME="AFU_32"#2| - procedure Standout (Win : Window := Standard_Window; - On : Boolean := True); + procedure Standout (Win : Window := Standard_Window; + On : Boolean := True); -- AKA: wstandout() -- AKA: wstandend() -- #1A NAME="AFU_33"#2| - procedure Switch_Character_Attribute - (Win : Window := Standard_Window; - Attr : Character_Attribute_Set := Normal_Video; - On : Boolean := True); -- if False we switch Off. + procedure Switch_Character_Attribute + (Win : Window := Standard_Window; + Attr : Character_Attribute_Set := Normal_Video; + On : Boolean := True); -- if False we switch Off. -- Switches those Attributes set to true in the list. -- AKA: wattron() -- AKA: wattroff() @@ -819,50 +821,50 @@ -- AKA: attroff() -- #1A NAME="AFU_34"#2| - procedure Set_Character_Attributes - (Win : Window := Standard_Window; - Attr : Character_Attribute_Set := Normal_Video; - Color : Color_Pair := Color_Pair'First); + procedure Set_Character_Attributes + (Win : Window := Standard_Window; + Attr : Character_Attribute_Set := Normal_Video; + Color : Color_Pair := Color_Pair'First); -- AKA: wattrset() -- AKA: attrset() - pragma Inline (Set_Character_Attributes); + pragma Inline (Set_Character_Attributes); -- #1A NAME="AFU_35"#2| - function Get_Character_Attribute - (Win : Window := Standard_Window) return Character_Attribute_Set; + function Get_Character_Attribute + (Win : Window := Standard_Window) return Character_Attribute_Set; -- AKA: wattr_get() -- AKA: attr_get() -- #1A NAME="AFU_36"#2| - function Get_Character_Attribute - (Win : Window := Standard_Window) return Color_Pair; + function Get_Character_Attribute + (Win : Window := Standard_Window) return Color_Pair; -- AKA: wattr_get() pragma Inline (Get_Character_Attribute); -- #1A NAME="AFU_37"#2| - procedure Set_Color (Win : Window := Standard_Window; - Pair : Color_Pair); + procedure Set_Color (Win : Window := Standard_Window; + Pair : Color_Pair); -- AKA: wcolor_set() -- AKA: color_set() - pragma Inline (Set_Color); + pragma Inline (Set_Color); -- #1A NAME="AFU_38"#2| - procedure Change_Attributes - (Win : Window := Standard_Window; - Count : Integer := -1; - Attr : Character_Attribute_Set := Normal_Video; - Color : Color_Pair := Color_Pair'First); + procedure Change_Attributes + (Win : Window := Standard_Window; + Count : Integer := -1; + Attr : Character_Attribute_Set := Normal_Video; + Color : Color_Pair := Color_Pair'First); -- AKA: wchgat() -- AKA: chgat() -- #1A NAME="AFU_39"#2| - procedure Change_Attributes - (Win : Window := Standard_Window; - Line : Line_Position := Line_Position'First; - Column : Column_Position := Column_Position'First; - Count : Integer := -1; - Attr : Character_Attribute_Set := Normal_Video; - Color : Color_Pair := Color_Pair'First); + procedure Change_Attributes + (Win : Window := Standard_Window; + Line : Line_Position := Line_Position'First; + Column : Column_Position := Column_Position'First; + Count : Integer := -1; + Attr : Character_Attribute_Set := Normal_Video; + Color : Color_Pair := Color_Pair'First); -- AKA: mvwchgat() -- AKA: mvchgat() pragma Inline (Change_Attributes); @@ -872,14 +874,14 @@ -- |===================================================================== -- #1A NAME="AFU_40"#2| - procedure Beep; + procedure Beep; -- AKA: beep() - pragma Inline (Beep); + pragma Inline (Beep); -- #1A NAME="AFU_41"#2| - procedure Flash_Screen; + procedure Flash_Screen; -- AKA: flash() - pragma Inline (Flash_Screen); + pragma Inline (Flash_Screen); -- |===================================================================== -- | Man page curs_inopts.3x @@ -888,186 +890,186 @@ -- | Not implemented : typeahead -- -- #1A NAME="AFU_42"#2| - procedure Set_Cbreak_Mode (SwitchOn : Boolean := True); + procedure Set_Cbreak_Mode (SwitchOn : Boolean := True); -- AKA: cbreak() -- AKA: nocbreak() - pragma Inline (Set_Cbreak_Mode); + pragma Inline (Set_Cbreak_Mode); -- #1A NAME="AFU_43"#2| - procedure Set_Raw_Mode (SwitchOn : Boolean := True); + procedure Set_Raw_Mode (SwitchOn : Boolean := True); -- AKA: raw() -- AKA: noraw() - pragma Inline (Set_Raw_Mode); + pragma Inline (Set_Raw_Mode); -- #1A NAME="AFU_44"#2| - procedure Set_Echo_Mode (SwitchOn : Boolean := True); + procedure Set_Echo_Mode (SwitchOn : Boolean := True); -- AKA: echo() -- AKA: noecho() - pragma Inline (Set_Echo_Mode); + pragma Inline (Set_Echo_Mode); -- #1A NAME="AFU_45"#2| - procedure Set_Meta_Mode (Win : Window := Standard_Window; - SwitchOn : Boolean := True); + procedure Set_Meta_Mode (Win : Window := Standard_Window; + SwitchOn : Boolean := True); -- AKA: meta() - pragma Inline (Set_Meta_Mode); + pragma Inline (Set_Meta_Mode); -- #1A NAME="AFU_46"#2| - procedure Set_KeyPad_Mode (Win : Window := Standard_Window; - SwitchOn : Boolean := True); + procedure Set_KeyPad_Mode (Win : Window := Standard_Window; + SwitchOn : Boolean := True); -- AKA: keypad() - pragma Inline (Set_KeyPad_Mode); + pragma Inline (Set_KeyPad_Mode); - function Get_KeyPad_Mode (Win : Window := Standard_Window) + function Get_KeyPad_Mode (Win : Window := Standard_Window) return Boolean; -- This has no pendant in C. There you've to look into the WINDOWS -- structure to get the value. Bad practice, not repeated in Ada. - type Half_Delay_Amount is range 1 .. 255; + type Half_Delay_Amount is range 1 .. 255; -- #1A NAME="AFU_47"#2| - procedure Half_Delay (Amount : Half_Delay_Amount); + procedure Half_Delay (Amount : Half_Delay_Amount); -- AKA: halfdelay() - pragma Inline (Half_Delay); + pragma Inline (Half_Delay); -- #1A NAME="AFU_48"#2| - procedure Set_Flush_On_Interrupt_Mode - (Win : Window := Standard_Window; - Mode : Boolean := True); + procedure Set_Flush_On_Interrupt_Mode + (Win : Window := Standard_Window; + Mode : Boolean := True); -- AKA: intrflush() - pragma Inline (Set_Flush_On_Interrupt_Mode); + pragma Inline (Set_Flush_On_Interrupt_Mode); -- #1A NAME="AFU_49"#2| - procedure Set_Queue_Interrupt_Mode - (Win : Window := Standard_Window; - Flush : Boolean := True); + procedure Set_Queue_Interrupt_Mode + (Win : Window := Standard_Window; + Flush : Boolean := True); -- AKA: qiflush() -- AKA: noqiflush() - pragma Inline (Set_Queue_Interrupt_Mode); + pragma Inline (Set_Queue_Interrupt_Mode); -- #1A NAME="AFU_50"#2| - procedure Set_NoDelay_Mode - (Win : Window := Standard_Window; - Mode : Boolean := False); + procedure Set_NoDelay_Mode + (Win : Window := Standard_Window; + Mode : Boolean := False); -- AKA: nodelay() - pragma Inline (Set_NoDelay_Mode); + pragma Inline (Set_NoDelay_Mode); - type Timeout_Mode is (Blocking, Non_Blocking, Delayed); + type Timeout_Mode is (Blocking, Non_Blocking, Delayed); -- #1A NAME="AFU_51"#2| - procedure Set_Timeout_Mode (Win : Window := Standard_Window; - Mode : Timeout_Mode; - Amount : Natural); -- in Milliseconds + procedure Set_Timeout_Mode (Win : Window := Standard_Window; + Mode : Timeout_Mode; + Amount : Natural); -- in Milliseconds -- AKA: wtimeout() -- AKA: timeout() -- Instead of overloading the semantic of the sign of amount, we -- introduce the Timeout_Mode parameter. This should improve -- readability. For Blocking and Non_Blocking, the Amount is not -- evaluated. - -- We don't inline this procedure. + -- We do not inline this procedure. -- #1A NAME="AFU_52"#2| - procedure Set_Escape_Timer_Mode - (Win : Window := Standard_Window; - Timer_Off : Boolean := False); + procedure Set_Escape_Timer_Mode + (Win : Window := Standard_Window; + Timer_Off : Boolean := False); -- AKA: notimeout() - pragma Inline (Set_Escape_Timer_Mode); + pragma Inline (Set_Escape_Timer_Mode); -- |===================================================================== -- | Man page curs_outopts.3x -- |===================================================================== -- #1A NAME="AFU_53"#2| - procedure Set_NL_Mode (SwitchOn : Boolean := True); + procedure Set_NL_Mode (SwitchOn : Boolean := True); -- AKA: nl() -- AKA: nonl() - pragma Inline (Set_NL_Mode); + pragma Inline (Set_NL_Mode); -- #1A NAME="AFU_54"#2| - procedure Clear_On_Next_Update - (Win : Window := Standard_Window; - Do_Clear : Boolean := True); + procedure Clear_On_Next_Update + (Win : Window := Standard_Window; + Do_Clear : Boolean := True); -- AKA: clearok() - pragma Inline (Clear_On_Next_Update); + pragma Inline (Clear_On_Next_Update); -- #1A NAME="AFU_55"#2| - procedure Use_Insert_Delete_Line - (Win : Window := Standard_Window; - Do_Idl : Boolean := True); + procedure Use_Insert_Delete_Line + (Win : Window := Standard_Window; + Do_Idl : Boolean := True); -- AKA: idlok() - pragma Inline (Use_Insert_Delete_Line); + pragma Inline (Use_Insert_Delete_Line); -- #1A NAME="AFU_56"#2| - procedure Use_Insert_Delete_Character - (Win : Window := Standard_Window; - Do_Idc : Boolean := True); + procedure Use_Insert_Delete_Character + (Win : Window := Standard_Window; + Do_Idc : Boolean := True); -- AKA: idcok() - pragma Inline (Use_Insert_Delete_Character); + pragma Inline (Use_Insert_Delete_Character); -- #1A NAME="AFU_57"#2| - procedure Leave_Cursor_After_Update - (Win : Window := Standard_Window; - Do_Leave : Boolean := True); + procedure Leave_Cursor_After_Update + (Win : Window := Standard_Window; + Do_Leave : Boolean := True); -- AKA: leaveok() - pragma Inline (Leave_Cursor_After_Update); + pragma Inline (Leave_Cursor_After_Update); -- #1A NAME="AFU_58"#2| - procedure Immediate_Update_Mode - (Win : Window := Standard_Window; - Mode : Boolean := False); + procedure Immediate_Update_Mode + (Win : Window := Standard_Window; + Mode : Boolean := False); -- AKA: immedok() - pragma Inline (Immediate_Update_Mode); + pragma Inline (Immediate_Update_Mode); -- #1A NAME="AFU_59"#2| - procedure Allow_Scrolling - (Win : Window := Standard_Window; - Mode : Boolean := False); + procedure Allow_Scrolling + (Win : Window := Standard_Window; + Mode : Boolean := False); -- AKA: scrollok() - pragma Inline (Allow_Scrolling); + pragma Inline (Allow_Scrolling); - function Scrolling_Allowed (Win : Window := Standard_Window) return Boolean; + function Scrolling_Allowed (Win : Window := Standard_Window) return Boolean; -- There is no such function in the C interface. - pragma Inline (Scrolling_Allowed); + pragma Inline (Scrolling_Allowed); -- #1A NAME="AFU_60"#2| - procedure Set_Scroll_Region - (Win : Window := Standard_Window; - Top_Line : Line_Position; - Bottom_Line : Line_Position); + procedure Set_Scroll_Region + (Win : Window := Standard_Window; + Top_Line : Line_Position; + Bottom_Line : Line_Position); -- AKA: wsetscrreg() -- AKA: setscrreg() - pragma Inline (Set_Scroll_Region); + pragma Inline (Set_Scroll_Region); -- |===================================================================== -- | Man page curs_refresh.3x -- |===================================================================== -- #1A NAME="AFU_61"#2| - procedure Update_Screen; + procedure Update_Screen; -- AKA: doupdate() - pragma Inline (Update_Screen); + pragma Inline (Update_Screen); -- #1A NAME="AFU_62"#2| - procedure Refresh (Win : Window := Standard_Window); + procedure Refresh (Win : Window := Standard_Window); -- AKA: wrefresh() -- There is an overloaded Refresh for Pads. -- The Inline pragma appears there -- AKA: refresh() -- #1A NAME="AFU_63"#2| - procedure Refresh_Without_Update - (Win : Window := Standard_Window); + procedure Refresh_Without_Update + (Win : Window := Standard_Window); -- AKA: wnoutrefresh() -- There is an overloaded Refresh_Without_Update for Pads. -- The Inline pragma appears there -- #1A NAME="AFU_64"#2| - procedure Redraw (Win : Window := Standard_Window); + procedure Redraw (Win : Window := Standard_Window); -- AKA: redrawwin() -- #1A NAME="AFU_65"#2| - procedure Redraw (Win : Window := Standard_Window; - Begin_Line : Line_Position; - Line_Count : Positive); + procedure Redraw (Win : Window := Standard_Window; + Begin_Line : Line_Position; + Line_Count : Positive); -- AKA: wredrawln() pragma Inline (Redraw); @@ -1076,31 +1078,31 @@ -- |===================================================================== -- #1A NAME="AFU_66"#2| - procedure Erase (Win : Window := Standard_Window); + procedure Erase (Win : Window := Standard_Window); -- AKA: werase() -- AKA: erase() - pragma Inline (Erase); + pragma Inline (Erase); -- #1A NAME="AFU_67"#2| - procedure Clear - (Win : Window := Standard_Window); + procedure Clear + (Win : Window := Standard_Window); -- AKA: wclear() -- AKA: clear() - pragma Inline (Clear); + pragma Inline (Clear); -- #1A NAME="AFU_68"#2| - procedure Clear_To_End_Of_Screen - (Win : Window := Standard_Window); + procedure Clear_To_End_Of_Screen + (Win : Window := Standard_Window); -- AKA: wclrtobot() -- AKA: clrtobot() - pragma Inline (Clear_To_End_Of_Screen); + pragma Inline (Clear_To_End_Of_Screen); -- #1A NAME="AFU_69"#2| - procedure Clear_To_End_Of_Line - (Win : Window := Standard_Window); + procedure Clear_To_End_Of_Line + (Win : Window := Standard_Window); -- AKA: wclrtoeol() -- AKA: clrtoeol() - pragma Inline (Clear_To_End_Of_Line); + pragma Inline (Clear_To_End_Of_Line); -- |===================================================================== -- | Man page curs_bkgd.3x @@ -1110,64 +1112,64 @@ -- TODO: we could have Set_Background(Window; Character_Attribute_Set) -- because in C it is common to see bkgdset(A_BOLD) or -- bkgdset(COLOR_PAIR(n)) - procedure Set_Background - (Win : Window := Standard_Window; - Ch : Attributed_Character); + procedure Set_Background + (Win : Window := Standard_Window; + Ch : Attributed_Character); -- AKA: wbkgdset() -- AKA: bkgdset() - pragma Inline (Set_Background); + pragma Inline (Set_Background); -- #1A NAME="AFU_71"#2| - procedure Change_Background - (Win : Window := Standard_Window; - Ch : Attributed_Character); + procedure Change_Background + (Win : Window := Standard_Window; + Ch : Attributed_Character); -- AKA: wbkgd() -- AKA: bkgd() - pragma Inline (Change_Background); + pragma Inline (Change_Background); -- #1A NAME="AFU_72"#2| -- ? wbkgdget is not listed in curs_bkgd, getbkgd is thpough. - function Get_Background (Win : Window := Standard_Window) - return Attributed_Character; + function Get_Background (Win : Window := Standard_Window) + return Attributed_Character; -- AKA: wbkgdget() -- AKA: bkgdget() - pragma Inline (Get_Background); + pragma Inline (Get_Background); -- |===================================================================== -- | Man page curs_touch.3x -- |===================================================================== -- #1A NAME="AFU_73"#2| - procedure Untouch (Win : Window := Standard_Window); + procedure Untouch (Win : Window := Standard_Window); -- AKA: untouchwin() - pragma Inline (Untouch); + pragma Inline (Untouch); -- #1A NAME="AFU_74"#2| - procedure Touch (Win : Window := Standard_Window); + procedure Touch (Win : Window := Standard_Window); -- AKA: touchwin() -- #1A NAME="AFU_75"#2| - procedure Touch (Win : Window := Standard_Window; - Start : Line_Position; - Count : Positive); + procedure Touch (Win : Window := Standard_Window; + Start : Line_Position; + Count : Positive); -- AKA: touchline() pragma Inline (Touch); -- #1A NAME="AFU_76"#2| - procedure Change_Lines_Status (Win : Window := Standard_Window; - Start : Line_Position; - Count : Positive; - State : Boolean); + procedure Change_Lines_Status (Win : Window := Standard_Window; + Start : Line_Position; + Count : Positive; + State : Boolean); -- AKA: wtouchln() - pragma Inline (Change_Lines_Status); + pragma Inline (Change_Lines_Status); -- #1A NAME="AFU_77"#2| - function Is_Touched (Win : Window := Standard_Window; - Line : Line_Position) return Boolean; + function Is_Touched (Win : Window := Standard_Window; + Line : Line_Position) return Boolean; -- AKA: is_linetouched() -- #1A NAME="AFU_78"#2| - function Is_Touched (Win : Window := Standard_Window) return Boolean; + function Is_Touched (Win : Window := Standard_Window) return Boolean; -- AKA: is_wintouched() pragma Inline (Is_Touched); @@ -1176,147 +1178,147 @@ -- |===================================================================== -- #1A NAME="AFU_79"#2| - procedure Copy - (Source_Window : Window; - Destination_Window : Window; - Source_Top_Row : Line_Position; - Source_Left_Column : Column_Position; - Destination_Top_Row : Line_Position; - Destination_Left_Column : Column_Position; - Destination_Bottom_Row : Line_Position; - Destination_Right_Column : Column_Position; - Non_Destructive_Mode : Boolean := True); + procedure Copy + (Source_Window : Window; + Destination_Window : Window; + Source_Top_Row : Line_Position; + Source_Left_Column : Column_Position; + Destination_Top_Row : Line_Position; + Destination_Left_Column : Column_Position; + Destination_Bottom_Row : Line_Position; + Destination_Right_Column : Column_Position; + Non_Destructive_Mode : Boolean := True); -- AKA: copywin() - pragma Inline (Copy); + pragma Inline (Copy); -- #1A NAME="AFU_80"#2| - procedure Overwrite (Source_Window : Window; - Destination_Window : Window); + procedure Overwrite (Source_Window : Window; + Destination_Window : Window); -- AKA: overwrite() - pragma Inline (Overwrite); + pragma Inline (Overwrite); -- #1A NAME="AFU_81"#2| - procedure Overlay (Source_Window : Window; - Destination_Window : Window); + procedure Overlay (Source_Window : Window; + Destination_Window : Window); -- AKA: overlay() - pragma Inline (Overlay); + pragma Inline (Overlay); -- |===================================================================== -- | Man page curs_deleteln.3x -- |===================================================================== -- #1A NAME="AFU_82"#2| - procedure Insert_Delete_Lines - (Win : Window := Standard_Window; - Lines : Integer := 1); -- default is to insert one line above + procedure Insert_Delete_Lines + (Win : Window := Standard_Window; + Lines : Integer := 1); -- default is to insert one line above -- AKA: winsdelln() -- AKA: insdelln() - pragma Inline (Insert_Delete_Lines); + pragma Inline (Insert_Delete_Lines); -- #1A NAME="AFU_83"#2| - procedure Delete_Line (Win : Window := Standard_Window); + procedure Delete_Line (Win : Window := Standard_Window); -- AKA: wdeleteln() -- AKA: deleteln() - pragma Inline (Delete_Line); + pragma Inline (Delete_Line); -- #1A NAME="AFU_84"#2| - procedure Insert_Line (Win : Window := Standard_Window); + procedure Insert_Line (Win : Window := Standard_Window); -- AKA: winsertln() -- AKA: insertln() - pragma Inline (Insert_Line); + pragma Inline (Insert_Line); -- |===================================================================== -- | Man page curs_getyx.3x -- |===================================================================== -- #1A NAME="AFU_85"#2| - procedure Get_Size - (Win : Window := Standard_Window; - Number_Of_Lines : out Line_Count; - Number_Of_Columns : out Column_Count); + procedure Get_Size + (Win : Window := Standard_Window; + Number_Of_Lines : out Line_Count; + Number_Of_Columns : out Column_Count); -- AKA: getmaxyx() - pragma Inline (Get_Size); + pragma Inline (Get_Size); -- #1A NAME="AFU_86"#2| - procedure Get_Window_Position - (Win : Window := Standard_Window; - Top_Left_Line : out Line_Position; - Top_Left_Column : out Column_Position); + procedure Get_Window_Position + (Win : Window := Standard_Window; + Top_Left_Line : out Line_Position; + Top_Left_Column : out Column_Position); -- AKA: getbegyx() - pragma Inline (Get_Window_Position); + pragma Inline (Get_Window_Position); -- #1A NAME="AFU_87"#2| - procedure Get_Cursor_Position - (Win : Window := Standard_Window; - Line : out Line_Position; - Column : out Column_Position); + procedure Get_Cursor_Position + (Win : Window := Standard_Window; + Line : out Line_Position; + Column : out Column_Position); -- AKA: getyx() - pragma Inline (Get_Cursor_Position); + pragma Inline (Get_Cursor_Position); -- #1A NAME="AFU_88"#2| - procedure Get_Origin_Relative_To_Parent - (Win : Window; - Top_Left_Line : out Line_Position; - Top_Left_Column : out Column_Position; - Is_Not_A_Subwindow : out Boolean); + procedure Get_Origin_Relative_To_Parent + (Win : 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 + -- Instead of placing -1 in the coordinates as return, we use a Boolean -- to return the info that the window has no parent. - pragma Inline (Get_Origin_Relative_To_Parent); + pragma Inline (Get_Origin_Relative_To_Parent); -- |===================================================================== -- | Man page curs_pad.3x -- |===================================================================== -- #1A NAME="AFU_89"#2| - function New_Pad (Lines : Line_Count; - Columns : Column_Count) return Window; + function New_Pad (Lines : Line_Count; + Columns : Column_Count) return Window; -- AKA: newpad() - pragma Inline (New_Pad); + pragma Inline (New_Pad); -- #1A NAME="AFU_90"#2| - function Sub_Pad - (Pad : Window; - Number_Of_Lines : Line_Count; - Number_Of_Columns : Column_Count; - First_Line_Position : Line_Position; - First_Column_Position : Column_Position) return Window; + function Sub_Pad + (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); + pragma Inline (Sub_Pad); -- #1A NAME="AFU_91"#2| - procedure Refresh - (Pad : Window; - Source_Top_Row : Line_Position; - Source_Left_Column : Column_Position; - Destination_Top_Row : Line_Position; - Destination_Left_Column : Column_Position; - Destination_Bottom_Row : Line_Position; - Destination_Right_Column : Column_Position); + procedure Refresh + (Pad : Window; + Source_Top_Row : Line_Position; + Source_Left_Column : Column_Position; + Destination_Top_Row : Line_Position; + Destination_Left_Column : Column_Position; + Destination_Bottom_Row : Line_Position; + Destination_Right_Column : Column_Position); -- AKA: prefresh() pragma Inline (Refresh); -- #1A NAME="AFU_92"#2| - procedure Refresh_Without_Update - (Pad : Window; - Source_Top_Row : Line_Position; - Source_Left_Column : Column_Position; - Destination_Top_Row : Line_Position; - Destination_Left_Column : Column_Position; - Destination_Bottom_Row : Line_Position; - Destination_Right_Column : Column_Position); + procedure Refresh_Without_Update + (Pad : Window; + Source_Top_Row : Line_Position; + Source_Left_Column : Column_Position; + Destination_Top_Row : Line_Position; + Destination_Left_Column : Column_Position; + Destination_Bottom_Row : Line_Position; + Destination_Right_Column : Column_Position); -- AKA: pnoutrefresh() pragma Inline (Refresh_Without_Update); -- #1A NAME="AFU_93"#2| - procedure Add_Character_To_Pad_And_Echo_It - (Pad : Window; - Ch : Attributed_Character); + procedure Add_Character_To_Pad_And_Echo_It + (Pad : Window; + Ch : Attributed_Character); -- AKA: pechochar() - procedure Add_Character_To_Pad_And_Echo_It - (Pad : Window; - Ch : Character); + procedure Add_Character_To_Pad_And_Echo_It + (Pad : Window; + Ch : Character); pragma Inline (Add_Character_To_Pad_And_Echo_It); -- |===================================================================== @@ -1324,27 +1326,27 @@ -- |===================================================================== -- #1A NAME="AFU_94"#2| - procedure Scroll (Win : Window := Standard_Window; - Amount : Integer := 1); + procedure Scroll (Win : Window := Standard_Window; + Amount : Integer := 1); -- AKA: wscrl() -- AKA: scroll() -- AKA: scrl() - pragma Inline (Scroll); + pragma Inline (Scroll); -- |===================================================================== -- | Man page curs_delch.3x -- |===================================================================== -- #1A NAME="AFU_95"#2| - procedure Delete_Character (Win : Window := Standard_Window); + procedure Delete_Character (Win : Window := Standard_Window); -- AKA: wdelch() -- AKA: delch() -- #1A NAME="AFU_96"#2| - procedure Delete_Character - (Win : Window := Standard_Window; - Line : Line_Position; - Column : Column_Position); + procedure Delete_Character + (Win : Window := Standard_Window; + Line : Line_Position; + Column : Column_Position); -- AKA: mvwdelch() -- AKA: mvdelch() pragma Inline (Delete_Character); @@ -1354,16 +1356,16 @@ -- |===================================================================== -- #1A NAME="AFU_97"#2| - function Peek (Win : Window := Standard_Window) - return Attributed_Character; + function Peek (Win : Window := Standard_Window) + return Attributed_Character; -- AKA: inch() -- AKA: winch() -- #1A NAME="AFU_98"#2| - function Peek - (Win : Window := Standard_Window; - Line : Line_Position; - Column : Column_Position) return Attributed_Character; + function Peek + (Win : Window := Standard_Window; + Line : Line_Position; + Column : Column_Position) return Attributed_Character; -- AKA: mvwinch() -- AKA: mvinch() -- More Peek's follow, pragma Inline appears later. @@ -1373,16 +1375,16 @@ -- |===================================================================== -- #1A NAME="AFU_99"#2| - procedure Insert (Win : Window := Standard_Window; - Ch : Attributed_Character); + procedure Insert (Win : Window := Standard_Window; + Ch : Attributed_Character); -- AKA: winsch() -- AKA: insch() -- #1A NAME="AFU_100"#2| - procedure Insert (Win : Window := Standard_Window; - Line : Line_Position; - Column : Column_Position; - Ch : Attributed_Character); + procedure Insert (Win : Window := Standard_Window; + Line : Line_Position; + Column : Column_Position; + Ch : Attributed_Character); -- AKA: mvwinsch() -- AKA: mvinsch() @@ -1391,20 +1393,20 @@ -- |===================================================================== -- #1A NAME="AFU_101"#2| - procedure Insert (Win : Window := Standard_Window; - Str : String; - Len : Integer := -1); + procedure Insert (Win : Window := Standard_Window; + Str : String; + Len : Integer := -1); -- AKA: winsnstr() -- AKA: winsstr() -- AKA: insnstr() -- AKA: insstr() -- #1A NAME="AFU_102"#2| - procedure Insert (Win : Window := Standard_Window; - Line : Line_Position; - Column : Column_Position; - Str : String; - Len : Integer := -1); + procedure Insert (Win : Window := Standard_Window; + Line : Line_Position; + Column : Column_Position; + Str : String; + Len : Integer := -1); -- AKA: mvwinsnstr() -- AKA: mvwinsstr() -- AKA: mvinsnstr() @@ -1416,20 +1418,20 @@ -- |===================================================================== -- #1A NAME="AFU_103"#2| - procedure Peek (Win : Window := Standard_Window; - Str : out String; - Len : Integer := -1); + procedure Peek (Win : Window := Standard_Window; + Str : out String; + Len : Integer := -1); -- AKA: winnstr() -- AKA: winstr() -- AKA: innstr() -- AKA: instr() -- #1A NAME="AFU_104"#2| - procedure Peek (Win : Window := Standard_Window; - Line : Line_Position; - Column : Column_Position; - Str : out String; - Len : Integer := -1); + procedure Peek (Win : Window := Standard_Window; + Line : Line_Position; + Column : Column_Position; + Str : out String; + Len : Integer := -1); -- AKA: mvwinnstr() -- AKA: mvwinstr() -- AKA: mvinnstr() @@ -1440,34 +1442,34 @@ -- |===================================================================== -- #1A NAME="AFU_105"#2| - procedure Peek (Win : Window := Standard_Window; - Str : out Attributed_String; - Len : Integer := -1); + procedure Peek (Win : Window := Standard_Window; + Str : out Attributed_String; + Len : Integer := -1); -- AKA: winchnstr() -- AKA: winchstr() -- AKA: inchnstr() -- AKA: inchstr() -- #1A NAME="AFU_106"#2| - procedure Peek (Win : Window := Standard_Window; - Line : Line_Position; - Column : Column_Position; - Str : out Attributed_String; - Len : Integer := -1); + procedure Peek (Win : Window := Standard_Window; + Line : Line_Position; + Column : Column_Position; + Str : out Attributed_String; + Len : Integer := -1); -- AKA: mvwinchnstr() -- AKA: mvwinchstr() -- AKA: mvinchnstr() -- AKA: mvinchstr() - -- We don't inline the Peek procedures + -- We do not inline the Peek procedures -- |===================================================================== -- | Man page curs_getstr.3x -- |===================================================================== -- #1A NAME="AFU_107"#2| - procedure Get (Win : Window := Standard_Window; - Str : out String; - Len : Integer := -1); + procedure Get (Win : Window := Standard_Window; + Str : out String; + Len : Integer := -1); -- AKA: wgetnstr() -- AKA: wgetstr() -- AKA: getnstr() @@ -1476,11 +1478,11 @@ -- overflows. -- #1A NAME="AFU_108"#2| - procedure Get (Win : Window := Standard_Window; - Line : Line_Position; - Column : Column_Position; - Str : out String; - Len : Integer := -1); + procedure Get (Win : Window := Standard_Window; + Line : Line_Position; + Column : Column_Position; + Str : out String; + Len : Integer := -1); -- AKA: mvwgetnstr() -- AKA: mvwgetstr() -- AKA: mvgetnstr() @@ -1493,90 +1495,90 @@ -- 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 Label_Justification is (Left, Centered, Right); + 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_109"#2| - procedure Init_Soft_Label_Keys - (Format : Soft_Label_Key_Format := Three_Two_Three); + procedure Init_Soft_Label_Keys + (Format : Soft_Label_Key_Format := Three_Two_Three); -- AKA: slk_init() - pragma Inline (Init_Soft_Label_Keys); + pragma Inline (Init_Soft_Label_Keys); -- #1A NAME="AFU_110"#2| - procedure Set_Soft_Label_Key (Label : Label_Number; - Text : String; - Fmt : Label_Justification := Left); + procedure Set_Soft_Label_Key (Label : Label_Number; + Text : String; + Fmt : Label_Justification := Left); -- AKA: slk_set() - -- We don't inline this procedure + -- We do not inline this procedure -- #1A NAME="AFU_111"#2| - procedure Refresh_Soft_Label_Keys; + procedure Refresh_Soft_Label_Keys; -- AKA: slk_refresh() - pragma Inline (Refresh_Soft_Label_Keys); + pragma Inline (Refresh_Soft_Label_Keys); -- #1A NAME="AFU_112"#2| - procedure Refresh_Soft_Label_Keys_Without_Update; + procedure Refresh_Soft_Label_Keys_Without_Update; -- AKA: slk_noutrefresh() - pragma Inline (Refresh_Soft_Label_Keys_Without_Update); + pragma Inline (Refresh_Soft_Label_Keys_Without_Update); -- #1A NAME="AFU_113"#2| - procedure Get_Soft_Label_Key (Label : Label_Number; - Text : out String); + procedure Get_Soft_Label_Key (Label : Label_Number; + Text : out String); -- AKA: slk_label() -- #1A NAME="AFU_114"#2| - function Get_Soft_Label_Key (Label : Label_Number) return String; + function Get_Soft_Label_Key (Label : Label_Number) return String; -- AKA: slk_label() -- Same as function pragma Inline (Get_Soft_Label_Key); -- #1A NAME="AFU_115"#2| - procedure Clear_Soft_Label_Keys; + procedure Clear_Soft_Label_Keys; -- AKA: slk_clear() - pragma Inline (Clear_Soft_Label_Keys); + pragma Inline (Clear_Soft_Label_Keys); -- #1A NAME="AFU_116"#2| - procedure Restore_Soft_Label_Keys; + procedure Restore_Soft_Label_Keys; -- AKA: slk_restore() - pragma Inline (Restore_Soft_Label_Keys); + pragma Inline (Restore_Soft_Label_Keys); -- #1A NAME="AFU_117"#2| - procedure Touch_Soft_Label_Keys; + procedure Touch_Soft_Label_Keys; -- AKA: slk_touch() - pragma Inline (Touch_Soft_Label_Keys); + pragma Inline (Touch_Soft_Label_Keys); -- #1A NAME="AFU_118"#2| - procedure Switch_Soft_Label_Key_Attributes - (Attr : Character_Attribute_Set; - On : Boolean := True); + procedure Switch_Soft_Label_Key_Attributes + (Attr : Character_Attribute_Set; + On : Boolean := True); -- AKA: slk_attron() -- AKA: slk_attroff() - pragma Inline (Switch_Soft_Label_Key_Attributes); + pragma Inline (Switch_Soft_Label_Key_Attributes); -- #1A NAME="AFU_119"#2| - procedure Set_Soft_Label_Key_Attributes - (Attr : Character_Attribute_Set := Normal_Video; - Color : Color_Pair := Color_Pair'First); + procedure Set_Soft_Label_Key_Attributes + (Attr : Character_Attribute_Set := Normal_Video; + Color : Color_Pair := Color_Pair'First); -- AKA: slk_attrset() - pragma Inline (Set_Soft_Label_Key_Attributes); + pragma Inline (Set_Soft_Label_Key_Attributes); -- #1A NAME="AFU_120"#2| - function Get_Soft_Label_Key_Attributes return Character_Attribute_Set; + function Get_Soft_Label_Key_Attributes return Character_Attribute_Set; -- AKA: slk_attr() -- #1A NAME="AFU_121"#2| - function Get_Soft_Label_Key_Attributes return Color_Pair; + function Get_Soft_Label_Key_Attributes return Color_Pair; -- AKA: slk_attr() pragma Inline (Get_Soft_Label_Key_Attributes); -- #1A NAME="AFU_122"#2| - procedure Set_Soft_Label_Key_Color (Pair : Color_Pair); + procedure Set_Soft_Label_Key_Color (Pair : Color_Pair); -- AKA: slk_color() - pragma Inline (Set_Soft_Label_Key_Color); + pragma Inline (Set_Soft_Label_Key_Color); -- |===================================================================== -- | Man page keybound.3x @@ -1588,20 +1590,20 @@ -- |===================================================================== -- #1A NAME="AFU_123"#2| - procedure Enable_Key (Key : Special_Key_Code; - Enable : Boolean := True); + procedure Enable_Key (Key : Special_Key_Code; + Enable : Boolean := True); -- AKA: keyok() - pragma Inline (Enable_Key); + pragma Inline (Enable_Key); -- |===================================================================== -- | Man page define_key.3x -- |===================================================================== -- #1A NAME="AFU_124"#2| - procedure Define_Key (Definition : String; - Key : Special_Key_Code); + procedure Define_Key (Definition : String; + Key : Special_Key_Code); -- AKA: define_key() - pragma Inline (Define_Key); + pragma Inline (Define_Key); -- |===================================================================== -- | Man page curs_util.3x @@ -1612,88 +1614,88 @@ -- -- #1A NAME="AFU_125"#2| - procedure Key_Name (Key : Real_Key_Code; - Name : out String); + procedure Key_Name (Key : Real_Key_Code; + Name : out String); -- AKA: keyname() -- The external name for a real keystroke. -- #1A NAME="AFU_126"#2| - function Key_Name (Key : Real_Key_Code) return String; + function Key_Name (Key : Real_Key_Code) return String; -- AKA: keyname() -- Same as function - -- We don't inline this routine + -- We do not inline this routine -- #1A NAME="AFU_127"#2| - procedure Un_Control (Ch : Attributed_Character; - Str : out String); + procedure Un_Control (Ch : Attributed_Character; + Str : out String); -- AKA: unctrl() -- #1A NAME="AFU_128"#2| - function Un_Control (Ch : Attributed_Character) return String; + function Un_Control (Ch : Attributed_Character) return String; -- AKA: unctrl() -- Same as function pragma Inline (Un_Control); -- #1A NAME="AFU_129"#2| - procedure Delay_Output (Msecs : Natural); + procedure Delay_Output (Msecs : Natural); -- AKA: delay_output() - pragma Inline (Delay_Output); + pragma Inline (Delay_Output); -- #1A NAME="AFU_130"#2| - procedure Flush_Input; + procedure Flush_Input; -- AKA: flushinp() - pragma Inline (Flush_Input); + pragma Inline (Flush_Input); -- |===================================================================== -- | Man page curs_termattrs.3x -- |===================================================================== -- #1A NAME="AFU_131"#2| - function Baudrate return Natural; + function Baudrate return Natural; -- AKA: baudrate() - pragma Inline (Baudrate); + pragma Inline (Baudrate); -- #1A NAME="AFU_132"#2| - function Erase_Character return Character; + function Erase_Character return Character; -- AKA: erasechar() - pragma Inline (Erase_Character); + pragma Inline (Erase_Character); -- #1A NAME="AFU_133"#2| - function Kill_Character return Character; + function Kill_Character return Character; -- AKA: killchar() - pragma Inline (Kill_Character); + pragma Inline (Kill_Character); -- #1A NAME="AFU_134"#2| - function Has_Insert_Character return Boolean; + function Has_Insert_Character return Boolean; -- AKA: has_ic() - pragma Inline (Has_Insert_Character); + pragma Inline (Has_Insert_Character); -- #1A NAME="AFU_135"#2| - function Has_Insert_Line return Boolean; + function Has_Insert_Line return Boolean; -- AKA: has_il() - pragma Inline (Has_Insert_Line); + pragma Inline (Has_Insert_Line); -- #1A NAME="AFU_136"#2| - function Supported_Attributes return Character_Attribute_Set; + function Supported_Attributes return Character_Attribute_Set; -- AKA: termattrs() - pragma Inline (Supported_Attributes); + pragma Inline (Supported_Attributes); -- #1A NAME="AFU_137"#2| - procedure Long_Name (Name : out String); + procedure Long_Name (Name : out String); -- AKA: longname() -- #1A NAME="AFU_138"#2| - function Long_Name return String; + function Long_Name return String; -- AKA: longname() -- Same as function pragma Inline (Long_Name); -- #1A NAME="AFU_139"#2| - procedure Terminal_Name (Name : out String); + procedure Terminal_Name (Name : out String); -- AKA: termname() -- #1A NAME="AFU_140"#2| - function Terminal_Name return String; + function Terminal_Name return String; -- AKA: termname() -- Same as function pragma Inline (Terminal_Name); @@ -1709,151 +1711,151 @@ -- This is equivalent to c.Color := n; -- #1A NAME="AFU_141"#2| - procedure Start_Color; + procedure Start_Color; -- AKA: start_color() pragma Import (C, Start_Color, "start_color"); -- #1A NAME="AFU_142"#2| - procedure Init_Pair (Pair : Redefinable_Color_Pair; - Fore : Color_Number; - Back : Color_Number); + procedure Init_Pair (Pair : Redefinable_Color_Pair; + Fore : Color_Number; + Back : Color_Number); -- AKA: init_pair() - pragma Inline (Init_Pair); + pragma Inline (Init_Pair); -- #1A NAME="AFU_143"#2| - procedure Pair_Content (Pair : Color_Pair; - Fore : out Color_Number; - Back : out Color_Number); + procedure Pair_Content (Pair : Color_Pair; + Fore : out Color_Number; + Back : out Color_Number); -- AKA: pair_content() - pragma Inline (Pair_Content); + pragma Inline (Pair_Content); -- #1A NAME="AFU_144"#2| - function Has_Colors return Boolean; + function Has_Colors return Boolean; -- AKA: has_colors() - pragma Inline (Has_Colors); + pragma Inline (Has_Colors); -- #1A NAME="AFU_145"#2| - procedure Init_Color (Color : Color_Number; - Red : RGB_Value; - Green : RGB_Value; - Blue : RGB_Value); + procedure Init_Color (Color : Color_Number; + Red : RGB_Value; + Green : RGB_Value; + Blue : RGB_Value); -- AKA: init_color() - pragma Inline (Init_Color); + pragma Inline (Init_Color); -- #1A NAME="AFU_146"#2| - function Can_Change_Color return Boolean; + function Can_Change_Color return Boolean; -- AKA: can_change_color() - pragma Inline (Can_Change_Color); + pragma Inline (Can_Change_Color); -- #1A NAME="AFU_147"#2| - procedure Color_Content (Color : Color_Number; - Red : out RGB_Value; - Green : out RGB_Value; - Blue : out RGB_Value); + procedure Color_Content (Color : Color_Number; + Red : out RGB_Value; + Green : out RGB_Value; + Blue : out RGB_Value); -- AKA: color_content() - pragma Inline (Color_Content); + pragma Inline (Color_Content); -- |===================================================================== -- | Man page curs_kernel.3x -- |===================================================================== -- | Not implemented: getsyx, setsyx -- - type Curses_Mode is (Curses, Shell); + type Curses_Mode is (Curses, Shell); -- #1A NAME="AFU_148"#2| - procedure Save_Curses_Mode (Mode : Curses_Mode); + procedure Save_Curses_Mode (Mode : Curses_Mode); -- AKA: def_prog_mode() -- AKA: def_shell_mode() - pragma Inline (Save_Curses_Mode); + pragma Inline (Save_Curses_Mode); -- #1A NAME="AFU_149"#2| - procedure Reset_Curses_Mode (Mode : Curses_Mode); + procedure Reset_Curses_Mode (Mode : Curses_Mode); -- AKA: reset_prog_mode() -- AKA: reset_shell_mode() - pragma Inline (Reset_Curses_Mode); + pragma Inline (Reset_Curses_Mode); -- #1A NAME="AFU_150"#2| - procedure Save_Terminal_State; + procedure Save_Terminal_State; -- AKA: savetty() - pragma Inline (Save_Terminal_State); + pragma Inline (Save_Terminal_State); -- #1A NAME="AFU_151"#2| - procedure Reset_Terminal_State; + procedure Reset_Terminal_State; -- AKA: resetty(); - pragma Inline (Reset_Terminal_State); + pragma Inline (Reset_Terminal_State); - type Stdscr_Init_Proc is access - function (Win : Window; - Columns : Column_Count) return Integer; - pragma Convention (C, Stdscr_Init_Proc); + type Stdscr_Init_Proc is access + 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_152"#2| - procedure Rip_Off_Lines (Lines : Integer; - Proc : Stdscr_Init_Proc); + procedure Rip_Off_Lines (Lines : Integer; + Proc : Stdscr_Init_Proc); -- AKA: ripoffline() -- N.B.: to be more precise, this uses a ncurses specific enhancement of -- ripoffline(), in which the Lines argument absolute value is the -- number of lines to be ripped of. The official ripoffline() only - -- uses the sign of Lines to rip of a single line from bottom or top. - pragma Inline (Rip_Off_Lines); + -- uses the sign of Lines to remove a single line from bottom or top. + pragma Inline (Rip_Off_Lines); - type Cursor_Visibility is (Invisible, Normal, Very_Visible); + type Cursor_Visibility is (Invisible, Normal, Very_Visible); -- #1A NAME="AFU_153"#2| - procedure Set_Cursor_Visibility (Visibility : in out Cursor_Visibility); + procedure Set_Cursor_Visibility (Visibility : in out Cursor_Visibility); -- AKA: curs_set() - pragma Inline (Set_Cursor_Visibility); + pragma Inline (Set_Cursor_Visibility); -- #1A NAME="AFU_154"#2| - procedure Nap_Milli_Seconds (Ms : Natural); + procedure Nap_Milli_Seconds (Ms : Natural); -- AKA: napms() - pragma Inline (Nap_Milli_Seconds); + pragma Inline (Nap_Milli_Seconds); -- |===================================================================== -- | Some useful helpers. -- |===================================================================== - type Transform_Direction is (From_Screen, To_Screen); - procedure Transform_Coordinates - (W : Window := Standard_Window; - Line : in out Line_Position; - Column : in out Column_Position; - Dir : Transform_Direction := From_Screen); + type Transform_Direction is (From_Screen, To_Screen); + procedure Transform_Coordinates + (W : Window := Standard_Window; + Line : in out Line_Position; + Column : in out Column_Position; + Dir : Transform_Direction := From_Screen); -- This procedure transforms screen coordinates into coordinates relative -- to the window and vice versa, depending on the Dir parameter. - -- Screen coordinates are the position informations on the physical device. + -- Screen coordinates are the position information for the physical device. -- An Curses_Exception will be raised if Line and Column are not in the -- Window or if you pass the Null_Window as argument. - -- We don't inline this procedure + -- We do not inline this procedure -- |===================================================================== -- | Man page default_colors.3x -- |===================================================================== -- #1A NAME="AFU_155"#2| - procedure Use_Default_Colors; + procedure Use_Default_Colors; -- AKA: use_default_colors() - pragma Inline (Use_Default_Colors); + pragma Inline (Use_Default_Colors); -- #1A NAME="AFU_156"#2| - procedure Assume_Default_Colors (Fore : Color_Number := Default_Color; - Back : 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); + pragma Inline (Assume_Default_Colors); -- |===================================================================== -- | Man page curs_extend.3x -- |===================================================================== -- #1A NAME="AFU_157"#2| - function Curses_Version return String; + function Curses_Version return String; -- AKA: curses_version() -- #1A NAME="AFU_158"#2| -- The returnvalue is the previous setting of the flag - function Use_Extended_Names (Enable : Boolean) return Boolean; + function Use_Extended_Names (Enable : Boolean) return Boolean; -- AKA: use_extended_names() -- |===================================================================== @@ -1861,7 +1863,7 @@ -- |===================================================================== -- #1A NAME="AFU_159"#2| - procedure Curses_Free_All; + procedure Curses_Free_All; -- AKA: _nc_freeall() -- |===================================================================== @@ -1869,19 +1871,19 @@ -- |===================================================================== -- #1A NAME="AFU_160"#2| - procedure Screen_Dump_To_File (Filename : String); + procedure Screen_Dump_To_File (Filename : String); -- AKA: scr_dump() -- #1A NAME="AFU_161"#2| - procedure Screen_Restore_From_File (Filename : String); + procedure Screen_Restore_From_File (Filename : String); -- AKA: scr_restore() -- #1A NAME="AFU_162"#2| - procedure Screen_Init_From_File (Filename : String); + procedure Screen_Init_From_File (Filename : String); -- AKA: scr_init() -- #1A NAME="AFU_163"#2| - procedure Screen_Set_File (Filename : String); + procedure Screen_Set_File (Filename : String); -- AKA: scr_set() -- |===================================================================== @@ -1895,7 +1897,7 @@ -- Not implemented: printw, wprintw, mvprintw, mvwprintw, vwprintw, -- vw_printw -- Please use the Ada style Text_IO child packages for formatted - -- printing. It doesn't make a lot of sense to map the printf style + -- printing. It does not make a lot of sense to map the printf style -- C functions to Ada. -- |===================================================================== @@ -1913,9 +1915,9 @@ -- |===================================================================== -- #1A NAME="AFU_164"#2| - procedure Resize (Win : Window := Standard_Window; - Number_Of_Lines : Line_Count; - Number_Of_Columns : Column_Count); + procedure Resize (Win : Window := Standard_Window; + Number_Of_Lines : Line_Count; + Number_Of_Columns : Column_Count); -- AKA: wresize() private @@ -1925,9 +1927,7 @@ -- The next constants are generated and may be different on your -- architecture. -- - Sizeof_bool : constant Natural := 1; -- bool - Offset_XY : constant Natural := 1; -- int - + Sizeof_bool : constant Natural := 1; -- bool type Curses_Bool is mod 2 ** Interfaces.C.char'Size; Curses_Bool_False : constant Curses_Bool := 0;