#145134 - yellowstar - Sun Nov 11, 2007 11:15 pm
Is there a escape code to
reset the console cursor to its previous
position?(the position before setting
the postion with the set cursor position escape code)
The reason I want to know this,
is because I have a function call
in my vblank handler to a debugging function.
Once done,
it sets the cursor position to the start.
I want it to "reset" the position instead at this point.
If I didn't do this,
the text printed after this would be
printed after this debugging stuff,
and that wouldn't look good.
I've been having problems with the above
mentioned escape code.(the set cursor position escape code)
(I have have the latest DKA and libnds.)
When I don't have anything printed,(That is,
the escape code is the only thing in the string, no spaces or anything)
it crashes.
But,
when overwise,
it works as wanted.
reset the console cursor to its previous
position?(the position before setting
the postion with the set cursor position escape code)
The reason I want to know this,
is because I have a function call
in my vblank handler to a debugging function.
Once done,
it sets the cursor position to the start.
I want it to "reset" the position instead at this point.
If I didn't do this,
the text printed after this would be
printed after this debugging stuff,
and that wouldn't look good.
I've been having problems with the above
mentioned escape code.(the set cursor position escape code)
(I have have the latest DKA and libnds.)
When I don't have anything printed,(That is,
the escape code is the only thing in the string, no spaces or anything)
it crashes.
But,
when overwise,
it works as wanted.