KtTerminal signal handlers.

Create signal handlers for "child-exited" and "got-tty-data" events.
Use KtBuffer.