# ANSI Escape Sequences in swipl.exe

**URL:** <https://swi-prolog.discourse.group/t/ansi-escape-sequences-in-swipl-exe/6125>\
**Category:** Help!\
**Created:** [January 24, 2023, 12:54pm UTC](https://swi-prolog.discourse.group/t/ansi-escape-sequences-in-swipl-exe/6125 "2023-01-24T12:54:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fsaenzperez](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/fsaenzperez/32/50_2.png) [@fsaenzperez](https://swi-prolog.discourse.group/u/fsaenzperez)\
**Post date:** [January 24, 2023, 12:54pm UTC](https://swi-prolog.discourse.group/t/ansi-escape-sequences-in-swipl-exe/6125/1 "2023-01-24T12:54:36Z")

</div>

Is it possible to submit ANSI Escape Sequences in swipl.exe for locating the cursor? I.e., using something such as:

```prolog
?- write('\33[0;0H').

```

Incidentally, this works on swipl-win.exe (SWI-Prolog 9.0.3 and Windows 10).

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [January 24, 2023, 1:21pm UTC](https://swi-prolog.discourse.group/t/ansi-escape-sequences-in-swipl-exe/6125/2 "2023-01-24T13:21:47Z")

</div>

> [@fsaenzperez](#):
>
> Is it possible to submit ANSI Escape Sequences in swipl.exe for locating the cursor?

Not at the moment. There is some stuff to make color sequences work defined in pl-ntconsole.c. That also contains the ANSI sequence decoding copied from swipl-win.exe, but most has been disabled using `#ifdef`. Requires someone with the courage to find the console replacement implementation 🙂 Not me 🙂
