|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 5120 (0x1400)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Fruit_Display_Environment_4, seg_04be79, seg_04be7b
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
with Window_Io;
with Slot;
with Fruit_Frames_4;
package body Fruit_Display_Environment_4 is
use Fruit_Frames_4;
package Wio renames Window_Io;
The_Table_Line : constant := 15;
The_Table_Column : constant := 10;
The_Image : Wio.File_Type;
The_Max_X : Integer := Slot.Get (Max_X);
The_Min_X : Integer := Slot.Get (Min_X);
The_Max_Y : Integer := Slot.Get (Max_Y);
The_Min_Y : Integer := Slot.Get (Min_Y);
procedure Initialize is
begin
Wio.Create (The_Image, Wio.Out_File, "The fruitcake environment");
end Initialize;
procedure Print_Limits is
Column : Wio.Column_Number := The_Table_Column;
Line : Wio.Line_Number := The_Table_Line - The_Max_Y;
begin
Wio.New_Line (The_Image);
Wio.Overwrite (The_Image, " THE ENVIRONMENT : ");
Wio.New_Line (The_Image);
Wio.New_Line (The_Image);
for J in reverse The_Min_Y .. The_Max_Y loop
Wio.Position_Cursor (The_Image, Line, Column - 7);
Wio.Overwrite (The_Image, Integer'Image (J) & " *");
Wio.Position_Cursor (The_Image, Line,
Column + ((The_Max_X - The_Min_X + 1)) * 5);
Wio.Overwrite (The_Image, "*");
Line := Line + 1;
end loop;
Wio.Position_Cursor (The_Image, The_Table_Line, The_Table_Column - 4);
Wio.Overwrite (The_Image, "****");
Column := The_Table_Column;
Wio.Position_Cursor (The_Image, The_Table_Line, Column);
for I in The_Min_X .. The_Max_X loop
Wio.Position_Cursor (The_Image, The_Table_Line, Column);
Wio.Overwrite (The_Image, "*****");
Column := Column + 5;
end loop;
Wio.Position_Cursor
(The_Image, The_Table_Line,
The_Table_Column + (The_Max_X - The_Min_X + 1) * 5);
Wio.Overwrite (The_Image, "*");
Column := The_Table_Column;
for I in The_Min_X .. The_Max_X loop
Wio.Position_Cursor (The_Image, The_Table_Line + 1, Column);
Wio.Overwrite (The_Image, Integer'Image (I));
Column := Column + 5;
end loop;
Wio.New_Line (The_Image);
end Print_Limits;
procedure Print_One_Block (X, Y : Integer; What_Label : Character) is
-- ! x = column and y = line
begin
Wio.Position_Cursor (The_Image, The_Table_Line - Y,
The_Table_Column + (5 * (X - 1)));
if What_Label = ' ' then
Wio.Overwrite (The_Image, " ");
else
Wio.Overwrite (The_Image, "[" & Character (What_Label) & "]");
end if;
end Print_One_Block;
begin
Initialize;
end Fruit_Display_Environment_4;
nblk1=4
nid=2
hdr6=6
[0x00] rec0=24 rec1=00 rec2=01 rec3=006
[0x01] rec0=14 rec1=00 rec2=03 rec3=004
[0x02] rec0=1c rec1=00 rec2=04 rec3=000
[0x03] rec0=0d rec1=00 rec2=02 rec3=000
tail 0x217515f908690698dff76 0x42a00088462063c03
Free Block Chain:
0x2: 0000 00 00 01 ef 80 10 75 6d 6e 20 61 6e 64 20 79 20 ┆ umn and y ┆