Re: [LIP] How does mplayer or wget display their output??
Raj Mathur <[email protected]>
| Newsgroups | gmane.user-groups.linux.india.programmers |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "Vardhman" == Vardhman Jain <[email protected]> writes: Vardhman> Hi, I used to think that Mplayer and wget refreshes the Vardhman> same line in a console output using a ncurses library Vardhman> support, but I realize ncurses needs a new screen to be Vardhman> set up to start with. Wget and Mplayer gives their Vardhman> output on the console printing it starting from the line Vardhman> where the command was given, so I believe they donot use Vardhman> ncurses. can some one tell me how to achieve a similar Vardhman> output(refreshing the same line on console on update). while ( ... ) { ... printf ( "<refreshing data here>\r" ) ; ... } -- Raju -- Raj Mathur [email protected] http://kandalaya.org/ GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F It is the mind that moves ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click