1

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");
Matthew D. Scholefield
  • 2,977
  • 3
  • 31
  • 42

2 Answers2

2

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

Jason
  • 193
  • 7
1

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
Matthew D. Scholefield
  • 2,977
  • 3
  • 31
  • 42