include the \ in escape codes
Created by: dvkt
I was having issues with using \n
and friends, and I think it's because the tokenizer wasn't passing something along.
Sorry about the coding style, you can test this using this program:
$ cat escape.ldpl
PROCEDURE:
display "\t\e[33mi\e[32mn \e[31mt\e[34me\e[35mc\e[36mh\e[37mn\e[1m\e[31mi\e[32mc\e[33mo\e[34ml\e[35mo\e[36mu\e[37mr\e[0m\r\n"
On master:
$ ldpl escape.ldpl
LDPL Error: unknown escape sequence on a VECTOR access.
Should work better in a modern terminal with this patch.