• ESP32forth: Text colors and terminal display position

    From Marc Petremann@21:1/5 to All on Tue Aug 16 07:12:52 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From minforth@arcor.de@21:1/5 to mpetre...@gmail.com on Tue Aug 16 11:40:49 2022
    mpetre...@gmail.com 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)
  • From Marc Petremann@21:1/5 to All on Tue Aug 16 14:22:08 2022
    Le mardi 16 août 2022 à 16:12:53 UTC+2, Marc Petremann a écrit :
    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

    Play with ANSI ESP sequences:

    Display ANSI/DOS characters
    - https://www.facebook.com/groups/esp32forth/posts/429393955839345/

    ASCII sprites
    - https://www.facebook.com/groups/esp32forth/posts/429391345839606/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)