|
|
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, procedure Do_Keypress, seg_0052dc, separate Xev_Main
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
separate (Xev_Main)
procedure Do_Keypress (E : X_Event) is
use Text_Io;
use S_Long_Io;
Ks : X_Key_Sym;
Ksname : X_String_Pointer;
Nbytes : S_Natural;
Key_Code : X_Key_Code;
Str : X_String (1 .. 256 + 1);
Status : X_Compose_Status;
begin
Put (" root=");
Put (E.Key.Root);
Put (", subw=");
Put (E.Key.Subwindow);
Put (", time=");
Put (E.Key.Time);
Put (",");
New_Line;
Put (" x/y=(");
Put (E.Key.X);
Put (',');
Put (E.Key.Y);
Put ("), root:x/y=(");
Put (E.Key.Root_X);
Put (',');
Put (E.Key.Root_Y);
Put ("),");
New_Line;
X_Lookup_String (E, Str, Nbytes, Ks, Status);
Put (" state=");
Put (E.Key.State);
Put (", keycode=");
Put (E.Key.Key_Code);
Put (" (keysym=");
Put (Ks);
Put (", ");
if Ks = No_Symbol then
Put ("No_Symbol");
else
declare
Ksname : constant X_String := X_Key_Sym_To_String (Ks);
begin
if Ksname = "" then
Put ("(no name)");
else
Put (To_String (Ksname));
end if;
end;
end if;
Put ("), same_screen=");
Put (E.Key.Same_Screen);
Put (',');
New_Line;
Put (" XLookupString gives ");
Put (S_Long (Nbytes), Width => 0);
Put (" characters:""");
for I in Str'First .. Nbytes loop
if X_Character'Pos (Str (I)) >= Character'Pos (Ascii.Del) or else
X_Character'Pos (Str (I)) < Character'Pos (' ') then
Put ('\');
Put (S_Long (X_Character'Pos (Str (I))), Base => 8, Width => 0);
else
Put (Character'Val (X_Character'Pos (Str (I))));
end if;
end loop;
Put ("""");
New_Line;
end Do_Keypress;
nblk1=4
nid=0
hdr6=8
[0x00] rec0=2a rec1=00 rec2=01 rec3=020
[0x01] rec0=01 rec1=00 rec2=04 rec3=004
[0x02] rec0=1f rec1=00 rec2=02 rec3=00c
[0x03] rec0=03 rec1=00 rec2=03 rec3=001
tail 0x2170086d8819786d85730 0x42a00088462063203