You probably also need to flush the output each time you write the \r otherwise you will only see that stream of characters between the last and and penultimate \r. Unless you do something special to your tty, output will always be buffered. This is where curses/ncurses can relieve you from some of thse considerations.

Cheers
Shane
On Monday, March 24, 2003, at 04:01  PM, Amanda Wynne wrote:

\r sort of works. Only it only updates the line about every 20th pass through
the loop. Oh well.


On Monday 24 Mar 2003 3:22 pm, Shane MacPhillamy wrote:
I think you are looking for \r - carriage return.

Cheers
Shane

On Monday, March 24, 2003, at 02:35 PM, Amanda Wynne wrote:
if \n is newline, and \t is horizontal tab what's "home"; as in put
the cursor
back to the start of the current line? I've searched high & low, but
can't
seem to find any info anywhere.

Amanda
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

-- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug


-- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to