Expand description
Elements of the C0 set.
These control functions are represented in 7-bit codes by bit combinations from 00/00
to 01/15
.
The 3-character escape sequence designating and invoking this C0 set is ESC 02/01 04/00
,
see ANNOUNCER_SEQUENCE
.
It is assumed that even with no invoked C0 set, the control character ESCAPE
(ESC
) is always available, and is
represented by bit combination 01/11
.
§Usage
You can use the Elements of the C0 set inside normal strings, format them with the format!()
macro, or print
them with the print!()
and println!()
macros.
For example, designate the C0 set, then ring the bell.
use ansi_control_codes::c0::{ANNOUNCER_SEQUENCE, BEL};
println!("{}{}", ANNOUNCER_SEQUENCE, BEL);
§Overview of the C0 Set
Constants§
- ACK
- Acknowledge.
- ANNOUNCER_
SEQUENCE - Announcer Sequence for Control Set C0.
- BEL
- Bell.
- BS
- Backspace.
- CAN
- Cancel.
- CR
- Carriage Return.
- DC1
- Device Control One.
- DC2
- Device Control Two.
- DC3
- Device Control Three.
- DC4
- Device Control Four.
- DLE
- Data Link Escape.
- EM
- End Of Medium.
- ENQ
- Enquiry.
- EOT
- End Of Transmission.
- ESC
- Escape.
- ETB
- End Of Transmission Block.
- ETX
- End Of Text.
- FF
- Form Feed.
- HT
- Character Tabulation.
- IS1
- Information Separator One (US - Unit Separator).
- IS2
- Information Separator Two (RS - Record Separator).
- IS3
- Information Separator Three (GS - Group Separator).
- IS4
- Information Separator Four (FS - File Separator).
- LF
- Line Feed.
- LS0
- Locking-Shift Zero.
- LS1
- Locking-Shift One.
- NAK
- Negative Acknowledge.
- NUL
- Null.
- SI
- Shift-In.
- SO
- Shift-Out.
- SOH
- Start of Heading.
- STX
- Start of Text.
- SUB
- Substitute.
- SYN
- Synchronous Idle.
- VT
- Line Tabulation.