make paste work in term mode