7927ac0ea13675d178d836cb8a518884d878b0cc
[ncurses.git] / Ada95 / samples / sample-keyboard_handler.ads
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                       GNAT ncurses Binding Samples                       --
4 --                                                                          --
5 --                           Sample.Keyboard_Handler                        --
6 --                                                                          --
7 --                                 S P E C                                  --
8 --                                                                          --
9 --  Version 00.92                                                           --
10 --                                                                          --
11 --  The ncurses Ada95 binding is copyrighted 1996 by                        --
12 --  Juergen Pfeifer, Email: Juergen.Pfeifer@T-Online.de                     --
13 --                                                                          --
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.                                                     --
21 --                                                                          --
22 --  This binding comes AS IS with no warranty, implied or expressed.        --
23 ------------------------------------------------------------------------------
24 --  Version Control
25 --  $Revision: 1.2 $
26 ------------------------------------------------------------------------------
27 with Terminal_Interface.Curses; use Terminal_Interface.Curses;
28
29 --  This package contains a centralized keyboard handler used throughout
30 --  this example. The handler establishes a timeout mechanism that provides
31 --  periodical updates of the common header lines used in this example.
32 --
33 package Sample.Keyboard_Handler is
34
35    function Get_Key (Win : Window := Standard_Window) return Real_Key_Code;
36    --  The central routine for handling keystrokes.
37
38    procedure Init_Keyboard_Handler;
39    --  Initialize the keyboard
40
41 end Sample.Keyboard_Handler;