On the terminal prompt for OS X I can type in echo $'\ec' and ti will clear the console. I have no idea why this works, though. What is it doing?
I'm guessing this would work on other versions of linux, too. Can someone shed some light?
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
There is a whole list of them on the Internet for the VT100 or ANSI terminal, which you can look at to understand how they work. FYI, you can do the same thing with | |||
|
feedback
|
|
A terminal usually does not have an API per se, so the terminal driver listens for specific sequences of characters being sent to the terminal and takes action based on the sequences received. The | |||
|
feedback
|