-- B O D Y --
-- --
------------------------------------------------------------------------------
--- Copyright (c) 2000,2004 Free Software Foundation, Inc. --
+-- Copyright (c) 2000-2004,2006 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 --
------------------------------------------------------------------------------
-- Author: Eugene V. Melaragno <aldomel@ix.netcom.com> 2000
-- Version Control
--- $Revision: 1.6 $
--- $Date: 2004/08/21 21:37:00 $
+-- $Revision: 1.7 $
+-- $Date: 2006/06/25 14:24:40 $
-- Binding Version 01.00
------------------------------------------------------------------------------
-- Windows and scrolling tester.
procedure ncurses2.acs_and_scroll is
-
Macro_Quit : constant Key_Code := Character'Pos ('Q') mod 16#20#;
Macro_Escape : constant Key_Code := Character'Pos ('[') mod 16#20#;
Quit : constant Key_Code := CTRL ('Q');
Escape : constant Key_Code := CTRL ('[');
-
Botlines : constant Line_Position := 4;
type pair is record
use Ada.Streams.Stream_IO;
-
-- A linked list
-- I wish there was a standard library linked list. Oh well.
type Frame is record
when Curses_Exception => return False;
end HaveScroll;
-
procedure newwin_legend (curpw : Window) is
package p is new genericPuts (200);
Clear_To_End_Of_Line;
end newwin_legend;
-
procedure transient (curpw : Window; msg : String) is
begin
newwin_legend (curpw);
Clear_To_End_Of_Line;
end transient;
-
procedure newwin_report (win : Window := Standard_Window) is
y : Line_Position;
x : Column_Position;
end loop;
end selectcell;
-
function getwindow return Window is
rwindow : Window;
ul, lr : pair;
return rwindow;
end getwindow;
-
procedure newwin_move (win : Window;
dy : Line_Position;
dx : Column_Position) is
case c is
when Character'Pos ('c') mod 16#20# => -- Ctrl('c')
declare
- neww : FrameA := new Frame'(null, null, False, False,
- Null_Window);
+ neww : constant FrameA := new Frame'(null, null,
+ False, False,
+ Null_Window);
begin
neww.wind := getwindow;
if neww.wind = Null_Window then