reset terminal mac code example
Example 1: macos clear terminal
clear && printf '\e[3J'
Example 2: clear terminal mac
Clear terminal on macOS: Command + K (alternatively type: clear)
clear && printf '\e[3J'
Clear terminal on macOS: Command + K (alternatively type: clear)