control

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package control provides mnemonic constants for DEC control characters. These constants map the standard ECMA-48/ISO 6429 control character names to their corresponding byte values in the DEC code table. The mnemonics are divided into C0 (0x00-0x1F), GL special positions (SP, DEL), and C1 (0x80-0x9F) control characters.

Index

Constants

C0 Control Characters (0x00-0x1F) These are the standard ASCII control characters used for device control, data formatting, and communication protocol functions.

View Source
const (
	NUL_Mnemonic = "NUL"
	SOH_Mnemonic = "SOH"
	STX_Mnemonic = "STX"
	ETX_Mnemonic = "ETX"
	EOT_Mnemonic = "EOT"
	ENQ_Mnemonic = "ENQ"
	ACK_Mnemonic = "ACK"
	BEL_Mnemonic = "BEL"
	BS_Mnemonic  = "BS"
	HT_Mnemonic  = "HT"
	LF_Mnemonic  = "LF"
	VT_Mnemonic  = "VT"
	FF_Mnemonic  = "FF"
	CR_Mnemonic  = "CR"
	SO_Mnemonic  = "SO"
	SI_Mnemonic  = "SI"
	DLE_Mnemonic = "DLE"
	DC1_Mnemonic = "DC1"
	DC2_Mnemonic = "DC2"
	DC3_Mnemonic = "DC3"
	DC4_Mnemonic = "DC4"
	NAK_Mnemonic = "NAK"
	SYN_Mnemonic = "SYN"
	ETB_Mnemonic = "ETB"
	CAN_Mnemonic = "CAN"
	EM_Mnemonic  = "EM"
	SUB_Mnemonic = "SUB"
	ESC_Mnemonic = "ESC"
	FS_Mnemonic  = "FS"
	GS_Mnemonic  = "GS"
	RS_Mnemonic  = "RS"
	US_Mnemonic  = "US"
)

C0 Control Character Mnemonic Strings

View Source
const (
	SP  = codetable.C02R00 // Space (0x20)
	DEL = codetable.C07R15 // Delete (0x7F)
)

GL Special Positions SP (Space) and DEL (Delete) occupy the boundary positions of the GL graphic character region and have special significance in the code table.

View Source
const (
	SP_Mnemonic  = "SP"
	DEL_Mnemonic = "DEL"
)

GL Special Position Mnemonic Strings

C1 Control Characters (0x80-0x9F) These are the 8-bit control characters defined by ECMA-48. On VT220 terminals, many of these are used for cursor control, character set selection, and escape sequence introduction.

View Source
const (
	IND_Mnemonic = "IND"
	NEL_Mnemonic = "NEL"
	SSA_Mnemonic = "SSA"
	ESA_Mnemonic = "ESA"
	HTS_Mnemonic = "HTS"
	HTJ_Mnemonic = "HTJ"
	VTS_Mnemonic = "VTS"
	PLD_Mnemonic = "PLD"
	PLU_Mnemonic = "PLU"
	RI_Mnemonic  = "RI"
	SS2_Mnemonic = "SS2"
	SS3_Mnemonic = "SS3"
	DCS_Mnemonic = "DCS"
	PU1_Mnemonic = "PU1"
	PU2_Mnemonic = "PU2"
	STS_Mnemonic = "STS"
	CCH_Mnemonic = "CCH"
	MW_Mnemonic  = "MW"
	SPA_Mnemonic = "SPA"
	EPA_Mnemonic = "EPA"
	CSI_Mnemonic = "CSI"
	ST_Mnemonic  = "ST"
	OSC_Mnemonic = "OSC"
	PM_Mnemonic  = "PM"
	APC_Mnemonic = "APC"
)

C1 Control Character Mnemonic Strings

Variables

C0Names provides lookup of C0 mnemonic strings by byte value (0x00-0x1F).

C1Names provides lookup of C1 mnemonic strings by byte value minus 0x80. Empty strings indicate undefined positions in the C1 range.

Functions

func LookupMnemonic

func LookupMnemonic(b byte) (m string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL