Page 1 of 1

Locate (x, y) cursor position for echo

Posted: 01 May 2020 15:39
by stephjo
Hi DOS fans,

I am wondering if there's a way to locate cursor to a particular (x, y) in a DOS Console window to print an echo statement.

I am trying to print something that constantly changes and don't want the output to be running on the screen.

Also, on a related topic, is it possible to print in color in DOS with echo statement?

Thank you,
-Steph

Re: Locate (x, y) cursor position for echo

Posted: 01 May 2020 16:40
by penpen
You could use vt100 codes, so this might help you:
viewtopic.php?f=3&t=9361&hilit=vt100#p60787


penpen

Re: Locate (x, y) cursor position for echo

Posted: 02 May 2020 05:47
by Aacini