coded_chars/
introducers.rs1use crate::escape::{escape, EscapeSequence};
4
5pub const CSI: EscapeSequence = escape('[');
7
8pub const ESC:char = '\x1B';
15
16pub const SCI: EscapeSequence = escape('Z');
18
19
20#[cfg(test)]
21mod tests {
22 use super::*;
23
24 #[test]
25 fn test_csi_escape_sequence() {
26 let expected = EscapeSequence::new('['); assert_eq!(CSI, expected, "CSI escape sequence should match the expected value");
28 }
29
30 #[test]
31 fn test_sci_escape_sequence() {
32 let expected = EscapeSequence::new('Z'); assert_eq!(SCI, expected, "SCI escape sequence should match the expected value");
34 }
35
36 #[test]
37 fn test_esc_character() {
38 assert_eq!(ESC, '\x1B', "ESC character should be the ASCII Escape character");
39 }
40}