Reputation: 5992
I am testing some Escape Sequence Character in C using Command Line Tool in xCode on El Capitan. This is the string I tested:
printf("\a111\b222\n");
The expected result was:
bell noise followed by 112221
to my surprise, there was no bell sound at the start, \b did not move cursor one character back, and write from there on. Is this a Mac and xCdoe problem? If so, what do I need to enable all the escape characters.
Upvotes: 0
Views: 477
Reputation: 31457
How those escape sequences are interpreted is up to the terminal/shell where you execute the program. Not all terminals support all sequences.
Upvotes: 1