A bunch of emacs style line editing.