|
|
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: 9216 (0x2400)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package Xlbp_Keyboard_Encoding, seg_004f76
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
with Xlbt_Arithmetic;
use Xlbt_Arithmetic;
with Xlbt_Basic;
use Xlbt_Basic;
with Xlbt_Key;
use Xlbt_Key;
with Xlbt_Keyboard;
use Xlbt_Keyboard;
package Xlbp_Keyboard_Encoding is
------------------------------------------------------------------------------
-- X Library Keyboard Encoding
--
-- Xlbp_Keyboard_Encoding - Control over which key means what.
------------------------------------------------------------------------------
-- Copyright 1989 - 1991 by Rational, Santa Clara, California.
-- Copyright 1985 - 1989 by the Massachusetts Institute of Technology
--
-- All Rights Reserved.
--
-- Permission to use, copy, modify, and distribute this software and its
-- documentation for any purpose and without fee is hereby granted,
-- provided that the above copyright notice(s) appear in all copies and that
-- both that copyright notice(s) and this permission notice appear in
-- supporting documentation, and that the names of MIT or Rational not be
-- used in advertising or publicity pertaining to distribution of the software
-- without specific, written prior permission.
--
-- MIT and Rational disclaim all warranties with regard to this software,
-- including all implied warranties of merchantability and fitness, in no
-- event shall MIT or Rational be liable for any special, indirect or
-- consequential damages or any damages whatsoever resulting from loss of use,
-- data or profits, whether in an action of contract, negligence or other
-- tortious action, arising out of or in connection with the use or performance
-- of this software.
------------------------------------------------------------------------------
--\x0c
procedure X_Change_Keyboard_Mapping (Display : X_Display;
Mapping : X_Key_Sym_Array_2d);
------------------------------------------------------------------------------
-- Display - Specifies the display to use.
-- Mapping - Specifies the new mapping.
--
-- Changes the symbols for the specified key codes and modifiers. Mapping
-- has two dimensions. The first dimension is by key code. The second
-- dimension is by key modifier.
------------------------------------------------------------------------------
procedure X_Delete_Modifier_Map_Entry (Map : in out X_Modifier_Keymap;
Key_Code : X_Key_Code;
Modifier : X_Key_Modifier);
------------------------------------------------------------------------------
-- Map - Specifies the map to modify.
-- Key_Code - Specifies the key code.
-- Modifier - Specifies the modifier.
--
-- Removes the specified key code from the set that controls the specified
-- modifier.
------------------------------------------------------------------------------
procedure X_Display_Key_Codes (Display : X_Display;
Min_Key_Code : out X_Key_Code;
Max_Key_Code : out X_Key_Code);
------------------------------------------------------------------------------
-- Display - Specifies the display to use
-- Min_Key_Code - Receives the minimum key code for this keyboard
-- Max_Key_Code - Receives the maximum key code for this keyboard
--
-- Called to obtain the min/max key codes that can be generated by the
-- keyboard attached to this connection.
------------------------------------------------------------------------------
procedure X_Free_Modifier_Map (Map : in out X_Modifier_Keymap)
renames Free_X_Modifier_Keymap;
------------------------------------------------------------------------------
-- Map - The map to free.
--
-- Frees the storage taken up by the keymap.
------------------------------------------------------------------------------
function X_Get_Keyboard_Mapping
(Display : X_Display;
First_Key_Code : X_Key_Code;
Last_Key_Code : X_Key_Code) return X_Key_Sym_List_2d;
------------------------------------------------------------------------------
-- Display - Specifies the display to use.
-- First_Key_Code - Specifies the first key code to be returned.
-- Last_Key_Code - Specifies the last key code to be returned.
--
-- Returns the symbols for the specified number of key codes. The value
-- specified for First_Key_Code must be greater than or equal to the
-- Min_Key_Code as recorded in the X_Display. The return value has two
-- dimensions. The first dimension is by key code. The second dimension
-- is by key modifier.
--
-- Free the mapping after use with the Free_X_Key_Sym_List_2d routine.
------------------------------------------------------------------------------
function X_Get_Modifier_Mapping
(Display : X_Display) return X_Modifier_Keymap;
------------------------------------------------------------------------------
-- Display - Specifies the display to use.
--
-- Returns a newly created X_Modifier_Keymap that contains the keys being
-- used as modifiers. The structure should be freed after use with
-- X_Free_Modifier_Map.
------------------------------------------------------------------------------
procedure X_Insert_Modifier_Map_Entry (Map : in out X_Modifier_Keymap;
Key_Code : X_Key_Code;
Modifier : X_Key_Modifier);
------------------------------------------------------------------------------
-- Map - Specifies the map to modify.
-- Key_Code - Specifies the key code.
-- Modifier - Specifies the modifier.
--
-- Adds the specified key code to the set that controls the specified
-- modifier.
------------------------------------------------------------------------------
function X_New_Modifier_Map
(Keys_Per_Modifier : U_Char) return X_Modifier_Keymap;
------------------------------------------------------------------------------
-- Keys_Per_Modifier - Specifies the maximum number of key codes assigned to
-- any of the modifiers in the map.
--
-- Creates a new X_Modifier_Keymap structure.
------------------------------------------------------------------------------
function X_Set_Modifier_Mapping
(Display : X_Display;
Modifier_Map : X_Modifier_Keymap) return X_Mapping_Status;
------------------------------------------------------------------------------
-- Display - Specifies the display to use.
-- Modifier_Map - Specifies the map to set.
--
-- Sets the key codes of the keys, if any, that are to be used as modifiers.
-- A None_X_Modifier_Map value indicates that no key is to be used. No two key
-- codes can have the same numeric value.
------------------------------------------------------------------------------
end Xlbp_Keyboard_Encoding;
nblk1=8
nid=0
hdr6=10
[0x00] rec0=1a rec1=00 rec2=01 rec3=064
[0x01] rec0=12 rec1=00 rec2=02 rec3=01a
[0x02] rec0=14 rec1=00 rec2=03 rec3=012
[0x03] rec0=14 rec1=00 rec2=04 rec3=00a
[0x04] rec0=12 rec1=00 rec2=05 rec3=062
[0x05] rec0=13 rec1=00 rec2=06 rec3=086
[0x06] rec0=14 rec1=00 rec2=07 rec3=024
[0x07] rec0=04 rec1=00 rec2=08 rec3=001
tail 0x215009624819782e3c0b1 0x42a00088462063203