0

I want to be able to hide the cursor programmatically. I am okay with giving any required permissions to the script.

0

You can use applescript to set the cursor to the current background color of the terminal window:

tell application "Terminal"
    set invisibleColor to get background color of (get properties of (get startup settings))
    set properties of (get startup settings) to {cursor color:invisibleColor}   
end tell

Use osascript to execute applescript within a shell script.

  • I want to hide it for everything. The reason I want to do it from the terminal is to set a loop that continuously hides the cursor, as it becomes visible after moving it a little. – HappyFace Jan 14 at 8:06

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.