Copy terminal output to clipboard