emojicode icon indicating copy to clipboard operation
emojicode copied to clipboard

Unrecognized escape sequence ❌e

Open joeskeen opened this issue 2 years ago β€’ 0 comments

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πŸ”€β—
     ⬆️

joeskeen avatar Oct 10 '23 18:10 joeskeen