]> ncurses.scripts.mit.edu Git - ncurses.git/blob - Ada95/ada_include/terminal_interface-curses-text_io-modular_io.ads
ncurses 4.1
[ncurses.git] / Ada95 / ada_include / terminal_interface-curses-text_io-modular_io.ads
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                           GNAT ncurses Binding                           --
4 --                                                                          --
5 --               Terminal_Interface.Curses.Text_IO.Modular_IO               --
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.4 $
26 ------------------------------------------------------------------------------
27 generic
28    type Num is mod <>;
29
30 package Terminal_Interface.Curses.Text_IO.Modular_IO is
31
32    Default_Width : Field := Num'Width;
33    Default_Base  : Number_Base := 10;
34
35    procedure Put
36      (Win   : in Window;
37       Item  : in Num;
38       Width : in Field := Default_Width;
39       Base  : in Number_Base := Default_Base);
40
41    procedure Put
42      (Item  : in Num;
43       Width : in Field := Default_Width;
44       Base  : in Number_Base := Default_Base);
45
46 private
47    pragma Inline (Put);
48
49 end Terminal_Interface.Curses.Text_IO.Modular_IO;