Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ text_switch(3G) — HP-UX 5.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

TEXT_SWITCHING_MODE(3G)

NAME

text_switching_mode − selects the mode of designation and invocation of text character sets. 

SYNOPSIS

C SYNTAX

void text_switching_mode(fildes,mode);
int fildes,mode;

FORTRAN77 SYNTAX

        subroutine text_switching_mode(fildes,mode)
        integer*4 fildes,mode

PASCAL SYNTAX

procedure text_switching_mode(fildes,mode:integer);

HP-UX COMPATIBILITY

Level: HP-UX/STANDARD

Origin: HP

DESCRIPTION

INPUT PARAMETERS

fildes
is an integer file descriptor returned by gopen when an I/O path to a graphic device is opened. 
mode
specifies the mode of text set designation

DISCUSSION

There are several specifiable text switching modes:
 
ISO_7BIT mode - (mode=0) similar to ISO 8-bit mode but only the lower seven bits of each character are used.
 
ISO_8BIT mode - (mode=1) implements ISO 2022.2(1982), permitting designation and invocation of all four G-sets individually.
 
HP_8BIT mode - (mode=2) implements the HP 8-bit standard, Designation of a character set to G0 automatically designates its associated set to G2 and designation of a character set to G1 automatically designates its associated set to G3.
 
Sixteen bit character sets are accessed in the HP_8BIT mode through the escape sequences shown below.
 
     [ESC] [(] n *      8 bit base set
     [ESC] [)] n *      8 bit alternate set
     [ESC] [$] n *      16 bit base set
 
where n and * are defined for various character sets in /usr/lib/starbase/char_sets. 
 
Fonts for the various character sets are located in /usr/lib/starbase/stroke/chset/font. 
 
The escape codes needed to work with the character sets and fonts are listed in the table below.

 ------------------------------------------------------------
|          shift function        |ISO_7BIT|ISO_8BIT|HP_8BIT|
|--------------------------------|--------|--------|-------|
| Shift out                  SO  |  0/14  |   -    | 0/14  |
| Shift in                   SI  |  0/15  |   -    | 0/15  |
| Locking shift zero         LS0 |   -    | 00/15  |  -    |
| Locking shift one          LS1 |   -    | 00/14  |  -    |
| Locking shift one right    LS1R|   -    |esc 7/14|  -    |
| Locking shift two          LS2 |esc 6/14|esc 6/14|  -    |
| Locking shift two right    LS2R|   -    |esc 7/13|  -    |
| Locking shift three        LS3 |esc 6/15|esc 6/15|  -    |
| Locking shift three right  LS3 |   -    |esc 7/12|  -    |
| Single shift two           SS2 |esc 4/14| 08/14  |  -    |
| Single shift three         SS3 |esc 4/15| 08/15  |  -    |
------------------------------------------------------------
 If a single byte representation of SS2 is required in 7
 bits, it should be coded as 1/9.

DEFAULTS

ISO 8-bit mode as set in /usr/lib/starbase/defaults

Hewlett-Packard Company  —  May 11, 2021

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