Expand description
Elements of the C1 set.
These control functions are represented in 7-bit codes by escape sequences of the form ESC Fe
, where ESC
is
represented by bit combination 01/11
and Fe
is represented by a bit combination from 04/00
to 05/15
.
The unallocated bit combinations are reserved for future standardization and shall not be used.
The 3-character escape sequence designating and invoking this c1 set is ESC 02/06 04/00
and ESC 02/02 F
.
see ANNOUNCER_SEQUENCE
, and ALTERNATIVE_ANNOUNCER_SEQUENCE
.
§Usage
You can use the Elements of the C1 set inside normal strings, format them with the format!()
macro, or print
them with the print!()
and println!()
macros.
For example, designate the C1 set, then set a character tabulation stop.
use ansi_control_codes::c1::{ANNOUNCER_SEQUENCE, HTS};
println!("{}{}", ANNOUNCER_SEQUENCE, HTS);
§Overview of the C1 Set
Constants§
- ALTERNATIVE_
ANNOUNCER_ SEQUENCE - Alternative Announcer Sequence for C1.
- ANNOUNCER_
SEQUENCE - Announcer Sequence for C1.
- APC
- Application Program Command.
- BPH
- Break Permitted Here.
- CCH
- Cancel Character.
- CSI
- Control Sequence Introducer.
- DCS
- Device Control String.
- EPA
- End Of Guarded Area.
- ESA
- End Of Selected Area.
- HTJ
- Character Tabulation With Justification.
- HTS
- Character Tabulation Set.
- MW
- Message Waiting.
- NBH
- No Break Here.
- NEL
- Next Line.
- OSC
- Operating System Command
- PLD
- Partial Line Forward.
- PLU
- Partial Line Backwards.
- PM
- Privacy Message.
- PU1
- Private Use One.
- PU2
- Private Use Two.
- RI
- Reverse Line Feed.
- SCI
- Single Character Introducer.
- SOS
- Start of String.
- SPA
- Start of Guarded Area.
- SS2
- Single-Shift Two.
- SS3
- Single-Shift Three.
- SSA
- Start of Selected Area.
- ST
- String Terminator.
- STS
- Set Transmit State.
- VTS
- Line Tabulation Set.