[email protected] schrieb am Dienstag, 16. August 2022 um 16:12:53 UTC+2:
Hello,
The terminal is the easiest interface to use to communicate with ESP32forth. Most terminals accept ANSI escape sequences. These sequences are used to manage the coloring of the text and the page background, but also the display position of the texts...
https://esp32.arduino-forth.com/article/display_colorsAndPosition
To get (not to set) the actual cursor position is a bit trickier.
Depending on your terminal interface the following may work:
: GET-XY \ ( -- col row ) get text cursor coordinates
." \033[6n" \ if needed replace \033 with ESC
ekey ekey 2drop \ discard
0 BEGIN ekey dup ';' <> WHILE '0' - swap 10 * + REPEAT drop
0 BEGIN ekey dup 'R' <> WHILE '0' - swap 10 * + REPEAT drop
1- swap 1- ;
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)