oxedyne/fe2o3/fe2o3_core/src/term.rs
4.8 KiB, 1 run
created by r1870400018:6210, which is this file's identity for as long as the history lasts, whatever it is later renamed to
download · who wrote it · its history
| 1 | /// ANSI Terminal control characters. Intended to accord with ECMA-48. |
| 2 | #[derive(Debug)] |
| 3 | pub struct Term {} |
| 4 | |
| 5 | impl Term { |
| 6 | pub const RESET :&'static str = "\x1b[0m"; |
| 7 | pub const BOLD :&'static str = "\x1b[1m"; |
| 8 | pub const FAINT :&'static str = "\x1b[2m"; |
| 9 | pub const ITALIC :&'static str = "\x1b[3m"; |
| 10 | pub const UNDERLINE :&'static str = "\x1b[4m"; |
| 11 | pub const SLOW_BLINK :&'static str = "\x1b[5m"; |
| 12 | pub const RAPID_BLINK :&'static str = "\x1b[6m"; |
| 13 | pub const REVERSE_VIDEO :&'static str = "\x1b[7m"; |
| 14 | pub const CONCEAL :&'static str = "\x1b[8m"; |
| 15 | pub const CROSSED_OUT :&'static str = "\x1b[9m"; |
| 16 | pub const PRIMARY :&'static str = "\x1b[10m"; |
| 17 | pub const ALTFONT1 :&'static str = "\x1b[11m"; |
| 18 | pub const ALTFONT2 :&'static str = "\x1b[12m"; |
| 19 | pub const ALTFONT3 :&'static str = "\x1b[13m"; |
| 20 | pub const ALTFONT4 :&'static str = "\x1b[14m"; |
| 21 | pub const ALTFONT5 :&'static str = "\x1b[15m"; |
| 22 | pub const ALTFONT6 :&'static str = "\x1b[16m"; |
| 23 | pub const ALTFONT7 :&'static str = "\x1b[17m"; |
| 24 | pub const ALTFONT8 :&'static str = "\x1b[18m"; |
| 25 | pub const ALTFONT9 :&'static str = "\x1b[19m"; |
| 26 | pub const FRAKTUR :&'static str = "\x1b[20m"; |
| 27 | pub const DOUBLE_UNDERLINE :&'static str = "\x1b[21m"; |
| 28 | pub const NORMAL_COL_INTENSITY :&'static str = "\x1b[22m"; |
| 29 | pub const NOT_ITALIC_FRAKTUR :&'static str = "\x1b[23m"; |
| 30 | pub const UNDERLINE_OFF :&'static str = "\x1b[24m"; |
| 31 | pub const BLINK_OFF :&'static str = "\x1b[25m"; |
| 32 | pub const INVERSE_OFF :&'static str = "\x1b[27m"; |
| 33 | pub const REVEAL :&'static str = "\x1b[28m"; |
| 34 | pub const NOT_CROSSED_OUT :&'static str = "\x1b[29m"; |
| 35 | pub const FORE_BLACK :&'static str = "\x1b[30m"; |
| 36 | pub const FORE_RED :&'static str = "\x1b[31m"; |
| 37 | pub const FORE_GREEN :&'static str = "\x1b[32m"; |
| 38 | pub const FORE_YELLOW :&'static str = "\x1b[33m"; |
| 39 | pub const FORE_BLUE :&'static str = "\x1b[34m"; |
| 40 | pub const FORE_MAGENTA :&'static str = "\x1b[35m"; |
| 41 | pub const FORE_CYAN :&'static str = "\x1b[36m"; |
| 42 | pub const FORE_WHITE :&'static str = "\x1b[37m"; |
| 43 | pub const SET_FORE_COLOR :&'static str = "\x1b[38m"; |
| 44 | pub const DEFAULT_FORE_COLOR :&'static str = "\x1b[39m"; |
| 45 | pub const BACK_BLACK :&'static str = "\x1b[40m"; |
| 46 | pub const BACK_RED :&'static str = "\x1b[41m"; |
| 47 | pub const BACK_GREEN :&'static str = "\x1b[42m"; |
| 48 | pub const BACK_YELLOW :&'static str = "\x1b[43m"; |
| 49 | pub const BACK_BLUE :&'static str = "\x1b[44m"; |
| 50 | pub const BACK_MAGENTA :&'static str = "\x1b[45m"; |
| 51 | pub const BACK_CYAN :&'static str = "\x1b[46m"; |
| 52 | pub const BACK_WHITE :&'static str = "\x1b[47m"; |
| 53 | pub const SET_BACK_COLOR :&'static str = "\x1b[48m"; |
| 54 | pub const DEFAULT_BACKCOLOR :&'static str = "\x1b[49m"; |
| 55 | pub const FRAMED :&'static str = "\x1b[51m"; |
| 56 | pub const ENCIRCLED :&'static str = "\x1b[52m"; |
| 57 | pub const OVERLINED :&'static str = "\x1b[53m"; |
| 58 | pub const NOT_FRAMED_ENCIRCLED :&'static str = "\x1b[54m"; |
| 59 | pub const NOT_OVERLINED :&'static str = "\x1b[55m"; |
| 60 | pub const SET_BRIGHT_FORE_BLACK :&'static str = "\x1b[90m"; |
| 61 | pub const SET_BRIGHT_FORE_RED :&'static str = "\x1b[91m"; |
| 62 | pub const SET_BRIGHT_FORE_GREEN :&'static str = "\x1b[92m"; |
| 63 | pub const SET_BRIGHT_FORE_YELLOW :&'static str = "\x1b[93m"; |
| 64 | pub const SET_BRIGHT_FORE_BLUE :&'static str = "\x1b[94m"; |
| 65 | pub const SET_BRIGHT_FORE_MAGENTA :&'static str = "\x1b[95m"; |
| 66 | pub const SET_BRIGHT_FORE_CYAN :&'static str = "\x1b[96m"; |
| 67 | pub const SET_BRIGHT_FORE_WHITE :&'static str = "\x1b[97m"; |
| 68 | pub const SET_BRIGHT_BACK_BLACK :&'static str = "\x1b[100m"; |
| 69 | pub const SET_BRIGHT_BACK_RED :&'static str = "\x1b[101m"; |
| 70 | pub const SET_BRIGHT_BACK_GREEN :&'static str = "\x1b[102m"; |
| 71 | pub const SET_BRIGHT_BACK_YELLOW :&'static str = "\x1b[103m"; |
| 72 | pub const SET_BRIGHT_BACK_BLUE :&'static str = "\x1b[104m"; |
| 73 | pub const SET_BRIGHT_BACK_MAGENTA :&'static str = "\x1b[105m"; |
| 74 | pub const SET_BRIGHT_BACK_CYAN :&'static str = "\x1b[106m"; |
| 75 | pub const SET_BRIGHT_BACK_WHITE :&'static str = "\x1b[107m"; |
| 76 | } |