Terminal based emacs-like text editor