Enable M-p and M-n in term-line-mode