c++devkitdevkitpro

How to use iprintf in c++


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");

Solution

  • 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