Register terminal data callback immediatly
Register terminal data callback immediatly

This patch registers the terminal data callback immediatly. This avoids a
race condition were data would be lost between the time the shell is
created and when its data can be sent to the frontend.

This is a workaround to issue:
https://github.com/Tyriar/node-pty/issues/99

Signed-off-by: Antoine Tremblay <715cbffe391b68f717536227958c7c21fbce8317@ericsson.com>

lmcgupe/theia,hexa00/theia,epatpol/theia-1,epatpol/theia-1,lmcgupe/theia,epatpol/theia-1,hexa00/theia