add copy and paste support for terminal environment