Coding style cleanup.
Fix Home and End keys, and add ctrl-l.
Merge pull request #2 from biot/master

code cleanup finished, and VT100 fixes