Locate (x, y) cursor position for echo

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
stephjo
Posts: 12
Joined: 03 Feb 2014 02:39

Locate (x, y) cursor position for echo

#1 Post by stephjo » 01 May 2020 15:39

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

penpen
Expert
Posts: 2009
Joined: 23 Jun 2013 06:15
Location: Germany

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

#2 Post by penpen » 01 May 2020 16:40

You could use vt100 codes, so this might help you:
viewtopic.php?f=3&t=9361&hilit=vt100#p60787


penpen

Aacini
Expert
Posts: 1914
Joined: 06 Dec 2011 22:15
Location: México City, México
Contact:

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

#3 Post by Aacini » 02 May 2020 05:47


Post Reply