Revert "use new style xterm events"
Revert "use new style xterm events"

This reverts commit d42e070e6c98bd57e4c71e1167a2f993a90ee5fd.

Eugeny/terminus,Eugeny/terminus,Eugeny/terminus,Eugeny/terminus,Eugeny/terminus,Eugeny/terminus