### Question 19.3

How can I display a percentage-done indication that updates itself in place, or show one of those ``twirling baton'' progress indicators?

These simple things, at least, you can do fairly portably. Printing the character `'\r'` will usually give you a carriage return without a line feed, so that you can overwrite the current line. The character `'\b'` is a backspace, and will usually move the cursor one position to the left.

References: ANSI Sec. 2.2.2
ISO Sec. 5.2.2

Read sequentially: prev next up top

This page by Steve Summit // Copyright 1995 // mail feedback