3 posts • Page 1 of 1
Does anyone know the simplest way to display consol text at the x y location of a variable? Currently I use iprintf("\x1b[9;9HRandom Text"); to show "Random Text" at 9,9. How can I display it at the location of variable lets say locationx and locationy?
Well that's easy.
You may have to switch x and y. I don't remember which order it goes in.
Code: Select all
iprintf("\x1b[%d;%dHRandom Text", locationx, locationy);
Who is online
Users browsing this forum: No registered users and 4 guests