Class AnsiSolitaryControlCode
- Namespace
- Microlithix.Text.Ansi.Element
- Assembly
- AnsiParser.dll
Represents a single control code from the parsed input.
public record AnsiSolitaryControlCode : IAnsiStreamParserElement, IAnsiStringParserElement, IEquatable<AnsiSolitaryControlCode>
- Inheritance
-
AnsiSolitaryControlCode
- Implements
- Inherited Members
Remarks
There are a total of 64 different control codes
defined or reserved in
ECMA-48. The bit encodings for these control codes fall in the ranges
0x00
... 0x1f
(C0 codes) and 0x80
... 0x9f
(C1 codes).
Except for the 7 control codes in the table below, each of these control codes
will result in the production of an AnsiSolitaryControlCode
element.
The following 7 control codes each require one or more additional characters in order to complete the control sequence, so they are not solitary control codes. Instead, once all of the required additional characters have been received, the entire sequence will be reported as one of the element types shown here:
Control Code | Element Type |
---|---|
ControlCode.ESC
(0x1b )
| AnsiEscapeSequence |
ControlCode.DCS
(0x90 )
| AnsiControlStringInitiator |
ControlCode.SOS
(0x98 )
| AnsiControlStringInitiator |
ControlCode.CSI
(0x9b )
| AnsiControlSequence or AnsiPrivateControlSequence |
ControlCode.OSC
(0x9d )
| AnsiControlStringInitiator |
ControlCode.PM
(0x9e )
| AnsiControlStringInitiator |
ControlCode.APC
(0x9f )
| AnsiControlStringInitiator |
Constructors
- AnsiSolitaryControlCode(char)
Creates a new AnsiSolitaryControlCode instance with the specified control code.
Properties
- Code
The control code as a UTF-16 character.