1 ------------------------------------------------------------------------------
3 -- GNAT ncurses Binding Samples --
11 -- The ncurses Ada95 binding is copyrighted 1996 by --
12 -- Juergen Pfeifer, Email: Juergen.Pfeifer@T-Online.de --
14 -- Permission is hereby granted to reproduce and distribute this --
15 -- binding by any means and for any fee, whether alone or as part --
16 -- of a larger distribution, in source or in binary form, PROVIDED --
17 -- this notice is included with any such distribution, and is not --
18 -- removed from any of its header files. Mention of ncurses and the --
19 -- author of this binding in any applications linked with it is --
20 -- highly appreciated. --
22 -- This binding comes AS IS with no warranty, implied or expressed. --
23 ------------------------------------------------------------------------------
26 ------------------------------------------------------------------------------
27 with Terminal_Interface.Curses; use Terminal_Interface.Curses;
29 package Sample.Manifest is
31 QUIT : constant User_Key_Code := User_Key_Code'First;
32 SELECT_ITEM : constant User_Key_Code := QUIT + 1;
34 FKEY_HELP : constant Label_Number := 1;
35 HELP_CODE : constant Special_Key_Code := Key_F1;
36 FKEY_EXPLAIN : constant Label_Number := 2;
37 EXPLAIN_CODE : constant Special_Key_Code := Key_F2;
38 FKEY_QUIT : constant Label_Number := 3;
39 QUIT_CODE : constant Special_Key_Code := Key_F3;
41 Menu_Marker : constant String := "=> ";
43 Default_Colors : constant Redefinable_Color_Pair := 1;
44 Menu_Fore_Color : constant Redefinable_Color_Pair := 2;
45 Menu_Back_Color : constant Redefinable_Color_Pair := 3;
46 Menu_Grey_Color : constant Redefinable_Color_Pair := 4;
47 Form_Fore_Color : constant Redefinable_Color_Pair := 5;
48 Form_Back_Color : constant Redefinable_Color_Pair := 6;
49 Notepad_Color : constant Redefinable_Color_Pair := 7;
50 Help_Color : constant Redefinable_Color_Pair := 8;
51 Header_Color : constant Redefinable_Color_Pair := 9;