clipetty
clipetty copied to clipboard
Check for tmux before checking for screen.
By default, tmux will re-use the screen-* TERM values, which will cause DCS sequences to not get added. The presence of the TMUX environment variable is a stronger signal anyways, so first check whether we're running in tmux, and secondly whether we're running under screen.