Hi Amanda,
There isn't.... You'll have to keep count of how many positions have
passed since the last newline, and then set the cursor there.
There maybe some non-portable platform specific code to perform such
routines. Check with your compiler documentation - otherwise you may have
to write the routines yourself. (Isn't curses/ncurses library setup to
handle character screen manipulations?)
All the best...
Mike
---
Michael S. E. Kraus
Administration
Capital Holdings Group (NSW) Pty Ltd
p: (02) 9955 8000
Amanda Wynne <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
24/03/2003 02:35 PM
Please respond to amanda_linux
To: [EMAIL PROTECTED]
cc:
Subject: [SLUG] printf control code question
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