tty export is working a little bit better

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