Module ansi_control_codes::c1

source ·
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

Row NumberColumn 04Column 05
00DCS
01PU1
02BPHPU2
03NBHSTS
04CCH
05NELMW
06SSASPA
07ESAEPA
08HTSSOS
09HTJ
10VTSSCI
11PLDCSI
12PLUST
13RIOSC
14SS2PM
15SS3APC

Constants

  • Alternative Announcer Sequence for C1.
  • Announcer Sequence for C1.
  • Application Program Command.
  • Break Permitted Here.
  • Cancel Character.
  • Control Sequence Introducer.
  • Device Control String.
  • End Of Guarded Area.
  • End Of Selected Area.
  • Character Tabulation With Justification.
  • Character Tabulation Set.
  • Message Waiting.
  • No Break Here.
  • Next Line.
  • Operating System Command
  • Partial Line Forward.
  • Partial Line Backwards.
  • Privacy Message.
  • Private Use One.
  • Private Use Two.
  • Reverse Line Feed.
  • Single Character Introducer.
  • Start of String.
  • Start of Guarded Area.
  • Single-Shift Two.
  • Single-Shift Three.
  • Start of Selected Area.
  • String Terminator.
  • Set Transmit State.
  • Line Tabulation Set.