extract stty module
remove redundant screen-clear
give buffer a keymap
rename keyboard module
extract editor, fundamental_mode