su**********@yahoo.com (surena abari) writes:
Thanks for explaining the meaning of \b for me.
I have similar problems with other escape characters.
But I think this group it is not the proper place to
ask this questions as they are not related to C.
So would you please give me a reference(book or website)
that gives me the exact meaning of these characters?
Here is what the C standard says about them:
2 Alphabetic escape sequences representing nongraphic characters
in the execution character set are intended to produce
actions on display devices as follows:
\a (alert) Produces an audible or visible alert without
changing the active position.
\b (backspace) Moves the active position to the previous
position on the current line. If the active position is
at the initial position of a line, the behavior of the
display device is unspecified.
\f (form feed) Moves the active position to the initial
position at the start of the next logical page.
\n (new line) Moves the active position to the initial
position of the next line.
\r (carriage return) Moves the active position to the
initial position of the current line.
\t (horizontal tab) Moves the active position to the next
horizontal tabulation position on the current line. If
the active position is at or past the last defined
horizontal tabulation position, the behavior of the
display device is unspecified.
\v (vertical tab) Moves the active position to the initial
position of the next vertical tabulation position. If
the active position is at or past the last defined
vertical tabulation position, the behavior of the
display device is unspecified.