-- B O D Y --
-- --
------------------------------------------------------------------------------
--- Copyright (c) 1998 Free Software Foundation, Inc. --
+-- Copyright (c) 1998,2008 Free Software Foundation, Inc. --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
-- copy of this software and associated documentation files (the --
-- sale, use or other dealings in this Software without prior written --
-- authorization. --
------------------------------------------------------------------------------
--- Author: Juergen Pfeifer <juergen.pfeifer@gmx.net> 1996
+-- Author: Juergen Pfeifer, 1996
-- Version Control
--- $Revision: 1.11 $
+-- $Revision: 1.16 $
+-- $Date: 2008/07/26 18:48:46 $
-- Binding Version 01.00
------------------------------------------------------------------------------
with Text_IO;
if K = QUIT then
return True;
elsif K = SELECT_ITEM then
- if Idx in 1 .. 4 then
+ if Idx <= 4 then
Hide (Pan);
Update_Panels;
end if;
when 4 => Sample.Text_IO_Demo.Demo;
when others => null;
end case;
- if Idx in 1 .. 4 then
+ if Idx <= 4 then
Top (Pan);
Show (Pan);
Update_Panels;
Init_Keyboard_Handler;
- Set_Echo_Mode (FALSE);
+ Set_Echo_Mode (False);
Set_Raw_Mode;
Set_Meta_Mode;
Set_KeyPad_Mode;
-- We have some fixed key throughout this sample
Main_Menu;
End_Windows;
+ Curses_Free_All;
exception
when Event : others =>