Port TTY client from TremFusion