defaultsfile(4)
NAME
defaultsfile − Starbase defaults file.
DESCRIPTION
A defaults file contains information about the fonts loaded during a gopen, and what the text switching mode is after a gopen occurs. Note that this set of fonts and text switching mode are overridden by calling designate_character_set, text_switching_mode, and text_font_index. The defaults file has the following structure.
| DEFAULTS FILE STRUCTURE | |
| CONTENT | EXPLANATION |
| Comments | Ignored by Starbase |
| End of Comments | 10 or more successive hyphens on a line |
| Text font index | an integer that selects the initial font index |
| Text switching mode | an integer that selects initial text switching mode |
| g0 character set | usascii character set is set into G-set 0 |
| g1 character set | hproman character set is set into G-set 1 |
| g2 character set | usascii character set is set into G-set 2 |
| g3 character set | hproman character set is set into G-set 3 |
When a gopen is executed, Starbase searches for a defaults files in the following order;
$SB_DEFAULTS
A defaults file can be specified by the $SB_DEFAULTS environment variable. This is convenient for application-specific defaults.
$HOME/.sb_defaults
A defaults file may be located at $HOME/.sb_defaults. This provides user-specific defaults.
/usr/lib/starbase/defaults
/usr/lib/starbase/defaults is for system defaults. The structure of the defaults file depends on the value of text switching mode. When the text switching mode is ISO 7- or 8-bit, all four character sets must be specified. For example, the defaults file supplied with Starbase looks like this:
.
.
<comments>
.
----------------------------------------------------------------
1# text font index
1# character switching mode (iso 8 bit)
usascii# g0 character set
hproman# g1 character set
usascii# g2 character set
hproman# g3 character set
When the text switching mode is HP 8-bit, only the g0 and g1 character sets need to be specified. For example:
.
.
<comments>
.
----------------------------------------------------------------
1# text font index
2# text switching mode (hp 8 bit)
japanese# g0 character set
korean# g1 character set
When text switching mode is HP 8-bit and the g0 character set is an EUC codeset (such as japanese.euc), then the g1, g2, and g3 character sets do not need to be set. For example:
.
.
<comments>
.
----------------------------------------------------------------
1# text font index
2# text switching mode (hp 8 bit)
japanese.euc# g0 character set
FILES
/usr/lib/starbase/defaults system defaults file $HOME/.sb_defaults user defined defaults file
VARIABLES
SB_DEFAULTS can specify the location of a user-defined defaults file
SEE ALSO
designate_character_set(3G, starbase(3G), text_font_index(3G), text_switching_mode(3G), Starbase Graphics Techniques manual. file
Hewlett-Packard Company — HP-UX Release 9.03: April 1994