How to send ^K to shell
-
07-07-2019 - |
Question
I want to run a shell command in Terminal, then clear the console, from Applescript.
If I was doing this by hand, I'd use ^K -- how do I send the ^K character in a string to Terminal?
Solution
I think the gent who suggested 'clear' probably has the issue solved, but just in case you actually want to do what you said you did, you can simply use:
echo "^L"
(you type this as 'echo ""')
OTHER TIPS
I think you are looking for the 'clear' command.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow