Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 05-16-2005, 08:24 AM   #1
LQ Newbie
Registered: Apr 2005
Posts: 4

Rep: Reputation: 0
print to screen...

you know when wget prints out it's process information continually on the same line; i.e. it refreshes the line and then rewrites the speed of transfer etc. How do I do that using perhaps C or a python module?
many thanks
Old 05-16-2005, 09:35 AM   #2
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 5,388

Rep: Reputation: 408Reputation: 408Reputation: 408Reputation: 408Reputation: 408
From the source :

wget seems to use "\r" char to return to the beginning of line then print the buffer

static void
display_image (char *buf)
  int old = log_set_save_context (0);
  logputs (LOG_VERBOSE, "\r");
  logputs (LOG_VERBOSE, buf);
  log_set_save_context (old);
Old 05-16-2005, 10:43 AM   #3
LQ Newbie
Registered: Apr 2005
Posts: 4

Original Poster
Rep: Reputation: 0
thanks allot! I no had no idea the solution was so simple.....


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Print screen ??? shaahul Linux - Newbie 6 05-08-2006 11:33 AM
How to Print a Screen bpellet314 Linux - Software 2 05-08-2006 09:24 AM
Print Screen: How? hongman Linux - Newbie 7 03-09-2005 12:33 PM
Print Screen katana Linux - General 3 02-15-2002 12:52 AM
Print Screen Artamir Linux - Newbie 2 11-27-2001 03:14 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration