HP-UX Reference (11i v1 00/12) - 4 File Formats (vol 8)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man4/!!!intro.4
________________________________________________________________
___ ___
s
softkeys(4) softkeys(4)
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 statementsisexecuted.
Otherwise, if the second block of edit statements 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 stan-
dard
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 para-
graph 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.
.IL tag indent Begin a new indented line (similar to .IP except no blank line is
displayed).
Note that these macros are recognized anywhere in the input helptext, not just at the beginning of a line.
Also, all macro arguments must be present, even if they consist of nothing more than a quoted empty
Section 4−−284 − 4 − HP-UX Release 11i: December 2000
___
___