Wednesday, January 4, 2012
How do we backspace?
The escape sequence \b in the printf() format string
printf("\nWhere is the 't' in cat\b ?\n");
moves the cursor back one space after the t in the cat has been displayed, so we do not see the t.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment