Correctly enter double-byte characters, e.g. russian letters.
Write unhandled sequences to log. Some renames.
Inline method.
Split to 2 parts: emulator and ssh terminal. Local terminal and required libs added.