Hack up editLine to make it more generic, and remove the dependency on box and view.
Document key and command matching complications that are not yet handled.
Document the escape sequences we send.
Categorise, comment, extend, and sort the keys we respond to.