I want output to the command line (so far, in the gdb command line within XCode) to overwrite the same line. The code I'm using to print the output right now takes some things from an Objective-C method and eventually does this:
unsigned char _output = ...;
printf("Output:%c\r",_output);
fflush(stdout);
It prints the correct output, but on successive lines instead of overwriting. What could the problem be?