Copy text from the terminal