You are here: Re: printf() with control character « PHP Programming Language « IT news, forums, messages
Re: printf() with control character

Posted by Rik on 05/16/06 13:58

Tim Van Wassenhove wrote:
> On 2006-05-15, Sebastian Araya <numisys@gmail.com> 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 ?

What about:
printf( "%s%c", symbol,8);

%c:
c - the argument is treated as an integer, and presented as the character
with that ASCII value

Then again, I know nothing about CLI.

Grtz,
--
Rik Wasmus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация