avoid term error when sshing
automatically copy buffer to clipboard