|
|
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 Printer, seg_033ef0, seg_035d66, seg_036903
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
with Text_Io, Bounded_String, Message;
package body Printer is
Row_Number : Integer := 0;
type Last_Write is (Simple_Put, New_Line_Put);
The_Last_Write : Last_Write := New_Line_Put;
function "*" (N : Integer; C : Character) return String is
begin
return String'(1 .. N => C);
end "*";
procedure Justify is
begin
Text_Io.Put (Row_Number * ' ');
end Justify;
procedure Write (The_String : String) is
begin
if The_Last_Write = New_Line_Put then
Justify;
The_Last_Write := Simple_Put;
end if;
Text_Io.Put (The_String);
Text_Io.Put (" ");
end Write;
procedure Write (The_Tiny_String : Message.Tiny_String) is
begin
if The_Last_Write = New_Line_Put then
Justify;
The_Last_Write := Simple_Put;
end if;
Text_Io.Put (Bounded_String.Image (The_Tiny_String));
Text_Io.Put (" ");
end Write;
procedure Write_St (The_String : String) is
begin
if The_Last_Write = New_Line_Put then
Justify;
The_Last_Write := Simple_Put;
end if;
Text_Io.Put (The_String);
end Write_St;
procedure Write_St (The_Tiny_String : Message.Tiny_String) is
begin
if The_Last_Write = New_Line_Put then
Justify;
The_Last_Write := Simple_Put;
end if;
Text_Io.Put (Bounded_String.Image (The_Tiny_String));
end Write_St;
procedure Write_Ln (The_String : String) is
begin
Text_Io.Put_Line (The_String);
The_Last_Write := New_Line_Put;
end Write_Ln;
procedure Write_Ln (The_Tiny_String : Message.Tiny_String) is
begin
Text_Io.Put_Line (Bounded_String.Image (The_Tiny_String));
The_Last_Write := New_Line_Put;
end Write_Ln;
procedure New_Line is begin
if The_Last_Write /= New_Line_Put then
Text_Io.Put_Line ("");
The_Last_Write := New_Line_Put;
end if;
end New_Line;
procedure Forward (Row : Natural) is
begin
Row_Number := Row_Number + Row;
end Forward;
procedure Backward (Row : Natural) is
begin
Row_Number := Row_Number - Row;
if Row_Number < 0 then
Row_Number := 0;
end if;
end Backward;
end Printer;
nblk1=4
nid=3
hdr6=6
[0x00] rec0=23 rec1=00 rec2=01 rec3=00e
[0x01] rec0=22 rec1=00 rec2=04 rec3=002
[0x02] rec0=16 rec1=00 rec2=02 rec3=000
[0x03] rec0=02 rec1=ef rec2=e5 rec3=442
tail 0x2172feade84d2678a388e 0x42a00088462060003
Free Block Chain:
0x3: 0000 00 00 01 ff 80 29 20 20 20 69 66 20 54 68 65 5f ┆ ) if The_┆