remove unused code.
do not pollute Terminal object.
hook into term.js's prefix mode keys.