This is a discussion on printf() with control character within the PHP General forums, part of the PHP Programming Forums category; Hello, I'm trying to write a rotational symbol in a CLI process, to report activity to the user console, ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello,
I'm trying to write a rotational symbol in a CLI process, to report activity to the user console, using printf( "%s\b", symbol ); but I see the control character (\b) is been printed out instead of backspacing. Is there any work around ? Thanks in advance, Sebastián. |
|
|||
|
Backspace the backspace: "%s\\b"
Sebastian Araya wrote: > Hello, > > I'm trying to write a rotational symbol in a CLI process, to report > activity to the user console, using printf( "%s\b", symbol ); but I see > the control character (\b) is been printed out instead of backspacing. > > Is there any work around ? > > Thanks in advance, > > Sebastián. > |