Skip to main content

Virtual OLS Keyboard

A major function of NETOLS is to provide a mapping between elements of the Telnet character set and the keys on an OLS keyboard (Figure 1). The lower, or operand portion of that keyboard is fairly easily represented, since it's similar to a standard typewriter keyboard. Most of the keys on the lower keyboard are mapped on a one-for-one basis from elements of the Telnet character set. Upper-case alphabetics are mapped into the alphabetics, lower-case, and miscellany of punctuation into itself. All such one-for-one mappings are depicted in Figure 2. A line of that figure reads as follows:

For ['half arrow' - see the PDF version of this RFC]:

The key labeled ['half arrow'] (meaning logical not) on the lower portion of an OLS keyboard is struck by causing the user's User Telnet to transmit '~' (tilde).

Those lower-keyboard keys not listed in Figure 2, and all the keys on the upper- keyboard (hereafter referred to collectively as non-standard keys), are represented by the Telnet user in the following manner. For each such key, a character string has been defined; the string is called the name of the key. In most cases, the name of a key is identical to its label in Figure 1. The name of the SIN key, for example, is 'SIN' (in the Online System User's Manual, upper-keyboard keys are denoted by underscoring their labels, to distinguish, for example, the key SIN from the three keys 'SIN').

Every non-standard key on the OLS keyboard is struck by typing its name (or any unique abbreviation thereof), preceded by a special prefix character and followed by a space.

NETOLS interprets the prefix, name, and space from them generates a single, 8-bit code, which forwards to OLS.

The default prefix character is semi-colon (';'), chosen simply because for touch typists it's one of the home keys. The prefix can be changed by the user to any character listed in Figure 2. The procedure for so doing is described in Section VII-B. To send the prefix character through NETOLS to OLS, type it twice in succession. Thus, if the default prefix is in effect, ';;' is mapped into a single semi-colon and relayed to OLS.

The names of all non-standard keys are listed in Figure 3. A line of that figure reads as follows:

For SIN:

They key denoted SIN in the OLS User's Manual (the trigonometric function sine) is named 'SIN', and hence is struck by typing 'SIN', preceded by the prefix and followed by a space.

Assuming, then, that the default prefix ';' is in effect, SIN is struck by ;SIN_ ('_' is used here and in following examples to denote a space). Furthermore, if the user chooses, he may abbreviate that as ;SI_, since the key desired remains uniquely identified. Further abbreviation (to ;S_) is unsatisfactory and hence disallowed since the single character 'S' is insufficient to distinguish between a number of keys whose names begin with that character. Key names may be typed by the user in either upper- or lower-case.

As each character of a non-standard key's name is typed by the user, NETOLS consults it table of key names. If the character string so far specified cannot possibly lead to a valid name, the most recent character is ignored ('?' echoed). Hence, typing ;SJIN_ will be accepted as SIN, the erroneous 'J' being ignored (and a question mark echoed), and the subsequent 'JN_' accepted. If when the terminating space is typed, no single key is uniquely identified a '?' is echoed and the space ignored. Thus, ;S_I_ will be recognized as SIN; the first space is ignored (and a '?' echoed, indicating that 'S' alone is ambiguous).

At any point in the entry of a key name, either Altmode (ESC) or '?' may be typed by the user. NETOLS will then determine whether a key has been uniquely specified by the characters already typed. If so, it will echo the remaining characters of the key's name, and consider them entered by the user. A subsequent space from the user will cause the indicated key to be pushed. If no single key is uniquely specified, NETOLS will echo Bel, causing a bell to be run on many terminals. More of the key name is then expected from the user.

If after at least one character of the key name has been entered by the user and accepted by NETOLS (and before the terminating space is typed) the prefix is typed a second time, all already entered characters of the name are discarded by NETOLS. Thus ;CO;SIN_ is interpreted as SIN. If a carriage return is typed in the same context, the initial prefix will also be discarded. Hence, ;CO%S ('%' denotes carriage return) is interpreted as the lower-keyboard key 'S'.

To Push         (OLS Explanation)        Send      (Telnet Explanation)

0-9             Decimal Digits           0-9         Decimal Digits
A-Z             Alphabetics              A-Z         UC Alphabetics
_-5             Greek Characters         a-z         LS Alphabetics
!               Exclamation Mark          !          Exclamation Mark
+               Plus Sign                 +          Plus Sign
_               Underscore                _          Underscore
-               Minus Sign                -          Minus Sign
@               Commercial At             @          Commercial At
/               Slash                     /          Slant
#               Number Sign               #          Number Sign
'               Apostrophe                '          Apostrophe
&               Ampersand                 &          Ampersand
$               Dollar Sign               $          Dollar Sign
*               Asterisk                  *          Asterisk
%               Percent                   %          Percent
=               Equal Sign                =          Equal Sign
TAB             Horizontal Tab           HT          Horiz. Tab. (_[)
:               Colon                     :          Colon
;               Semi-Colon                ;          Semi-Colon
[               Left Bracket              [          Left Bracket
]               Right Bracket             ]          Right Bracket
(               Left Parenthesis          (          Left Parenthesis
)               Right Parenthesis         )          Right Parenthesis
<               Less Than                 <          Less Than
>               Greater Than              >          Greater Than
,               Comma                     ,          Comma
"               Quotation Marks           "          Quotation Marks
?               Question Mark             ?          Question Mark
[half arrow]    Logical Not               ~          Tilde
|               Logical Or                |          Vertical Line
BACK            Backspace              BS, DEt       Backspace/Rubout
RETURN          Carriage Return           CR         Carr. Return (_M)
SPACE           Space                     SP         Space

                Figure 2. Keys With One-for-One Mappings
To Push          (OLS Explanation)          The Key Name Is

[circle .]           Multiply                       *          1
[circle +]           Add                            +
[circle -]           Subtract                       -
RETURN               Carriage Return                .
[circle /]           Divide                         /
L0                   Level 0                        0
LI                   Level I                        1
L II                 Level II                       2
L III                Level III                      3
L IV                 Level IV                       4
L V                  Level V                        5
L VI                 Level VI                       6
L VII                Level VII                      7
[circle +]           Add                            ADD        2
ARC                  Argument                       ARG
ATAN                 Arc Tangent                    ATAN
BACK                 Backspace                      BACK       3
CASE                 Case                           CASE
[cent sign]          Cent                           SignCENT
CLR                  Clear Tab                      CLEAR
CMPLX                Complex                        CMPLX
CON                  Contract                       CON
CONJ                 Conjugate                      CONJ
CONV                 Convolve                       CONV
COS                  Cosine                         COS
CTX                  Context                        CTX
DEL                  Delta                          DEL
DIFF                 Forward Difference             DIFF
DISPLAY              Display                        DISPLAY
[circle /]           Divide                         DIV        4
DWN                  Down                           DOWN
ENL                  Enlarge                        ENL
ENTER                Enter                          ENTER
ERASE                Erase                          ERASE
ESCAPE               Escape                         ESCAPE
EVAL                 Evaluate                       EVAL
EXP                  Exponentiate                   EXP
                     NETOLS Command                 FULLDUPLEX 5
                     NETOLS Command                 HALFDUPLEX
                     NETOLS Command                 HELP
ID                   Identity                       ID
INV                  Invert                         INV
[down arrow]         Line Feed Down                 LFDN
[up arrow]           Line Feed Up                   LFUP
LIST                 List                           LIST
LOAD                 Load                           LOAD
LOG                  Logarithm                      LOG
                     NETOLS Command                 LOGOUT
LS                   Left Shift                     LS
MAX                  Maximum                        MAX
MOD                  Modulus                        MOD
[circle .]           Multiply                       MULT       6
NEG                  Negate                         NEG
[half arrow]         Logical Not                    NOT        7
|                    Logical Or                     OR         8
PRED                 Predicate                      PRED
                     NETOLS Command                 PREFIX
PROD                 Running Product                PROD
PT                   Point                          PT
PWR                  Power                          PWR
REAL                 Real                           REAL
REFL                 Reflect                        REFL
REPT                 Repeat                         REPT
RESET                Reset                          RESET
RETURN               Carriage Return                RETURN     9
RS                   Right Shift                    RS
0-9                  Superscript 0-9                S0-S9
SEL                  Select                         SELECT
SET                  Set Tab                        SET
                     NETOLS Command                 SHIFT
SIN                  Sine                           SIN
SORT                 Sort                           SORT
SQ                   Square                         SQ
SQRT                 Square Root                    SQRT
                     NETOLS Command                 STATE
STORE                Store                          STORE
SUB                  Substitute                     SUB
[circle -]           Subtract                       SUBTRACT   10
SUM                  Running Sum                    SUM
SYST                 System                         SYST
TEST                 Test                           TEST
TYPE                 Type                           TYPE
                     NETOLS Command                 UNSHIFT
UP                   Up                             UP
USER                 User                           USER

                 Figure 3. Keys Represented As Strings

Notes for Figure 3:

  1. Alternate names for [circle .], [circle +], [circle -], RETURN, and [circle /] are 'MULT', 'ADD', 'SUBTRACT', 'RETURN', and 'DIV', respectively. RETURN can also be represented as the single character CR (carriage return), as indicated in Figure 2.

  2. An alternate name for [circle +] is '+'

  3. Alternates for BACK are the single characters BS (backspace) and DEL (rubout), as indicated in Figure 2.

  4. An alternate name for [circle /] is 'DIV'.

  5. NETOLS commands are explained in Section VII.

  6. An alternate name for [circle .] is 'MULT'.

  7. An alternate for '[half arrow]' is the single character '~' (tilde), as indicated in Figure 2.

  8. An alternate for '|' is the single character '[2 vertical lines]' (vertical line), as indicated in Figure 2.

  9. An alternate name for RETURN is '.' RETURN can also be represented as the single character CR (carriage return), as indicated in Figure 2.

  10. An alternate name for [circle -] is '-'.