[31m-- Skywalker is another attempt of A. i. written with Ada.[m
[31m-- Skywalker is Copyright (C) 2024 Manuel De Girardi ; [m
[31m--[m
[31m--   This program is free software; you can redistribute it and/or modify[m
[31m--   it under the terms of the GNU General Public License as published by[m
[31m--   the Free Software Foundation; either version 2 of the License, or[m
[31m--   (at your option) any later version.[m
[31m--[m
[31m--   This program is distributed in the hope that it will be useful,[m
[31m--   but WITHOUT ANY WARRANTY; without even the implied warranty of[m
[31m--   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the[m
[31m--   GNU General Public License for more details.[m
[31m--[m
[31m--   You should have received a copy of the GNU General Public License[m
[31m--   along with this program; if not, write to the Free Software[m
[31m--   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA[m
[31m--[m
[31m-- Date := "2024-11-12 09:45:23"[m
[31m-- Version := "0.0.8r"[m

[01;34mwith[m Sky[31m.[mAnsi[31m.[mConsole[31m;[m
[01;34mwith[m Sky[31m.[mAnsi[31m.[mWindows[31m;[m
[01;34muse[m sky[31m;[m
[01;34mwith[m Ada[31m.[mUnchecked_Deallocation[31m;[m

[01;34mgeneric[m
   Lines [31m:[m Line_Range [31m:=[m [35m67[m[31m;[m
   Columns [31m:[m Column_Range [31m:=[m [35m240[m[31m;[m
   Style [31m:[m Style_Enum [31m:=[m Color_And_Color[31m;[m
   [01;34mwith[m [01;34mpackage[m Ansi_Windows [01;34mis[m [01;34mnew[m Sky[31m.[mAnsi[31m.[m[01;30mWindows[m [31m(<>);[m

[01;34mpackage[m Sky[31m.[mWindows [01;34mis[m
   
   [01;34mfunction[m Lines_Max [01;34mreturn[m Line_Range[31m;[m
   [01;34mfunction[m Cols_Max [01;34mreturn[m Column_Range[31m;[m
   [01;34muse[m Ansi[31m.[mConsole[31m;[m
   [01;34muse[m Ansi_Windows[31m;[m
   
   [01;34mtype[m Window_Record [01;34mis[m [01;34mtagged[m
      [01;34mrecord[m
	 L [31m:[m Line_Range [31m:=[m [35m1[m[31m;[m
	 C [31m:[m Column_Range [31m:=[m [35m1[m[31m;[m
	 H [31m:[m Line_Range [31m:=[m [35m67[m[31m;[m
	 W [31m:[m Column_Range [31m:=[m [35m240[m[31m;[m	 
	 Text_Color [31m:[m Color_Type [31m:=[m Cyan[31m;[m
	 Win [31m:[m Window_Type[31m;[m
      [01;34mend[m [01;34mrecord[m[31m;[m
   
   
   
   [01;34mprocedure[m [01;30mInitialize[m [31m([mWin [31m:[m [01;34min[m [01;34mout[m Window_Record[31m;[m 
			 Line_Pos [31m:[m [01;34min[m Line_Range[31m;[m
			 Col_Pos [31m:[m [01;34min[m column_Range[31m;[m
			 Lines [31m:[m [01;34min[m Line_Range[31m;[m 
			 Cols [31m:[m [01;34min[m Column_Range[31m;[m
			 Color [31m:[m [01;34min[m Color_Type[31m;[m
			 Box_Color [31m:[m [01;34min[m Color_Type[31m);[m
   
   [01;34mprocedure[m [01;30mSet_Color[m [31m([mWindow [31m:[m [01;34min[m [01;34mout[m Window_Record[31m;[m Color [31m:[m Color_Type[31m);[m
   
   [01;34mprocedure[m [01;30mDraw_Window[m [31m([mWin [31m:[m [01;34min[m Window_Record[31m);[m
   
   [01;34mprocedure[m [01;30mEnlight_Window[m [31m([mWin [31m:[m [01;34min[m Window_Record[31m);[m
   
   [01;34mprocedure[m [01;30mDraw_Text[m [31m([mWin [31m:[m [01;34min[m Window_Record[31m;[m 
   			Line [31m:[m [01;34min[m Line_Range[31m;[m
   			Col [31m:[m [01;34min[m Column_Range[31m;[m
   			Color [31m:[m [01;34min[m Color_Type[31m;[m Text [31m:[m [01;34min[m [32mWide_String[m[31m);[m
   
   [01;34mprocedure[m [01;30mEnlight_Draw_Text[m [31m([mWin [31m:[m [01;34min[m Window_Record[31m;[m 
   			Line [31m:[m [01;34min[m Line_Range[31m;[m
   			Col [31m:[m [01;34min[m Column_Range[31m;[m
   			Color [31m:[m [01;34min[m Color_Type[31m;[m Text [31m:[m [01;34min[m [32mWide_String[m[31m);[m
   
   [31m--  procedure Draw_Text (Win : in Window_Record;[m
   [31m--  			Line : in Line_Range;[m
   [31m--  			Col : in Column_Range;[m
   [31m--  			Color : in Color_Type; Text : in String);[m
   
   [01;34mtype[m Win_Access [01;34mis[m [01;34maccess[m [01;34mall[m Window_Record[31m;[m
   [01;34mprocedure[m Free_Win [01;34mis[m [01;34mnew[m Ada[31m.[m[01;30mUnchecked_Deallocation[m [31m([mWindow_Record[31m,[m Win_Access[31m);[m


[01;34mend[m Sky[31m.[mWindows [31m;[m 
