Newb question, how to display text at x y location
Newb question, how to display text at x y location
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?
Re: Newb question, how to display text at x y location
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);
Re: Newb question, how to display text at x y location
You can also manipulate the conslol a bit more directly:
Here are some of the other things you can adjust: http://libnds.devkitpro.org/a00087.html
Code: Select all
PrintConsole* pc = consoleDemoInit();
pc->cursorX = 10;
pc->cursorY = 10;
iprintf("hi");
Who is online
Users browsing this forum: Ahrefs [Bot] and 0 guests