tmux attachment function
fixed ctrl+up/down in input mode, fixed bg color erase in tmux/screen