Added function for wwitching Between term-mode and line-mode in Emacs Term.