![]() ![]() but as when it's not the current window, the output will stack up until it becomes current again, which probably isn't what you want. You avoid this by refining the AppleScript to only clear the screen if it is frontmost by doing this (taken from MattiSG's answer to How do I reset the scrollback in the terminal via a shell command?): osascript -e 'if application "Terminal" is frontmost then tell application "System Events" to keystroke "k" using command down' ![]() There is no visual feedback while the scripts execute. Type your Admin password when prompted, then press Return. At the Terminal prompt, type the following, exactly as written: sudo periodic daily weekly monthly Press Return. This is surprising if you're running the script in one window and trying to get work done in another! Open Terminal, located in the Macintosh HD > Applications > Utilities folder. ![]() The AppleScript answer given in this thread works, but it has the nasty side effect of clearing any terminal window that happens to be active. See Chris Page's answer to How do I reset the scrollback in the terminal via a shell command? for more information. The new organization is based on the tab separation and each tab has its settings, such. It's completely customizable and allows you to add more file kinds at your choice. Tidy Up 5 organizes the result separating the found items by file kinds, (music, images, PDFs, folders, etc.). Which clears the scrollback buffer as well as the screen. New, completely redesigned interface, easy to use, and powerful. Or more concisely ( hat tip to user qiuyi): printf '\33c\e[3J' If you're using the OS X Terminal app (as stated by the OP), a better approach (thanks to Chris Page's answer to How do I reset the scrollback in the terminal via a shell command?) is just this: clear
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |