eucset(1) | eucset(1) |
NAME
eucset - sets and gets code widths for ldterm
SYNOPSIS
eucset
eucset [
DESCRIPTION
The eucset command sets or gets (reports) the encoding and display widths of the Extended UNIX Code (EUC) and UCS Transformation Format (UTF8) characters processed by the current input terminal. EUC is an encoding method for codesets composed of single or multiple bytes. It permits applications and the terminal hardware to use the
The eucset command without any options, ®rst tries to set the codeset to one of the four HP15 codesets. If unsuccessful,
To utilize this command for UTF8, specify UTF8 with the
Options
The eucset command recognizes the following options and arguments:
Displays the current settings of the EUC character widths for the terminal. |
EUC Code Set Classes
EUC divides codesets into four classes. Each codeset has two characteristics: the number of bytes for encoding the characters in the codeset, and the number of display columns to display the characters in the codeset. All characters within a codeset possess the same characteristics.
∙Codeset 0 consists of all
∙Codeset 1 is a supplementary EUC codeset. Codeset 1 characters have an initial byte whose most signi®cant bit is 1. Characters in codeset 1 may require more than one byte for encoding, and may require more than one display column. The eucset command must be used to set the charac- teristics for codeset 1.
∙Codesets 2 and 3 are supplementary EUC codesets. Characters in these codesets have an initial byte of SS2 or SS3, respectively. They require more than one byte for encoding, and may require more than one display column. The eucset command must be used to set the characteristics for codesets 2 and 3.
The cswidth argument in the eucset command line is a character string that describes the character widths for codesets 1 through 3. This command does not allow the user to modify the settings for codeset 0. The character string is of the following format:
X1[:Y1 ],X2[:Y2 ],X3[:Y3 ]
The value X1 is the number of bytes required to encode a character in codeset class 1. Y1 is the number of display columns needed to display characters in this class. X2 is the number of bytes required to encode a character in codeset 2, not counting the SS2 byte, and Y2 is the number of display columns for codeset 2 characters. X3 is the number of bytes needed to encode characters in codeset 3, not counting the SS3 byte, and Y3 is the number of display columns required for these characters. The values for the column widths may be omitted if they are equal to the number of encoding bytes. If the encoding value of any of the EUC codesets is set to 0 (zero), this indicates that the codeset does not exist. See the WARNINGS section for special warnings on the values of the cswidth argument.
If no cswidth argument is supplied, the eucset command uses the value of the CSWIDTH environment variable. If this variable is not present, the following default string is substituted:
− 1 − | Section 1−239 |
e