Use dockerpty instead for pseudo-tty behaviour.

Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
Merge pull request #270 from d11wtq/bugfix/tty_size

Use dockerpty instead for pseudo-tty behaviour (fixes TTY size issue #253 & #97)