derp

Signed-off-by: Mattias Andrée <maandree@operamail.com>
move pid updating to a separate function

Signed-off-by: Mattias Andrée <maandree@operamail.com>
measure the size of the terminal and listen for updates + print an error message rather than dumping a stack trace if we cannot connect to the server

Signed-off-by: Mattias Andrée <maandree@operamail.com>
add and use dummy functions for intialising and terminating the terminal

Signed-off-by: Mattias Andrée <maandree@operamail.com>