Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ help(5) — SunOS 4.0.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

help_viewer(1)

help_viewer(5)

HELP(5)  —  FILE FORMATS

NAME

help − help file format

SYNOPSIS

/usr/lib/help/∗

AVAILABILITY

Sun386i systems only. 

DESCRIPTION

Each SunView application using the help feature has a simple ASCII file with the name application-name.info and stored in the user’s default help directory. The default help directory for a user typically is /vol/help/language/USA-English; this has links to various places, including the help files (that Sun Microsystem supplies) in /usr/lib/help/language/USA-English. 

This file contains the text of help messages for each SunView object within that program. Each help message is separated in the file by a line beginning with a colon and identified by a keyword that matches the HELP_DATA attribute of the SunView object. 

The first character of each line in the file may be: #comment line
:keyword line
any other1-32 help text lines If the line is a keyword line, it has the following structure: :keyword[s]:datastring [pagenumber]<cr>

keywordis a 1-65 character keyword
--any displayable characters may be used
--several keywords may be present
--keywords are separated by 1-or-more blanks
datastringis 1-256 ASCII bytes, and describes the path of the data files.  If it is
a help_viewer file, and it is a relative file name, then help_viewer
looks for the file relative to the default help directory as defined
in the user’s defaults database.
pagenumberis an optional page number within the help_viewer data file.
 

The help text that follows the :keyword line will be displayed in an Alert Box when help is requested for one of the keywords by pressing the help key.  The datastring will be sent (by RPC) to the help_viewer procedure when the user selects the More Help box in the Alert Box window. 

EXAMPLE

Here is part of a typical help file, called mailtool.info. 

:abort
   Abort button
 o  Quits the Mail application (click
   left on button). Tentative message
   deletions do not become permanent.
 o  Provides a menu of Abort options
   (click right on button).
 :cancel:mailtool/Writing_and_Sending_Mail 1
   Cancel button
 o  Closes the message composition
   window without sending message
   (click left on button).
 o  Provides a menu of Cancel options
   (click right on button).

Pressing the help key while the mouse cursor is over the Cancel or Abort button triggers the display of the corresponding text. The words cancel and abort in this file are the keywords. In the case of abort, there is no More Help available. For cancel, More Help is available and it is stored in the first page of the Writing_and_Sending_Mail file in the mailtool directory. 

FILES

/usr/lib/help/∗ files for the pop-up help facility

SEE ALSO

help_viewer(1), help_viewer(5)

Sun386i Developer’s Guide

Sun Release 4.0  —  Last change: 3 October 1988

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026