feat: add \x string literal

This commit is contained in:
Shunsuke Shibayama 2023-12-29 13:44:34 +09:00
parent edfabd97e7
commit 21283b668e
2 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,12 @@
.RED = "\x1b[91m"
.GREEN = "\x1b[92m"
.YELLOW = "\x1b[93m"
.BLUE = "\x1b[94m"
.MAGENTA = "\x1b[95m"
.CYAN = "\x1b[96m"
.WHITE = "\x1b[97m"
.BOLD = "\x1b[1m"
.UNDERLINE = "\x1b[4m"
.REVERSED = "\x1b[7m"
.ATTR_RESET = "\x1b[0m"
.RESET = "\x1b[m"