Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unrecognized escape sequence ❌e #217

Open
joeskeen opened this issue Oct 10, 2023 · 0 comments
Open

Unrecognized escape sequence ❌e #217

joeskeen opened this issue Oct 10, 2023 · 0 comments

Comments

@joeskeen
Copy link
Contributor

I'm trying to port some code from C to Emojicode and I'm trying to translate the following two lines:

printf("\x1b[2J");
printf("\x1b[H"); 

According to the documentation:

The escape character can also be used to produce the following characters:

❌❌ ❌
❌🔤 🔤
❌🧲 🧲
❌n New line (U+A0)
❌t Tab (U+09)
❌r Carriage return (U+0D)
❌e Escape (U+1B)
All other combinations of a ❌ and another character lead to a compiler error.

I'm assuming that \x1b is the same as U+1B.

However when I try to compile this Emojicode:

😀🔤❌e[2J🔤❗
😀🔤❌e[H🔤❗

I get the following compiler error:

./🍩.🍇:10:6: 🚨 error: Unrecognized escape sequence ❌e.
  😀🔤❌e[2J🔤❗
     ⬆️
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant