Use readable escape sequences (#17241)

This commit is contained in:
Clyybber 2021-03-03 07:15:07 +01:00 • committed by GitHub
commit 507873be25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 68 additions and 68 deletions

View file

@ -48,8 +48,8 @@ proc getTerminal(): PTerminal {.inline.} =
result = gTerm
const
fgPrefix = "\x1b[38;2;"
bgPrefix = "\x1b[48;2;"
fgPrefix = "\e[38;2;"
bgPrefix = "\e[48;2;"
ansiResetCode* = "\e[0m"
stylePrefix = "\e["