softkeys.4 (2010 09)

s
softkeys(4) softkeys(4)
word[number]=string simple assignment
word[number]+=number add and assign
word[number]-=number subtract and assign
word[number]*=number multiply and assign
word[number]/=number divide and assign
word[number]%=number modulus and assign
word[number1]&=string concatenate and assign
if Statement
The if statement is similar to the full-block mode
if statement in awk, and is structured as follows:
if(number){
edit statement
.
.
.
} else {
edit statement
.
.
.
}
Where the else part is optional. If number is non-zero, the first block of edit statement sisexecuted.
Otherwise, if the second block of edit statement s is present, it is executed.
Word Allocation Statements
Word allocation statements include the following:
insert(number, string ); Insert string as a new word in the word list immediately before
word[number].
append(string ); Insert string as a new word in the word list immediately after the
last word in the word list. Equivalent to
insert(next, string );.
dash(string ); Append string to the last word in the word list if that word already
begins with a dash. Otherwise, a dash is inserted as a new word in
the word list immediately after the last word in the word list and
string is appended to that.
delete(number); Delete word[number ] from the word list.
Helptext
Each softkey node can have an associated helptext, to be displayed upon a user request for help. This
helptext is formatted on-the-fly and presented to the user through the preferred pager.
The helptext format is an nroff-like language, supporting a subset of the man(5) macros used to write
standard HP-UX manual entries. In particular, this subset includes:
.nf Begin no-fill mode. Display text as-is, preserving new-lines and
spaces, until a .fi.
.fi Resume fill mode. Display text with words filled onto each output
line, attempting to utilize 90% of the screen width. (This is the
default mode.)
.br Force a break in the current output line. Display subsequent text
on the next line.
.sp Force a break and then display a single blank line (a vertical
space).
.P Force a break, display a single blank line, and then begin a new
paragraph with no indent.
.IP tag indent Force a break, display a single blank line, and then display the
specified tag, then begin a new indented paragraph with the
specified indent .
4 Hewlett-Packard Company 4 HP-UX 11i Version 3: September 2010