How to send ^ K to shell

I want to run a shell command in a terminal and then clear the console from Applescript.

If I did it manually, I would use ^ K - how do I send the ^ K character to a string in the terminal?

+1


source to share


2 answers


I think the gentleman who suggested "clear" probably solved the problem, but just in case you really want to do what you said, you can simply use:

echo "^ L"



(you type it like 'echo "")

+1


source


I think you are looking for the "clear" command.



+1


source







All Articles