1 ------------------------------------------------------------------------------
3 -- GNAT ncurses Binding Samples --
5 -- Sample.Keyboard_Handler --
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 -- 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.
33 package Sample.Keyboard_Handler is
35 function Get_Key (Win : Window := Standard_Window) return Real_Key_Code;
36 -- The central routine for handling keystrokes.
38 procedure Init_Keyboard_Handler;
39 -- Initialize the keyboard
41 end Sample.Keyboard_Handler;