spudlyo / clipetty

Manipulate the system (clip)board with (e)macs from a (tty)
GNU General Public License v3.0
167 stars 13 forks source link

Check for tmux before checking for screen. #24

Open smcallis opened 2 years ago

smcallis commented 2 years ago

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.