input menu completion and clipboard fix for tmux