1 ------------------------------------------------------------------------------
3 -- GNAT ncurses Binding --
5 -- Terminal_Interface.Curses.Text_IO.Integer_IO --
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 ------------------------------------------------------------------------------
28 with Terminal_Interface.Curses.Text_IO.Aux;
30 package body Terminal_Interface.Curses.Text_IO.Integer_IO is
32 package Aux renames Terminal_Interface.Curses.Text_IO.Aux;
33 package IIO is new Ada.Text_IO.Integer_IO (Num);
38 Width : in Field := Default_Width;
39 Base : in Number_Base := Default_Base)
41 Buf : String (1 .. Field'Last);
43 IIO.Put (Buf, Item, Base);
44 Aux.Put_Buf (Win, Buf, Width);
49 Width : in Field := Default_Width;
50 Base : in Number_Base := Default_Base)
53 Put (Get_Window, Item, Width, Base);
56 end Terminal_Interface.Curses.Text_IO.Integer_IO;