12.12.2012 Views

MTS Volume 4 - Terminals and Networks (3278)

MTS Volume 4 - Terminals and Networks (3278)

MTS Volume 4 - Terminals and Networks (3278)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>MTS</strong> 4: <strong>Terminals</strong> <strong>and</strong> <strong>Networks</strong> in <strong>MTS</strong><br />

FUNCTION ________<br />

| Comm<strong>and</strong>: FUNCTION __ n1 m1 [n2 m2 ...]<br />

July 1988<br />

where "n" is a hexadecimal value identifying the key to<br />

be redefined <strong>and</strong> "m" is the function code specifying the<br />

function the key is to assume. Appendix B gives the<br />

value identifying each key, the default function code for<br />

each key, <strong>and</strong> the meaning of each function code.<br />

Purpose: To redefine the function of a key. This comm<strong>and</strong> is most<br />

useful for assigning program functions <strong>and</strong> define functions<br />

to keys not normally used. For example, the<br />

unshifted CTRL-1 through CTRL-7 keys can be assigned the<br />

program functions PFA9 through PFA15, <strong>and</strong> the shifted<br />

CTRL-1 through CTRL-7 keys can be assigned the program<br />

functions PFB9 through PFB15. Likewise, the %FUNCTION<br />

comm<strong>and</strong> may be used to assign Define Functions 26 through<br />

31 to other keys on the keyboard. See the section "The<br />

FUNCTION Device Comm<strong>and</strong>" for further details.<br />

For example, program function PFA10 may be assigned to<br />

the CTRL-Q key by giving the comm<strong>and</strong><br />

%FUNCTION 11 8A<br />

In this case, 11 is the hexadecimal value identifying the<br />

CTRL-Q key, <strong>and</strong> 8A is the function code for PFA10 (i.e.,<br />

the hexadecimal base value 80 for PFA0, plus 0A, the<br />

hexadecimal displacement for 10).<br />

Any key listed in Table 1 of Appendix B can be assigned<br />

to any function code listed in Table 2. The comm<strong>and</strong><br />

arguments are similar to those given in the above<br />

examples, except there is no hexadecimal offset to add to<br />

the function code as required for program functions <strong>and</strong><br />

define functions. For example:<br />

%FUNCTION B3 1B<br />

assigns the Delete Word function to the CTRL-3 key.<br />

If "m" is omitted, the function of the key is restored to<br />

its original default value.<br />

One must be cautious when using this comm<strong>and</strong> as a mistake<br />

in defining a key may cause a useful key to become<br />

unavailable until the user signs off or enters the %RESET<br />

device comm<strong>and</strong>. The comm<strong>and</strong> provides no error checking-<br />

42 The Ontel Display Terminal: Appendix A

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!