beautypg.com

Defining and using your function keys, Creating a library file for your function keys – HP NonStop G-Series User Manual

Page 78

background image

Defining Function Keys and Writing Macros

Guardian User’s Guide 425266-001

5 -2

Defining and Using Your Function Keys

Defining and Using Your Function Keys

There are 32 function keys you can define for your use:

Function keys F1 through F16

Shifted keys SF1 through SF16 (hold down the shift key while pressing a function
key F1 through F16)

F16 is predefined as the TACL HELP key, but you can redefine it using the #HELPKEY
built-in variable, as described in the TACL Reference Manual.

You can create two types of function-key definitions:

Creating a Library File for Your Function Keys

To define your function keys, you create a library file that contains the function-key
definitions. Your library file is an EDIT file (file code 101). Create this file in your
saved default subvolume, using a text editor such as TEDIT. Give the file a descriptive
name such as MYKEYS.

For each function key you want to define, enter:

?SECTION

TACL directive that indicates the beginning of a definition.

function-key

Name of the function key you are defining. Unshifted function keys (F1 through
F16) or shifted function keys (SF1 through SF16).

type

Type of definition: ALIAS or MACRO. Other types of function-key definitions are
described in the TACL Reference Manual.

command

TACL command that you want this function key to execute.

Type

Description

Example

Alias

Defines a function key as a name
for a TACL command or
application.

Define the F1 key as an alias for the FILES
command; when you press F1, the TACL
program executes this command.

Macro

Defines a function key to invoke
one or more TACL commands or
run an application.

To specify arguments for a macro, enter them
on the TACL command line before you press
the function key.

?SECTION function-key type
command

[ command ]...

This manual is related to the following products: