How to use iprintf in c++

4.6k Views Asked by At

How can I use any command really (in c++ programming with Devkit Pro for NDS) to simply print a variably rather than text to a specific location? Here's what I have that prints text:

iprintf("\x1b[1;20HHello");
2

There are 2 best solutions below

1
On BEST ANSWER

I found out later that for both iprintf and printf, this is a way to do it:

 iprintf("\x1b[%d;%dHText goes here...", y, x); //the x and y are reverse because that is how printf works
0
On

You can also manipulate the console directly (including window it and have multiple consoles to print to).

PrintConsole* pc = consoleDemoInit();

pc->cursorX = 10;
pc->cursorY = 10;

printf("hi");

Here is a bit more detail:

http://libnds.devkitpro.org/a00107.html