make clear_buffer work better when not in tmux