From: Taylor on 9 Jun 2010 13:09 Hi, I'm trying to add a progress bar that works fine in any console, but doesn't seem to work in MatLab. It's in a mex file, that calls the following to refresh: mexEvalString("drawnow;"); However, the carriage return '\r' does not seem to work - I need to return the cursor to the front of the line so that the progress bar continually is written over. I'm using mexPrintf, but it just shows up on successive lines beneath each other. Thanks for any help.
From: Taylor on 18 Jun 2010 05:23 In case anyone is interested, I was able to get it to work using '\b'. '\r' doesn't seem to work the same...not sure why. Anyway, '\b' moved the cursor back so it's a workaround.
|
Pages: 1 Prev: parsing a large blob of ascii data Next: slow uigetfile ! (?) |