Changes for acommodating using emacs on a virutal terminal