Updating copy/paste functions to work nicely in terminal.