startup_message off nethack off # login breaks multi-mapped uid deflogin off vbell off altscreen on defscrollback 100000 escape ^^\136 defflow off maptimeout 0 # https://www4.cs.fau.de/~jnweiger/screen-faq.html termcapinfo xterm* ti@:te@ bindkey ^[[5;5~ eval "copy" "stuff ^U" bindkey ^[[6;5~ eval "copy" "stuff ^D" # https://maatj.es/blog/osc-52-and-nested-gnu-screen # https://savannah.gnu.org/bugs/?63217 bindkey -m ' ' eval 'stuff \040' 'writebuf' 'exec sh -c "printf \"\033P\033]52;c;$(base64 /tmp/screen-exchange)\a\033\\\\\""' # XXX: maybe there is a way to add this to the termcap? # https://wiki.archlinux.org/title/Tmux#X_clipboard_integration