I stumbled upon the \a escape sequence in a piece of text in ISO/IEC 9899:2018 (C18), Section 5.2.2/2 - "Character display semantics":
\a (alert) Produces an audible or visible alert without changing the active position.
I´ve never seen this used in any C code to indicate an error. By the way, I didn´t know that an escape sequence can/could trigger an audible signal on some systems.
- What is/was the certain use of that
\aescape sequence? - Is it a remain from the earlier days of C, that is obsolete now?
- And in which situation it would be or were (if it is obsolete today) appreciated to use that? Can you provide an example?
Thank you very much.